md5mesh and skeleton

Software: Away3D 4.x

Samuel Girardin, Member
Posted: 02 September 2011 03:17 PM   Total Posts: 74

Hi all,

Here is a little test displaying md5mesh’s joints/bones. Perhaps it could be usefull to implements this functionality in the engine.

http://www.visualiser.fr/fp11/Md5Skeleton.html (FP 11 beta not RC)

Samuel

 

   

Avatar
80prozent, Sr. Member
Posted: 02 September 2011 03:47 PM   Total Posts: 430   [ # 1 ]

hi

good idea, very usefull.

still, if the displayed bones would have a cone like shape (like in most 3d-apps) it would be easier to sepperate them from each other.

 

 Signature 

sorry…i hope my actionscript is better than my english…

   

Avatar
Choons, Sr. Member
Posted: 02 September 2011 05:04 PM   Total Posts: 281   [ # 2 ]

really nice work, Samuel.

   

Samuel Girardin, Member
Posted: 03 September 2011 04:23 PM   Total Posts: 74   [ # 3 ]

Thanks Choons !  grin

80prozent :i’m woking on what to you told me on your post

Sam

   

Avatar
kurono, Sr. Member
Posted: 04 September 2011 05:47 AM   Total Posts: 103   [ # 4 ]

Great work, man!

   

Samuel Girardin, Member
Posted: 04 September 2011 10:11 AM   Total Posts: 74   [ # 5 ]

A new one smile. It displays MD5mesh skeleton and bones.

http://www.visualiser.fr/fp11/Md5SkeletonAndBones.html

Sam

   

Samuel Girardin, Member
Posted: 07 September 2011 11:39 AM   Total Posts: 74   [ # 6 ]

update for FP11 rc1. Seems to be faster ?

http://www.visualiser.fr/fp11/Md5SkeletonAndBones.html

Samuel

   

Samuel Girardin, Member
Posted: 08 September 2011 11:24 PM   Total Posts: 74   [ # 7 ]

A new one, about 17 bones, 16 hingeConstraint, and 5000 faces cylinder. The rigid body skeleton is built at runtime.

Just clic and the ground to impulse force.

http://www.visualiser.fr/fp11/rope.html

Samuel

   

Avatar
80prozent, Sr. Member
Posted: 08 September 2011 11:50 PM   Total Posts: 430   [ # 8 ]

nice one

runs with 15fps on my old laptop….

are you still importing the skeleton/binding data with md5 ?

i am searching for example for creating skeleton without using the md5 importer.

 Signature 

sorry…i hope my actionscript is better than my english…

   

Samuel Girardin, Member
Posted: 09 September 2011 01:38 AM   Total Posts: 74   [ # 9 ]

60 fps on my one year old laptop(i7) grin And yes MD5mesh data are used to build the skeleton and the rigidbodies. I haven’t done a test for this one, but i almost sure GPU is not used for deforming the ‘rope’ whereas if it was a classic animation (md5export of a 3dsMax keyframes animation) where Away uses GPU to render the animation.
I think that I can inject jointPose transform data somewhere near the ‘SmoothSkeletonAnimator’ to use GPU to deform the mesh. I will try.

Samuel

 

 

   

Avatar
Choons, Sr. Member
Posted: 20 September 2011 09:22 PM   Total Posts: 281   [ # 10 ]

bump. Hey Samuel did you ever determine whether the rope example is running om CPU or not? Devs you guys have an opinion on this?

   

Samuel Girardin, Member
Posted: 20 September 2011 10:08 PM   Total Posts: 74   [ # 11 ]

For the rope,I ve just made a trace on _usesCPU in SkeletonAnimation and it returns false, so it uses CPU… It’s weird, because on the skinned ragdoll test I’m working, it returns true (so it uses GPU).  My character mesh contains less faces than the cylinder. 1600 vs 5000. Is there a relation ?  ? Both are MD5Mesh.

 

 

 

   

Avatar
Choons, Sr. Member
Posted: 20 September 2011 10:13 PM   Total Posts: 281   [ # 12 ]

wait- is that backwards? usesCPU returns false so that means it uses GPU right?

EDIT - nevermind. just saw the note on the function: “Returns false if it cannot run on GPU”

which is still backwards to me - false should mean it ISN’T running on CPU

   

Samuel Girardin, Member
Posted: 20 September 2011 10:20 PM   Total Posts: 74   [ # 13 ]

you re right they should named it _useGPU !

   

Avatar
Choons, Sr. Member
Posted: 20 September 2011 10:22 PM   Total Posts: 281   [ # 14 ]

exactly wink well your examples are really nice. I’m studying them to see if I can figure out why one runs on GPU and the other doesn’t. I’ll post back if I find out why

   

Avatar
Choons, Sr. Member
Posted: 21 September 2011 08:29 AM   Total Posts: 281   [ # 15 ]

Hey Samuel, check out this thread I started after the last post we had earlier

http://away3d.com/forum/viewthread/807/

looks like the note above usesCPU is incorrect. True means it’s running on CPU instead of what that note says. You can see that if you look down in SkeletonAnimation.as at function getAGALVertexCode

   
   

X

Away3D Forum

Member Login

Username

Password

Remember_me



X