Hi Felix, Have you looked at the class definition for RecordCameraPathHandler? If not go have a look at it. The constructor takes an optional filename that defaults to "saved_animation.path", you can set this to what ever you want, including full path if you wish. Normally in default settings the "saved_animation.path" will drop in the directory that you ran your application from.
Robert. On Mon, Mar 16, 2009 at 3:13 PM, schoko wikinger <[email protected]>wrote: > 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 >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

