Vincent,

Have your tried deriving your class LightMoveCallback from osg::NodeCallback
instead of osg::StateAttribute::Callback to see if the callback gets called?

Just a thought...
-Shayne

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Vincent
Bourdier
Sent: Thursday, August 07, 2008 8:56 AM
To: osg
Subject: [osg-users] light Callback

Hi,

I just need to move a light, and for that I try to use a callback.
So I implement a simple class lightMoveCallback : public
osg::StateAttribute::Callback 

with virtual void operator()(osg::StateAttribute* ss, osg::NodeVisitor* nv);

but the callback is never called...

I use : 
light->setUpdateCallback(new lightMoveCallback())  

thanks for help,

Regards,
Vincent.

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to