Hi Rabbi,

The transparent blending works fine now. How ever the sorting does seem currect. Sometime the transparent object disappears or not drawn at all. , It view dependent Is there anyway it can be fixed?

This is an FAQ. Since OSG does only coarse sorting when rendering things in the transparent bin, objects inside transparent objects will not render correctly. For this to work in general, OSG would have to sort at the polygon level, which would be prohibitively expensive.

Even two transparent objects that intersect (which is often what is done for trees, two planes in a cross with a semi-transparent texture on them) will not work, you have to cut both planes at the intersection to make four planes that don't intersect.

Possible solutions in your case might be depth peeling (but then there's a limited number of depth levels you can render, but see the bucket depth peeling paper from Siggraph 2009), or order-independent transparency (which is apparently pretty slow). So there's always a trade-off.

Search the archives for more details and possible solutions.

J-S
--
______________________________________________________
Jean-Sebastien Guay    [email protected]
                               http://www.cm-labs.com/
                        http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to