I also tried to set a FramStamp: 

Code:
void MyCallback::operator()(osg::Node* node, osg::NodeVisitor* nv)
{
...
osg::FrameStamp* fsMod = new osg::FrameStamp();
fsMod->setFrameNumber(10);
fsMod->setReferenceTime(10);
fsMod->setSimulationTime(10);

nv->setFrameStamp(fsMod);
...
}



but this doesn't work, the animation is stuck at the first frame ... 
only if I use a varible instead of the constant 10 something happens: 

Code:
void MyCallback::operator()(osg::Node* node, osg::NodeVisitor* nv)
{
...
osg::FrameStamp* fsMod = new osg::FrameStamp();
fsMod->setFrameNumber(i);
fsMod->setReferenceTime(i);
fsMod->setSimulationTime(i);
i++;
nv->setFrameStamp(fsMod);
...
}


this doesn't make sence to me, why does a special "SimulationTime" not refer a 
spezial frame at the animation? 

Thanks!

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=59771#59771





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

Reply via email to