www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: bigfishcatcher on May 21, 2008, 02:36:52 pm

Title: Animate only 1 time
Post by: bigfishcatcher on May 21, 2008, 02:36:52 pm
I have successfully created an animation sequence loading in OBJ and converting them to meshes.  I will animate correctly 1 time moving from 0 to 1 - however when I go back to 0 for the animate variable or even cycle from 0 to 1 again the character stays in the last frame.

Thanks for your help I really like this program.

Gary
Title: Re: Animate only 1 time
Post by: EgonOlsen on May 21, 2008, 03:53:24 pm
Could it be that the Mesh of the animated object is part of the animation itself? Or in other words: The object that you call animate() on must not reference a Mesh that also part of the Animation of that object.
Try to clone the Mesh of the animated object and see if that helps.
Title: Re: Animate only 1 time
Post by: bigfishcatcher on May 21, 2008, 04:27:32 pm
Yep - that was it

Thanks for the quick response!