Hi Peter,
I'm trying to set up an Update Callback in osg::Geometry to dynamically change the color of a vertex. I get no error, but my code is not evaluated ( cout in Callback is not printing ). I attached my Callback to osg::Geometry ( a simple Quad ) and setDataVariance( osg::Object::DYNAMIC ) ;
If you look at the docs for osg::Drawable::UpdateCallback, its callable method doesn't have the same signature as an osg::NodeCallback (which is what you seem to have used)
http://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00193.html virtual void update (osg::NodeVisitor *, osg::Drawable *) So it's normal that your operator()(...) isn't being called. :-) Hope this helps, J-S -- ______________________________________________________ Jean-Sebastien Guay jean-sebastien.g...@cm-labs.com http://www.cm-labs.com/ http://whitestar02.webhop.org/ _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org