PDA

View Full Version : exporting to different coordinate system


brekehan
05-05-2009, 02:56 AM
I am trying to export my vertex positions, normals, and UVs from Max to a file. My file is read into a different coordinate system. (DirectX)

Been working on this for 4 days and still getting incorrect data for the UVWs.
I'm not confident about my vertex position transform either, but I just have a unit cube to test with.
Iíve tried multipying max UVs by

[1 0 0]
[0 1 0]
[0 0 1]
[0 0 0]

Iíve tried multipying max UVs by

[1 0 0]
[0 -1 0]
[0 0 1]
[0 0 0]

Iíve tried several others

First off, someone tell me if the matrices in max are row major or column major?
Why is the matrix class the odd 3x4 size instead of 4x4 or 3x3?

Then please help me figure out how take these vectors and transform them into the desired vectors
Max -> Exported File
[0 1 0] -> [0 0 0]
[0 0 0] -> [0 1 0]
[1 0 0] -> [1 1 0]
[1 1 0] -> [1 0 0]

I just want to make the top left -> bottom left and the top right -> bottom right
It shouldnít be a week long chore!

Iíve googled, Iíve read my linear algreba, Iíve read my graphics books.

It just appears to be a simple reflection right?
Google doensít give me clear directions on creating a reflection matrix.
My OpenGL book seems to think I should just use [1 0 0] [0 -1 0] [0 0 1], but it doesnít work

CGTalk Moderation
05-05-2009, 02:56 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.