[osg-users] assume render order?

2014-07-18 Thread Bram Vaessen
Hi, I was wondering what kind of assumptions I can make about the rendering order. for example in kinda pseude code: rootnode-addChild(node1); rootnode-addChild(node2); node1-addChild(node3); node1-addChild(node4); node3-addChild(node5); would give: rootnode - node1 - node3

Re: [osg-users] assume render order?

2014-07-18 Thread Robert Osfield
Hi Bram, The rendering order is controlled by the type of RenderBin that the drawable leaves are dropped into during the cull traversal. If the drawables are in the default opaque bin then they'll be sorted by state order, the traversal order will have no effect on the draw order. If the

Re: [osg-users] assume render order?

2014-07-18 Thread Bram Vaessen
Thanks for your quick answer! What exactly does 'sorted by state order' mean? -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=60334#60334 ___ osg-users mailing list osg-users@lists.openscenegraph.org

Re: [osg-users] assume render order?

2014-07-18 Thread Robert Osfield
On 18 July 2014 16:30, Bram Vaessen bram.vaes...@gmail.com wrote: Thanks for your quick answer! What exactly does 'sorted by state order' mean? state sorting uses the pointer to the StateSet as the key, so all Drawables that inherit the same state will be rendered together. Robert.