Sign in to follow this  
rabbitlzx

Abut .X file's FrameTransformMatrix

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this