Jump to content
  • Advertisement
Sign in to follow this  
memmott

skinning meshes (.x files, MAYA, direct3D) (moved post)

This topic is 5086 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've moved this post to here, over from the newbie section. After reading through the other posts, and the really good .x file tutorial it seems that maybe it should be over here. (If I'm wrong and have offended, please let me know.) Anyway, I'm trying to get my head wrapped around using skinned meshes and creating them using MAYA. I've been working through the directX SDK sample on using a skined mesh, and for what is there I seem to understand it all right. And I've gotten the .x exporter for MAYA. My problem is I don't have any idea how to tell MAYA what I want the animation to be. I set up my skeleton structure and create a wonderfull (well crappy really but...) animation of my character walking. I then try to export it to a .x file and load it into that same SDK sample. It just renders all the posses at once. When I look at the text for the .x file it doesn't have any animation information in it. (I'm not really seeing where it's putting the multiple meshes but.....) Okay, to my real questions. 1: Does anyone know of a .x file IMPORTER for MAYA. Maybe seeing this in reverse would give me a good idea of what I need to set up. 2: Even better, has anyone seen or heard of a tutorial on this problem. i.e. The whole process of doing the skinned meshes, from creating the geometry to setting up the animation to loading it in directx, to rendering it? probably not, but it would be ever so helpfull. Thanks in advance for any helpfull thoughts and whatnot. Rob.

Share this post


Link to post
Share on other sites
Advertisement
Hi friend!

Try out this post

and then if you need help check out when you've exported your .X file if in it is saved something like this:



