Animations and OSGB
I have this 3D model I've animated in 3D max and applied the OSG Sequence to save its animation.
My problem is how can I better handle its animation status? I'm using setAnimationTime(0) to have the animation at its frame 0, but it appears it automatically plays when I do that. I'm also using setAnimationState(-1) to have it stopped, but only works when its playing, and using getAnimationState() to detect that its not always reliable. You can find in the URL bellow a very simple source example of this behavior. What I want is to animate a model with a animation path followed by its internal animation, but being able to stop this and reset the model at any time. https://www.dropbox.com/s/nhr575byylywks5/o_milk.zip |
What I expected from vizard was the ability to:
- play the animation from start, whatever the current state is - stop the animation to frame 0, whatever the current state is Even doing this: Quote:
|
There's a few other commands such as loop mode and speed that might be useful for you. Take a look at this thread for example code.
|
All times are GMT -7. The time now is 05:30 AM. |
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC