[osg-users] Draw two translucent geometries in specific order

Kristofer Krus kristofer.krus at liu.se
Fri May 18 06:42:25 PDT 2018


Hi,

I have two geometries, A and B, that are both translucent, of which A should always be rendered before B because it is farther from the camera fragment-wise. However, OpenSceneGraph sometimes renders A first and sometimes renders B first, depending on the viewing angle, which, when B is rendered first, causes A to disappear at the fragments where A and B overlap.

How can I make sure A is always rendered first and then B?

Thank you!

Cheers,
Kristofer

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=73668#73668







More information about the osg-users mailing list