PDA

View Full Version : Rendering without z transformation and without ortho mode



MofuX
09-12-2004, 04:47 AM
hi, i'm currently writing a level editor. like every editor it should render left, top and front view in some kind of orthographic view.
my question is:
is there any way to ignore the depth correction without using the ortho mode (because the coords system get messed up with ortho mode)

regards, mofux

chowe6685
09-12-2004, 06:15 AM
what you want is ortho mode, what do you mean when you say the coordinates get screwed up?

MofuX
09-12-2004, 07:36 AM
well, ortho mode is using screen coordinate system, not world coordinate system.

how are 3d editors handling this? (are they also using ortho mode?)

09-12-2004, 11:26 AM
its not a screeen coord sysytem per se. you can make ortho do anything you want, screen or world. its all in the scaling.

screen:
glOrtho( 0, 1024, 768, 0, -1, 1 );

world:
glOrtho( -32768, 32768, -32768, 32768, -32768, 32768 );

or whatever. glOrtho is most certainly what you want for an orthographic view ;)

MofuX
09-13-2004, 01:52 AM
thanks, i found out the same last evening when i had a look on the specs of glOrtho. Thanks anyway, helped alot