YafaRay integration - photorealistic renderings #215

felipesanches opened this Issue Nov 4, 2012 · 0 comments


None yet

1 participant


I often need to generate photorealistic renderings of my 3d designs. At the moment I have to export each portion of my openscad design as a separate STL for each material type and then load all these STLs in Blender and configure YafaRay properties to render it.

It would be awesome to have YafaRay integrated to openscad the same way it is integrated to blender. In the end it is just about generating an xml file with the scene geometry and then invoking the yafaray render engine.

Ideally this would involve adding a material() module to openscad in which we could specify which material to be used for a subtree when rendering the scene.

I imagine something simple as:

cylinder(r=10, h=50);

The strings "wood", "glass", etc, could be configured externally with helper XML files eighter provided by openscad with default material configs or provied by the user to tweak the rendering.

These would simply be included in the resulting XML scene, following the YafaRay XML spec: http://www.yafaray.org/development/documentation/XMLspecs

Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment