Jump to content
  • Advertisement
Sign in to follow this  
thuong

have a problem with rotate a mesh(x file)

This topic is 4954 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

Hi All, i have x file, it exported from Maya(have skeleton and mesh) i want control any mesh (Ex: rotate) by change transformation matrix of it, but i have a problem with that, when mesh have not attach to any bone then i can rotate it by change transfomation matrix of it but otherwise then i can not. anybody help me to solve this problem? Thanks alot.

Share this post


Link to post
Share on other sites
Advertisement
English is probably not your native language, so I'm going to try to restate your question. Please don't take this as offensive. I'm just trying to clarify:

Quote:
I've exported an x file from Maya containing a skeleton and mesh. I want to control the mesh with a transformation matrix, but I cannot do this when the mesh is controlled by a bone.

Does this sound correct?

Are you using a skinmesh, or is it segmented? And do you want to control a single bone, or the whole hierarchy of bones all at once? If you want to control the entire hierarchy, you need to multiply your transformation matrix with the base bone (hip?) in the same way you multiply a parent bone with a child bone. You would use the transformation matrix as if it were the computed result of a parenting bone.

Hope that helps [smile]

Share this post


Link to post
Share on other sites
thanks alot

yes, i see.

but that have not is my problems

you see

i have struct of x file:

FrameTransformMatrix {
1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000,0.000000,0.000000,0.000000,0.000000,1.000000;;
}

Mesh faceShape {
669;
-0.000002;0.139399;5.386993;,
-0.000002;0.663365;6.369008;,
-0.429396;0.807264;6.332086;,
-0.924365;0.753045;5.935418;,
-0.921940;0.216680;5.233505;,
-1.887547;0.813694;4.755240;,
-1.951804;0.450647;4.460740;,
}
}

i want control Mesh faceShape by change transfomation matrix of it.

thanks alot.

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!