your render bin must be a depth sorted bin, created e.g. like

pStateSet->setRenderBinDetails( 5, "*DepthSortedBin*" )

the TRANSPARENT_BIN is depth sorted by default.

Christian





2014-02-03 Daniel Schmid <[email protected]>:

>  Hi all
>
>
>
> I have a custom renderstage, that I use for prerendering of a
> sub-scenegraph. The drawables within are stacked along the y axis (up) to
> simulate priority, the projection is done as view-from-top. The highest-y
> drawable is supposed to be drawn last (topmost). Since I look down on from
> above, the y axis is also equivalent to the scene depth, so I tried to
> achieve this by calling
>
>
>
>   _readRenderstage->sortBackToFront();
>
>
>
> right before
>
>
>
>   _readRenderstage->draw(*drawState, previous);
>
>
>
> but this didn't bring any sorting at all. The drawables are all drawn in
> the order they are added to their parent geode. I have a depthbuffer, depth
> test is on etc.
>
>
>
> What am I missing?
>
>
>
> Daniel
>
> _______________________________________________
> 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