Archived

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

Deadman55

Perspective? Orthog?

Recommended Posts

if you;re talking about the inverted Y coordinate thing they you''ll have that no matter what. just write your setRaster function to take that into account.

so if you want the coords to start in the lower left,

y = screenHeight - y;

-me

Share this post


Link to post
Share on other sites
quote:

If you want 2D, then you HAVE to use the Ortho mode, and make all your vertex have the Z set as 0


Since 2D is a special case of 3D, you can do 2D with a perspective matrix aswell. Just make sure you draw everything in the same Z-plane. Well, it''s even possible to do 2D with a perspective matrix with object on different Z-planes. As long as you know what you do and you get the result you want, it''s OK. It just happens to be a little bit easier with an orthographic matrix if you can''t understand the perspective matrix fully, but if you can, there''s no difference.

Share this post


Link to post
Share on other sites