Hi Wu,

std::sort is only used by RenderBin's when they need to sort into depth
order, otherwise they just use the state sorted order provided by the state
graph. When std::sort() is used keys of 0 will always appear before 1.  The
only difference with std::stabe_sort is that if there are two 0 values then
it preserves the order, while std::sort makes no such guarantee.

Robert.


On 9 March 2014 06:09, ttaw <[email protected]> wrote:

> As we know, there may be several passes used in osgFX::Technique. My
> question is whether different-passes-drawables would be rendered orderly as
> the passes are added into Technique (pass 0 is rendered before pass 1). As
> I read the source code of the file "RenderBin.cpp", I found that not
> std::stable_sort but std::sort is used to sort tansparent drawables. Does
> it mean that pass 0 may be rendered after pass 1 for transparent drawables?
> Thanks.
>
>  ------------------
>  Failure is the mother of success.
> Wu Zhicheng
>
>
> _______________________________________________
> 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