On Tue, Jun 2, 2009 at 4:57 PM, Jason Daly <jd...@ist.ucf.edu> wrote:
>> What do I need to do to make sure transparent object show up properly?
>>
>
> ss = node->getOrCreateStateSet();
> ss->setMode(GL_BLEND, osg::StateAttribute::ON);
> ss->setRenderingHint(osg::StateSet::TRANSPARENT_BIN);
> ss->setRenderBinDetails(1, "DepthSortedBin");

Small clarification,  you either use setRenderingHint or
setRenderBinDetails, not both.  setRenderingHint is simply a
convinience front end to setRenderBinDetails, in the case of
TRANSPARENT_BIN, it simply does
setRenderBinDetails(10,"DepthSortedBin");

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

Reply via email to