Hi Jesper,

Based on some suggestions I saw previously on the board, I'm using a method 
with two Geodes sharing a child Drawable and a parent Transform.  


Code:

transform_node->addChild(geode1);
transform_node->addChild(geode2);
geode1->addDrawable(drawable);
geode2->addDrawable(drawable);
//Added drawable in order geode-geode2.  This must match the cullface order -
//first rendered should have frontface culled, second backface culled.
geode1->getOrCreateStateSet()->setAttributeAndModes(new 
osg::CullFace(osg::CullFace::FRONT));
geode2->getOrCreateStateSet()->setAttributeAndModes(new 
osg::CullFace(osg::CullFace::BACK));




This solved the funky-looking transparency at least.

Tom

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





_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to