[Papervision3D] pv3d >2.1 - DAE animation playframe X
Paul Tondeur
paul at paultondeur.nl
Mon Jul 13 15:04:56 PDT 2009
I'd say that the easiest (and probably the only) way for doing this is
by defining an animation clip that starts and ends at the same time.
Animation clips are time based and not frame based. When I'm right
it's based on 30 fps. So when you want to play frame 7, you have to
divide it by 30 first in order to get the time:
var frameTime:Number = 30 / 7;
Then we can define an animation clip
var animationFrame:AnimationClip3D = new
AnimationClip3D("frame7",frameTime,frameTime);
Make the model aware of the clip
daeModel.animation.addClip(animationFrame);
And finally play the clip
daeModel.play("frame7");
I've just quickly tested this. It looks likes this works fine here. As
far as I know this is the only way to render just a single frame out
of an animation.
I hope this works for you.
Paul
On Jul 13, 2009, at 11:47 PM, speedok wrote:
>
> Aloha,
>
> I made this before pv3d '2.1' and talked with Tim about this and he
> gave me
> possible directions (sadly i didnt had time for it yet and lost his
> notes
> sorry Tim:)).
>
> Basically what i want to do it play a certain frame in the animation
> like
> dae.playframe(7);
>
> Anyone allready made something like this ?
> (if not ill dive into this once again:))
>
>
> --
> View this message in context: http://www.nabble.com/pv3d-%3E2.1---DAE-animation-playframe-X-tp24470009p24470009.html
> Sent from the Papervision3D mailing list archive at Nabble.com.
>
>
> _______________________________________________
> Papervision3D mailing list
> Papervision3D at osflash.org
> http://osflash.org/mailman/listinfo/papervision3d_osflash.org
More information about the Papervision3D
mailing list