I need to render a bunch of different objects using layer data and I'm doing it by disabling depth test and specifying a render bin to control render order... something like
myObject->getOrCreateStateSet()->setMode(GL_DEPTH_TEST,osg::StateAttribute::OFF); myObject->getOrCreateStateSet()->setRenderBinDetails(11,"RenderBin"); * Should I be doing this on a per-object basis, or would I see better performance if I created group nodes with the right renderbin setup and then added the objects to the group nodes (assume hundreds of objects, but 10-20 layers)? (I don't know how OSG sorts/orders the scene graph nodes before rendering) * Some of my objects have transparency, but again, I'm specifying render order. So is it okay to put those objects in the "RenderBin" renderbin as opposed to the "DepthSortedBin"? If Objects A and B are both transparent, both in "RenderBin" (10) and "RenderBin" (11) respectively, and A is behind B, I should see object A through B correct? This is what some preliminary test code seems to indicate (and in that code switching from "DepthSortedBin" to "RenderBin" doesn't result in any changes). Regards, Preet _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

