PDA

View Full Version : glOrtho aspect ratio question?



ironduke
09-10-2000, 06:58 PM
I have noticed in certain cad appz that no matter if you resize the window the actual drawing keeps it's size and dimension's how do I recreate this?

Thanx in Advance http://www.opengl.org/discussion_boards/ubb/smile.gif

[This message has been edited by ironduke (edited 09-10-2000).]

ngill
09-11-2000, 08:31 AM
simple... if the windows is 500 pixels wide and 100 pixels tall map it to -250,250 -50,50 instead of using your older ratio...

key idea is that keep the ratio of the window and the ratio of the co ordinates you are mapping to same... http://www.opengl.org/discussion_boards/ubb/wink.gif