Archived

This topic is now archived and is closed to further replies.

swapping coordinate systems from 3D studio to direct3d

This topic is 5245 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''m having a bit of trouble converting from 3D studio to direct3D''s coordinate system, i was just checking if this is the swap matrix:
1 0 0 0
0 0 1 0
0 1 0 0
0 0 0 1
 
things are not working, so i would just like to make sure this is right.

Share this post


Link to post
Share on other sites
The matrix indeed changes the notion of y/z. No problem there.

EDIT:
Assuming, in your d3d program you define the 'up' vector to be [0 1 0].

[edited by - Nik02 on August 8, 2003 4:23:52 AM]

Share this post


Link to post
Share on other sites
ok, so if you made a view matrix that was at angle 0, 0, 0, at the origin, then it should be looking down the y axis after multiplying by that matrix in Direct3D? mine is looking down, and can''t for the life of me figure out why.

Share this post


Link to post
Share on other sites
With unit view matrix, the 'camera' should look at positive z, as far as i know.
I'm not sure if i misunderstood your last post?

[edited by - Nik02 on August 9, 2003 5:16:47 AM]

Share this post


Link to post
Share on other sites