Hi Robert,

Wouldn't that just give me the number of displayed frames by the viewer? So
something I could use for a framerate counter for example?

Bart.

On 10/01/2008, Robert Osfield <[EMAIL PROTECTED]> wrote:
>
> Hi Bart,
>
> You can get the frame number form the osg::FrameStamp, you'll find
> this attached to the NodeVisitor that is traversing and calling the
> callbacks etc.  Or just get it from the viewer.
>
> Robert.
>
> On Jan 10, 2008 9:55 AM, Bart Kevelham <[EMAIL PROTECTED]> wrote:
> >
> > Hi all,
> >
> > I have created an animation at 25fps and I'm succesfully loading and
> playing
> > the animation inside openscenegraph in loop mode. (Set up everything
> > correctly with animation paths and the appropriate callbacks)
> > I want to add some functionality to my program that requires the frame
> > number of the current frame of the animation being played. (or the best
> > guess possible since it might be inbetween two control points) I have
> seen
> > getAnimationTime from AnimationPathCallback, but I can't seem to get the
> > correct final values out of it. Does anyone of you have any hints/tips
> or
> > perhaps even a solution to this problem? (using OSG 1.2 by the way)
> >
> > Thanks in advance.
> > With kind regards,
> >
> > Bart
> > _______________________________________________
> > 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
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to