Simulating human head movement

Software: Away3D 4.x

bo, Newbie
Posted: 06 June 2012 12:46 PM   Total Posts: 3

Hi to all,
i’m writing routines that simulate the movement of the human head. After the model is correctly generated under the scene, i use some subroutines that generate new vertices and submit the new list to the subGeometry used to create the starting model (vertices and uvs data).
I was expecting the model animating but nothing seems to happen.
Do i chose the wrong way to animate the model?
How can i do if i cannot use a Matrix?

Thans for all
Max


var new_uvs: Vector.<Number>  = new Vector.<Number>;
var new_vertices : Vector.<Number>  = new Vector.<Number>;
 
var modified :Array = _ind_motion.main_routine();
var x_y_z :Array = null;
 
for(var i:int=0; i

   

Richard Olsson, Administrator
Posted: 16 June 2012 12:19 PM   Total Posts: 1192   [ # 1 ]

If you are indeed changing the values every frame, things should animate. However, you really shouldn’t be uploading a new vertex buffer every frame if you can avoid it. Try looking into the VertexAnimator, which lets you interpolate between several vertex buffers (as frames). This is essentially what in some 3D animation packages are called “morph targets”, and might be what you need.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X