have a problem with rotate a mesh(x file)
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.
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:
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]
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]
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.
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.
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement