I think my final question about then is, what about MatrixTransforms? If I have 
a Matrix Transform with an updateCallback that sets it's matrix every frame, 
would it matter if it was static or dynamic?

From: [email protected] 
[mailto:[email protected]] On Behalf Of Robert Osfield
Sent: Thursday, March 06, 2014 8:22 AM
To: OpenSceneGraph Users
Subject: Re: [osg-users] Must I call setDataVariance(DYNAMIC) to a group node?

HI Karl,

On 6 March 2014 12:00, Cary, Karl A. 
<[email protected]<mailto:[email protected]>> wrote:
This is actually something I have been curious about for exactly how it is done 
as well. What about if you have a Geode who you are going to add or remove 
drawables to. Do you make those drawables DYNAMIC?

It's only the contents of StateSet and Drawables that your need to mark as 
DYNAMIC if their contents are changing.  If only  their ownership is changing 
they you'd don't need to set them to DYNAMIC, even if you remove the StateSet 
or Drawable from the scene graph it's still safe as the rendering back end 
takes a reference to StateSet and Drawables that it's about to render.

Robert.


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to