Skip to main content
gamedev.net
🔒 Locked

Ortho

Started by Zumichu 2 replies 450+ views
Original Post
Zumichu
Zumichu
I want to use glOrtho (or gluOrtho) to set up my projection to render a UI. If I use glOrtho(0,w,0,h,-1.0f,1.0f), where w = width of window and h = height of window I works, but the origin is at the bottom left. I would really like it at the top left, but glOrtho(0,w,h,0,-1.0f,1.0f) doesn''t seem to work (no display). Shouldn''t this work, and if not, hot could I achieve what I want. Thank you.
[I did absolutely nothing, and it was everything that I thought it could be]
Lunatic Raven
Lunatic Raven
It works fine for me. Just make sure you don''t have culling or something silly turned on that would make the stuff disappear. I have done that on numerous occasions and kicked myself in the end.
"...."
Zumichu
Zumichu
thanks, I didn''t think about culling. The different Projections reverse the winding order, so they got culled. anyway I disabled culling, and it works.

thanks again.
[I did absolutely nothing, and it was everything that I thought it could be]

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.