Hello all,
I was wondering if there was a way to get notified of changes to the scene
graph?
What I'm trying to achieve is to update some data whenever a node in the scene
graph changes. For example, if a transform node is changed, or if a node is
added to the graph, or if a material node is changed. I guess I could just do
one traversal per frame to build the data I need and start over at the next
frame, but hopefully just updating what has changed between frames will be
faster (I'm hoping cleverness is better than brute force... :-) So I'm looking
for a way nodes could tell me they've changed since the last frame.
Looking at the doxygen, I see setUpdateCallback/setEventCallback methods, but I
don't think that's the way to do what I have in mind. Using the update callback
for example would just call it every frame for every node in the update
traversal, but what I'd like is to know which nodes have changed and just be
called for those nodes.
Is there a way? Or am I just thinking about this too much? Perhaps the brute
force approach is good enough?
Thanks in advance,
J-S
--
______________________________________________________
Jean-Sebastien Guay [EMAIL PROTECTED]
http://whitestar02.webhop.org/
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/