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

2016-01-15 Thread Robert Osfield
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.

Robert.

On 15 January 2016 at 15:47, Christian Buchner
 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@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


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

2016-01-15 Thread Christian Buchner
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org