[osg-users] Guaranteeing a specific order of node callbacks?

Robert Osfield robert.osfield at gmail.com
Fri Jan 15 08:26:58 PST 2016

Hi Christian,

Callbacks are simply called in the order that visitor comes across
them, it's depth first, left right by default for OSG's update
traversal.  There isn't any other controls for order like there is for
the rendering back end.

You can either enforce the ordering when you create your scene graph
or manage the update at a higher level than using update callbacks.


On 15 January 2016 at 15:47, Christian Buchner
<christian.buchner at gmail.com> wrote:
> Hi,
> I have a couple of Geodes with an associated update callback, responsible
> for updating the nodes.
> Now due to a customer request there is a dependency between these Geodes,
> requiring a specific order in which these callbacks have to be executed.  My
> geodes each render a 3-dimensional cylinder indicating a measurement value.
> Now the customer wants different measurements stacked on top of each other,
> and hence the bars on top need to know the value of the bar below in order
> to render correctly.
> This is done easiest if I can guarantee that the node callbacks will be
> called in a specific order (bottom to top, in stacking order)
> Is there any mechanism to do deal with order dependencies of scene graph
> updates, such as the render bins that are used in rendering?
> Christian
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

More information about the osg-users mailing list