Jump to content
  • Advertisement
Sign in to follow this  

Abut .X file's FrameTransformMatrix

This topic is 4442 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 download a 3d fish model from this website: http://toucan.web.infoseek.co.jp/3DCG/3ds/aquarium/Kumanomi.zip Then i do some processes as following: 1.import the model(.3ds) into 3dMAX , name some parts of the fish model,eg. "Body", "CaudalFin", "Eyes". 2.export the model to .X format. Then open the .X file with EditPlus or Notepad,it looks like this: Frame Body { 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 { ...................//omitted }}}} Frame CaudalFin{ 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.087757,-0.024603,0.027450,1.000000;; } Mesh { ................... }}}} .................//omitted But, when i create a fish model with 3dMAX by myself and do the same things as before, the .X file looks different: Frame body { FrameTransformMatrix { 1.000000,0.000000,-0.000000,0.000000, -0.000000,0.000000,-1.000000,0.000000, -0.000000,1.000000,0.000000,0.000000, -3.144535,-0.141408,-0.000000,1.000000;; } Mesh { ................... }}}} Frame CaudalFin{ FrameTransformMatrix { 1.000000,0.000000,-0.000000,0.000000, -0.000000,0.000000,-1.000000,0.000000, -0.000000,1.000000,0.000000,0.000000, 14.179686,-0.678517,-0.000001,1.000000;; } Mesh { ................... }}}} The difference is that the "FrameTransformMatrix" : The anterior ones are all like identity matrix(the anterior 3 rows of the matrix),but the latter are not!(it exchanges the second and third row and make a negative at the second row) i don't know the reason why they are different, and i want to get a .X fish model like the latter one(that is, the "FrameTransformMatrix" is not like identity matrix, it should like the latter). Could anyone could help me?

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.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!