Hi Valerian, you can try: node->getOrCreateStateSet()->setRenderBinDetails(MY_ORDER_NUMBER, "RenderBin");
On Fri, Jul 1, 2016 at 4:59 PM, Valerian Merkling <niarkolep...@gmail.com> wrote: > Hi, > > 0 > down vote > favorite > > > I'm working on a little GIS app using OSG. > > First I need to say that I do not need to get more than 15fps. > > I have to draw multiple layers on the same view. Layers may overlaps, but > not always. > > Right now, to be able to choose which layer is on top of the others, i'm > using the PolygonOffet properties, but I don't like it. > > So here is what I want to try : > -put a clear node on my root to clear all the buffers > -put a clear node on top of each layer node to clear only the depth buffer > -Try to control the rendering order with the child index (assuming that > the first child is rendered first , and the second after ...) > > Problem is that the Color buffer is never cleared with this setup, and I > think I misunderstood how to use clear nodes. > > So my question is : - Is it possible ? - How can I choose the rendering > order of my layer's node ? > > > Thank you! > > Valerian > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=67959#67959 > > > > > > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > -- trajce nikolov nick
_______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org