Hi,

On 27/10/10 05:44, Serg Radkov wrote:
Hi,

How to make transparent geometry located at various osg:: Drawable properly 
sorted in depth?

"properly" sorted is difficult.

OSG sorts the geometry by the distance from the camera.
This leads to incorrect results.

what else do you think would work? You can split up geometry more or put things in different bins, but the problems will just show up at a finer grain.

Have a look at the osgoit (order independent transparency) example. Also google for "order independent transparency" and you would find all the reasons why just sorting is not a fix for all cases.

jp


In attachments screenshots of the same object from different angles.
  Arrows indicate the edge that does not draw, because their center turns away 
from the camera than the center of the face is behind them.

I draw polygons with the following settings:

geode->getOrCreateStateSet()->setMode( GL_BLEND, osg::StateAttribute::ON );
geode->getOrCreateStateSet()->setRenderingHint( osg::StateSet::TRANSPARENT_BIN 
);
geode->getOrCreateStateSet()->setRenderBinMode(osg::StateSet::RenderBinMode::USE_RENDERBIN_DETAILS);
geode->getOrCreateStateSet()->setRenderBinDetails( 11, "DepthSortedBin");



Thank you!

Cheers,
Serg

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






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

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

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

Reply via email to