www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: bLAZY on January 13, 2012, 08:46:27 pm

Title: Animated object
Post by: bLAZY on January 13, 2012, 08:46:27 pm
Hi,

I'd like to add to my world a character which should be animated. The animation is all the time repeated, it's kind of waving plane. How to do such a thing with Blender. I tryed to make a simple cube animation to test it this way: http://cgcookie.com/blender/2010/08/31/blender-intro-to-animation/ (http://cgcookie.com/blender/2010/08/31/blender-intro-to-animation/). But I saw that simple loading 3ds object like in Wiki doesn't make animation. How to force it to animate?
Title: Re: Animated object
Post by: EgonOlsen on January 13, 2012, 09:01:04 pm
It depends what you mean when you say "animation". If you mean moving, rotating and scaling objects...this is done in code. If you mean animation that actually alters the mesh, you have bascially three options:

Title: Re: Animated object
Post by: bLAZY on January 17, 2012, 10:51:14 am
Thans for answer.
So I would like to use keyframe animation. What is better, MD2 or 3DS, if i'd like then to use serialization to have that animation on android? Or there is no difference?
Title: Re: Animated object
Post by: Marlon on January 18, 2012, 09:56:30 pm
I suggest you to export your 3D model as a md2 file with the help of blender.
You will then need a md2.txt file, where you give information about the object and its keyframes.
For example if you have a character, which has 2 animations (move=4 frames and idle=2 frames) your file should look like this:
# MD2 Frame Name List
"nothing" 1
"move" 4
"idle" 2