AnimationSet idle
{


Animation {

{ joint12 }

AnimationKey {
0;
2;
0;4;-0.716750,0.000000,0.000000,0.697330;;,
4320;4;-0.716750,0.000000,0.000000,0.697330;;;
}

AnimationKey {
1;
2;
0;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
2;
0;3;4.615137,-0.000000,0.613811;;,
4320;3;4.615137,-0.000000,0.613811;;;
}
}

Animation {

{ joint11 }

AnimationKey {
0;
2;
0;4;-0.000000,0.999115,-0.042059,-0.000000;;,
4320;4;-0.000000,0.999115,-0.042059,-0.000000;;;
}

AnimationKey {
1;
2;
0;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
2;
0;3;3.579863,-0.000000,0.613811;;,
4320;3;3.579863,-0.000000,0.613811;;;
}
}

Animation {

{ joint10 }

AnimationKey {
0;
3;
0;4;-0.000000,-0.686787,0.726858,0.000000;;,
2880;4;0.155055,-0.681836,0.712746,0.055240;;,
4320;4;-0.000000,-0.686787,0.726858,0.000000;;;
}

AnimationKey {
1;
3;
0;3;1.000000,1.000000,1.000000;;,
2880;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
3;
0;3;-0.836495,-2.154608,0.306905;;,
2880;3;-0.836495,-2.154608,0.306905;;,
4320;3;-0.836495,-2.154608,0.306905;;;
}
}

Animation {

{ joint15 }

AnimationKey {
0;
2;
0;4;-0.000000,-0.698887,0.715233,0.000000;;,
4320;4;-0.000000,-0.698887,0.715233,0.000000;;;
}

AnimationKey {
1;
2;
0;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
2;
0;3;4.386433,-0.000000,-0.537084;;,
4320;3;4.386433,-0.000000,-0.537084;;;
}
}

Animation {

{ joint14 }

AnimationKey {
0;
2;
0;4;-0.000000,0.999297,-0.037501,-0.000000;;,
4320;4;-0.000000,0.999297,-0.037501,-0.000000;;;
}

AnimationKey {
1;
2;
0;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
2;
0;3;3.908906,-0.000000,-0.613811;;,
4320;3;3.908906,-0.000000,-0.613811;;;
}
}

Animation {

{ joint13 }

AnimationKey {
0;
3;
0;4;-0.725217,0.000000,0.000000,-0.688521;;,
2160;4;-0.724090,0.128287,-0.036938,-0.676663;;,
4320;4;-0.725217,0.000000,0.000000,-0.688521;;;
}

AnimationKey {
1;
3;
0;3;1.000000,1.000000,1.000000;;,
2160;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
3;
0;3;0.963237,-2.103911,0.383632;;,
2160;3;0.963237,-2.103911,0.383632;;,
4320;3;0.963237,-2.103911,0.383632;;;
}
}

Animation {

{ joint3 }

AnimationKey {
0;
2;
0;4;-0.709760,0.000000,0.000000,0.704444;;,
4320;4;-0.709760,0.000000,0.000000,0.704444;;;
}

AnimationKey {
1;
2;
0;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
2;
0;3;3.371423,0.000000,0.000000;;,
4320;3;3.371423,0.000000,0.000000;;;
}
}

Animation {

{ joint9 }

AnimationKey {
0;
2;
0;4;-0.999988,0.000000,0.000000,0.004808;;,
4320;4;-0.999988,0.000000,0.000000,0.004808;;;
}

AnimationKey {
1;
2;
0;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
2;
0;3;2.636348,0.000000,-0.598504;;,
4320;3;2.636348,0.000000,-0.598504;;;
}
}

Animation {

{ joint8 }

AnimationKey {
0;
2;
0;4;-0.996715,-0.001239,0.079478,0.015539;;,
4320;4;-0.996715,-0.001239,0.079478,0.015539;;;
}

AnimationKey {
1;
2;
0;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
2;
0;3;2.486205,-0.000000,0.149626;;,
4320;3;2.486205,-0.000000,0.149626;;;
}
}

Animation {

{ joint7 }

AnimationKey {
0;
4;
0;4;-0.994313,0.006374,-0.046325,0.095681;;,
864;4;-0.981424,0.021276,-0.142425,0.126762;;,
2592;4;-0.994663,0.002460,-0.072232,0.073634;;,
4320;4;-0.994313,0.006374,-0.046325,0.095681;;;
}

AnimationKey {
1;
4;
0;3;1.000000,1.000000,1.000000;;,
864;3;1.000000,1.000000,1.000000;;,
2592;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
4;
0;3;-0.162187,2.029143,0.613811;;,
864;3;-0.162187,2.029143,0.613811;;,
2592;3;-0.162187,2.029143,0.613811;;,
4320;3;-0.162187,2.029143,0.613811;;;
}
}

Animation {

{ joint6 }

AnimationKey {
0;
3;
0;4;-0.000000,0.004386,0.999990,0.000000;;,
2304;4;-0.000000,0.004386,0.999990,0.000000;;,
4320;4;-0.000000,0.004386,0.999990,0.000000;;;
}

AnimationKey {
1;
3;
0;3;1.000000,1.000000,1.000000;;,
2304;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
3;
0;3;2.889821,-0.000000,0.299252;;,
2304;3;2.889821,-0.000000,0.299252;;,
4320;3;2.889821,-0.000000,0.299252;;;
}
}

Animation {

{ joint5 }

AnimationKey {
0;
2;
0;4;-0.913681,-0.004077,-0.406308,-0.009167;;,
4320;4;-0.913681,-0.004077,-0.406308,-0.009167;;;
}

AnimationKey {
1;
2;
0;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
2;
0;3;2.637323,-0.000000,-0.074813;;,
4320;3;2.637323,-0.000000,-0.074813;;;
}
}

Animation {

{ joint4 }

AnimationKey {
0;
4;
0;4;0.000000,0.988837,-0.149004,-0.000000;;,
1008;4;-0.015503,0.979949,-0.179947,0.084133;;,
3456;4;-0.023076,0.992238,-0.090246,0.082378;;,
4320;4;0.000000,0.988837,-0.149004,-0.000000;;;
}

AnimationKey {
1;
4;
0;3;1.000000,1.000000,1.000000;;,
1008;3;1.000000,1.000000,1.000000;;,
3456;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
4;
0;3;-0.064417,-1.824647,0.897756;;,
1008;3;-0.064417,-1.824647,0.897756;;,
3456;3;-0.064417,-1.824647,0.897756;;,
4320;3;-0.064417,-1.824647,0.897756;;;
}
}

Animation {

{ joint2 }

AnimationKey {
0;
4;
0;4;-0.000000,0.999853,-0.017148,-0.000000;;,
1440;4;-0.298086,0.954385,-0.016368,-0.005112;;,
2880;4;0.386637,0.922073,-0.015814,0.006631;;,
4320;4;-0.000000,0.999853,-0.017148,-0.000000;;;
}

AnimationKey {
1;
4;
0;3;1.000000,1.000000,1.000000;;,
1440;3;1.000000,1.000000,1.000000;;,
2880;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
4;
0;3;2.840031,-0.000000,-0.000000;;,
1440;3;2.840031,-0.000000,-0.000000;;,
2880;3;2.840031,-0.000000,-0.000000;;,
4320;3;2.840031,-0.000000,-0.000000;;;
}
}

Animation {

{ joint1 }

AnimationKey {
0;
4;
0;4;-0.000000,-0.697576,0.716511,0.000000;;,
1440;4;-0.229281,-0.658819,0.676702,-0.235504;;,
2880;4;0.265784,-0.644958,0.662465,0.272999;;,
4320;4;-0.000000,-0.697576,0.716511,0.000000;;;
}

AnimationKey {
1;
4;
0;3;1.000000,1.000000,1.000000;;,
1440;3;1.000000,1.000000,1.000000;;,
2880;3;1.000000,1.000000,1.000000;;,
4320;3;1.000000,1.000000,1.000000;;;
}

AnimationKey {
2;
4;
0;3;0.012674,8.301578,0.000000;;,
1440;3;0.012674,8.301578,0.000000;;,
2880;3;0.012674,8.301578,0.000000;;,
4320;3;0.012674,8.301578,0.000000;;;
}
}
}



That's the animation saved in your .X file...
You can find more info in DirectX section on Articles on this site...

Look for .X file animation or .X file parsing articles...

I hope this'll help you...

Byez,

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!