Hi all,
I'm trying to make "blinking" a part of my scene by adding a "decorator" node (a group node with a shader) like this:

Original graph

     root

      |
   _     _

   |     |

node1   node2


"decorated" graph

     root

      |
   _      _   _

   |      |   |
 deco     | node2
     \    |
      node1


So I add a deco node to the graph and add the node1 as child of deco node.
Everything seems ok, my node1 is colored as needed by when I try to animate the decorator (add an update callback to the uniform , to the stateset or to the group node with a color change) nothing is updated, the callback isn't called. So, is there some restrictions on the update callback call ? A way to force the update ? Currently, I've found a workaround by rewriting the traverse function in my decorator node, but I am not very happy with this solution.


Fabrice




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

Reply via email to