[osg-users] RecordCameraPathHandler where is the saved_animation.path file?

Robert Osfield robert.osfield at gmail.com
Mon Mar 16 08:17:38 PDT 2009

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.


On Mon, Mar 16, 2009 at 3:13 PM, schoko wikinger <FelixIlbring at gmx.net>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
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20090316/29cd9c51/attachment-0003.htm>

More information about the osg-users mailing list