marcoavg / jsc3d

Automatically exported from code.google.com/p/jsc3d
0 stars 0 forks source link

Support for Step-to-Step Animation #65

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
More of a support functionality request. 

I was wondering if there would be any support to take an .obj model and do 
Step-to-Step animation. 

Example: 
Object: Box with lid, apple inside
Animation: 
Button Action 1: Remove lid Animation
Button Action 2: Remove Apple from Box (x,y,z control)

I see in the example there is the ability to run an animation: 
http://jsc3d.googlecode.com/svn/trunk/jsc3d/demos/md2viewer.html

Any chance there is a way to run an animation once -

Original issue reported on code.google.com by shanedav...@gmail.com on 8 Mar 2014 at 7:13

GoogleCodeExporter commented 9 years ago
The example you mentioned seems to be hierarchical animation, which is hard to 
support in Jsc3d for the lack of an object hierarchy in its implementation. As 
you can see in Jsc3d, all the meshes are placed plainly under a scene object. 
It neither adopts a scenegraph structure nor has attached matrices for each 
mesh, which is key to hierarchical animation.

In contrast, MD2 is based on keyframe animation. It can be easily applied in 
Jsc3d by simply replacing content in vertex buffers frame by frame.

Original comment by Humu2...@gmail.com on 8 Mar 2014 at 12:42