Stud color with transparency - Printable Version +- LDraw.org Discussion Forums (https://forums.ldraw.org) +-- Forum: LDraw Programs (https://forums.ldraw.org/forum-7.html) +--- Forum: Rendering Techniques (https://forums.ldraw.org/forum-20.html) +--- Thread: Stud color with transparency (/thread-24057.html) |
Stud color with transparency - Leonardo Gonzalez - 2020-05-26 Following the suggestion on this thread of using fade_color: POV-Ray: Transparency using fade_color and after plenty of tweaking and testing, I have found a fairly satisfactory solution to transparent colors that approach the real thing. The scene in POV-Ray is setup with an area light and a white square floating above to simulate a studio lamp reflection. The part used is: 92579.dat, in Transparent Black (LDXColor40). Here is the default values with dark and light surface as background: It is hard to see the internal edges or the surface through the transparency. Compare that to the fade_color version: As you can see, the part is well defined and the edges are darker than the walls (as it should be), it works on both light and dark surfaces and allows you to see what is on the other side of the part. The only downside to using fade_color is that the studs are no longer colorize and appear simply as transparent. This seems to be due to the part not having an LGEO substitution. My question to you good people is: Is there a way to apply this fade_color technique onto the studs so that they have the same color as the part itself, even without an LGEO substitution? I am not familiar with the whole Ldraw format, so any light you can cast my way (no pun intended) will be greatly appreciated. If you would like to test the technique for yourself, here is the fade_color modification that I settled on: Code: // 40 TRANSPARENT BLACK / 111 TRANSPARENT BROWN [LDRAW] You may simply add the code block after "//COLOR TEST..." to your lg_color.inc file below the "// 40 Transparent Black..." block. Remember to comment out /* */ the initial part to keep it as backup. You can use this as a template for other transparent colors too. This does not seem to improve the neon transparent colors though, but I haven't played with those much yet. **IMPORTANT NOTE** Certain issues may arrive from using this code as I have not been able to go through all the dependent files and code, specifically a known issue is with transparent slopes which will halt the rendering. |