MD5 mesh messing up

Software: Away3D 4.x

cowpie, Newbie
Posted: 08 February 2012 12:20 AM   Total Posts: 3

I am trying to import the hellknight.md5mesh from one of the broomstick tutorials into Away3D 4, but I’m running into problems. It loads just fine and displays just fine until I try to attach the skeleton.

animation = new SkeletonAnimation(event.asset as Skeleton3true);
mesh.geometry.animation animation

After I attach the skeleton, the mesh gets extremely warped. Attached is a zip file of 2 screenshots (before and after). Is this something I’m doing wrong or a bug with the MD5 Parser? Thanks!

 

File Attachments
screenshots.zip  (File Size: 23KB - Downloads: 135)
   

Avatar
theMightyAtom, Sr. Member
Posted: 08 February 2012 08:08 AM   Total Posts: 669   [ # 1 ]

The hellknight has already got a Skeleton. You need to assign an animation.
Check out this example code….
https://github.com/away3d/away3d-examples-broomstick/blob/master/src/MonsterController.as

Good Luck!

   

cowpie, Newbie
Posted: 08 February 2012 01:48 PM   Total Posts: 3   [ # 2 ]

Thanks! That was the problem. I was grabbing the skeleton as the item loaded and then attaching it to the mesh ... not realizing that the Away3D code already does that for you. Thanks for your help.

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X