[osg-users] Compute occluding transparent objects

Pierre-Jean Petitprez pierre-jean.petitprez at inria.fr
Tue Nov 24 09:12:48 PST 2015


Hi,

I need to render transparent objects in my scene. But they need to be sorted front-to-back (like if they were not transparent) and not back-to-front like it's done when using the depthSortedBin render hint.
The reason I need to do that (I know it sounds stupid) is because I want to have my "transparent" objects occlude the other "transparent" objects that are behind them. That way, we should only see the closest transparent object and not the other objects that are behind it.

Is there a way to force front-to-back rendering on transparent bin ?

Thank you!

Cheers,
Pierre-Jean[/code]

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








More information about the osg-users mailing list