Hi, Robert.

On Thu, Nov 20, 2014 at 9:55 AM, Robert Osfield
<[email protected]> wrote:
> Could you explain the motivation behind needing a ONCE_REVERSE.  Is there a
> reason why the animation isn't just set up to go in the original direction?
>
> I also wonder whether a direction or speed parameter might be a better route
> to go, so that all the looping etc. methods can work whatever direction you
> want to push the animation in.

I'm not the author of this patch, but I've written something similar.
(My patch isn't quite finished yet as I need to fix it so that I can
interrupt the animation and change directions midway through the
animation.)

The reason I need the reverse animation functionality is because I
have an animated hatch that closes (baked into an FBX file). I wanted
to be able to just play the animation in reverse to open the hatch.
The reverse animation feature alleviates the need for two separate
animations (and the code to handle them).

I would be okay with setting a direction parameter or negative speed
value instead of the PlayMode enum if that's the route you preferred.
(My own patch adds reverse versions of all the existing play modes but
ping-pong.)

—Kevin Godby
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org

Reply via email to