Yes, but if I did it, I cannot set my lightmovecallback in the update callback for the light, which needs a stateattribute callback...
Thanks for help Vincent. 2008/8/7 Tueller, Shayne R Civ USAF AFMC 519 SMXS/MXDEC < [EMAIL PROTECTED]> > 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. > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

