LDraw.org Discussion Forums
Materials swap system - 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: Materials swap system (/thread-23544.html)



Materials swap system - Michael Horvath - 2019-07-09

For my POV-Ray scenes I have a created a system whereby you can take geometry generated by Program A and apply materials generated by Program B. For instance, I have geometry generated by LDView and materials generated by LDCad. You can see it in action here:

https://github.com/mjhorvath/Mike-LDraw-Models/tree/master/povray

See this test wrapper file for a simple example:

https://github.com/mjhorvath/Mike-LDraw-Models/blob/master/povray/wrapper_showcase_testing.pov

There are additional sets of materials I have modified to include support for blurred reflections and subsurface scattering.

I got the idea from Damien and expanded upon it. This system is also in use in Datsville currently.

LMKWYT