animated MD5 mesh bounds.

Software: Away3D 4.x

Avatar
oladitan, Member
Posted: 20 March 2013 03:33 PM   Total Posts: 71

Hello I have an MD5 mesh that has a skelton.

when the mesh is first imported into the scene, the bounds look fine.
when a 90 degree rotation is applied to the mesh on the y-axis,

mesh.rotate(new Vector3D(0100), -90); 

the bounds do not rotate along with the mesh.

   

beers, Member
Posted: 20 March 2013 06:11 PM   Total Posts: 53   [ # 1 ]

You need to update the bounds manually. I grab the mesh.bounds.aabbpoints and use:

mesh.sceneTransform.transformVectors(inputaabblist,outputaabblist);

Note that for an md5 mesh, when it starts animating via the gpu, there is no way to update the bounds to match the animated mesh.

beers

   

Avatar
oladitan, Member
Posted: 21 March 2013 01:10 AM   Total Posts: 71   [ # 2 ]

thanks for the response beers. I tried

trace(mesh.bounds.aaabbPoints); 

but I get this error

ErrorAccess of possibly undefined property aaabbPoints through a reference with static type away3d.bounds:BoundingVolumeBase
   

beers, Member
Posted: 21 March 2013 02:18 AM   Total Posts: 53   [ # 3 ]

check your spelling

   

Avatar
oladitan, Member
Posted: 21 March 2013 03:06 AM   Total Posts: 71   [ # 4 ]

so like this?:

mesh.sceneTransform.transformVectors(mesh.bounds.aabbPointsmesh.bounds.aabbPoints); 
   

huanle, Newbie
Posted: 20 January 2014 04:00 AM   Total Posts: 6   [ # 5 ]

i have the same problem, help, i try , but no work

   
   
‹‹ calling Objects by Name

X

Away3D Forum

Member Login

Username

Password

Remember_me



X