Hi Guys,

I have just added a RecordCameraPathHandler to my viewer and it works fine, 
which means the animation is recorded by pressing z and replayed by pressing Z. 
But the problem is the saved_animation.path file is never written, although it 
says so. I search the complete disk for *.path

Here is how i added the handler

osgViewer::View* viewP = 
dynamic_cast<osgViewer::View*>(_billInterface->getCamera()->getView());

recordHandler = new osgViewer::RecordCameraPathHandler("ETC.path");
viewP->addEventHandler(recordHandler);

And how do I replay the animation at the next start? I have a play button 
implemented in my GUI, but do not know how to implement the functionality.
like getView()->playAnimationFromFile("ETC.path")

thanks for your help
Felix
-- 
Neu: GMX FreeDSL Komplettanschluss mit DSL 6.000 Flatrate + Telefonanschluss 
für nur 17,95 Euro/mtl.!* http://dsl.gmx.de/?ac=OM.AD.PD003K11308T4569a
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to