[osg-users] Compute occluding transparent objects

Jannik Heller scrawl at baseoftrash.de
Tue Nov 24 11:06:25 PST 2015


Hi Pierre-Jean,

put your objects in the SORT_FRONT_TO_BACK render bin.

stateset->setRenderBinDetails(binNumber, "SORT_FRONT_TO_BACK"); 

Ensure that this particular binNumber is only used for objects you want sorted front to back, so that the render bin can be created correctly.

The render bin prototypes provided by default in OSG are documented here: https://github.com/openscenegraph/osg/blob/master/src/osgUtil/RenderBin.cpp#L35

Cheers,
Jannik

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








More information about the osg-users mailing list