On 11/08/2011 04:51 PM, Buckley, Bob CTR MDA/DES wrote:
Hey, Jason.
Was just down in your neck of the woods, kinda ā flying @ Sebring.
I got the per state solution. But, Iām looking for fixing the
transparency bin.
Should be on that bin rather than wasting resources on identifying and
setting on all the applicable states ā transparent colors and textures.
Hmm. You can set a StateSet on a RenderBin, but I'm not entirely sure
if that would accomplish your goal or not.
It's also a bit of a pain to get to the RenderBin objects from the
Viewer, but I think it's possible:
viewer.getRenderer().getSceneView(0).getRenderStage().getRenderBinList().
find(osg::StateSet::TRANSPARENT_BIN);
The Renderer has two SceneViews for double-buffering, so you'd have to
do this on both.
Hopefully someone will correct me if this is totally wrong :-)
--"J"
_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org