Thank you very much Laurent and Gordon,
setting pStateSet->setRenderBinDetails( 5, "DepthSortedBin" ); or
pStateSet->setRenderBinDetails( 15, "DepthSortedBin" ); seem to give
me the results I am looking for to draw the objects before or after
the usual TRANSPARENT_BIN objects.

Just one last question: "DepthSortedBin" is just a name as the
documentation seem to suggest or is misteriously interpreted in some
way by OSG internally?

Cheers,
Michele

On Mon, Mar 17, 2008 at 4:41 PM, Laurent Di Cesare
<[EMAIL PROTECTED]> wrote:
> 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to