Michele Bosi a écrit :
> Hello to all,
> I have 2 complex intersecting transparent objects A and B: I would
> like to draw B always after A but both after opaque objects.
>
> Now I puth both of them under the TRANSPARENT_BIN so that they are
> drawn after opaque objects, but how can I tell OSG to draw B always
> after A?
>
>
Do something like:
osg::StateSet* pStateSet = pSurface_->getOrCreateStateSet();
pStateSet->setRenderBinDetails( 5, "DepthSortedBin" );
That is, use a value (5) between opaque and transparent, so A is drawn
first but after opaque objects.
Sincerely,
Laurent Di Cesare.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org