[osg-users] ColorMask and depth information issue.

Robert Osfield robert.osfield at gmail.com
Sat Aug 15 01:28:50 PDT 2015


Hi Alessandro,

The surprising this is that it ever worked in the first place, it was a
fluke it did what you intended but the scene graph itself wasn't producing
the result it I would have expected given the settings you used - the
result you got is one of many random orders that could have got.

If you want a specific rendering order then you should explicitly set the
RenderBinDetails so the OSG knows exactly what to draw when.  If you just
place all the objects in the default bin then they'll be state sorted -
state sorting is based on StateSet pointers, so typically you'll get
subgraphs created first coming first, but this isn't a hard fast rule as
memory allocators can put data anywhere they like.

Robert.


On 14 August 2015 at 23:23, Alessandro Terenzi <a.terenzi at gmail.com> wrote:

> Using render bins makes sense but what I still do not completely
> understand is why the very same setup with OSG 3.2.1 worked as I expected
> despite of render bins and, also, since the occluder plane is taken into
> account to fill the depth buffer (as well as the boxes) why it is still
> required to explicitly set render bins? Does it make sense if they all live
> in the same render bin?
>
> Thanks.
> Alessandro
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=64779#64779
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20150815/bd0efb71/attachment-0003.htm>


More information about the osg-users mailing list