Hi Anders,

normally you also use the face boundaries and iso lines for rendering the wires (you could get such data from the modeler kernel). Do you have these data as polylines or something? If not you could check the angles between triangles, material differences and so on for calculating the wires.

Greets,

Patrik


On 06.02.2015 10:36, Anders Backman wrote:
Hi all.

A general question about rendering...

Does anyone has code? to share for a solid CAD style rendering with
OpenSceneGraph?
I am deliberately vague because it is a broad concept.

A technical rendering style, order independent? transparency.
Hidden lines wire frame etc...

I am looking for inspiration for implementing this kind of rendering.
We do most of our rendering using Shaders today. We have a "megashader"
at the end which does all lighting, shadowing, texturing etc.

Below is a shot from GrabCAD which sort of illustrates what I am looking
for.
Position of light sources, type of lightsources # lightsources etc.
Any hints?




Inline image 2
__________________________________________
Anders Backman, HPC2N
90187 UmeƄ University, Sweden
[email protected] <mailto:[email protected]> http://www.hpc2n.umu.se
<http://www.hpc2n.umu.se/>
Cell: +46-70-392 64 67


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to