• Advertisement
Sign in to follow this  

Coordinate systems and Matrices/Quaternions

This topic is 3820 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

Hello, Edited - Rephrase I've written my Matrix code. They're column-major. Am I correct in that the negative z axis points outward, positive x to the right, and positive y upwards? Assuming I'm correct, how I can I mathematically my matrices so the positive z points outward? [Edited by - bronxbomber92 on November 3, 2007 4:35:25 PM]

Share this post


Link to post
Share on other sites
Advertisement
Well, a matrix is just a set of numbers. Phrases like "z-axis points inwards or outwards" have no meaning until you visualize the axes, say, by writing a software rasterizer which will rasterize the lines representing the axes of the matrix. For example, in opengl, a line which joins the points (0, 0, 0) and (1, 0, 0), is a line which starts at the center of the screen and ends one unit to the right, bit it could have any direction on the screen if the specs of the system dictated otherwise. I hope you understood what i'm trying to say.

Share this post


Link to post
Share on other sites
Quote:
Original post by bronxbomber92
how I can I mathematically my matrices


What?

glScalef(1.0f,1.0f,-1.0f);

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement