I switch from perspective to ortho, since I am making 2d game. Problem, now all my textures are VERY small, and I can't understand why.
my setup code is:
and my textures are size 128x64, and 32x64, and when display on screen now, they look like few pixels. I can do scale(50,50,50); then I see then again, but I do not understand why I need to do this?Code :glViewport(0,0,width,height); glMatrixMode(GL_PROJECTION); glLoadIdentity(); glOrtho(0, width,height,0, -1, 1); glMatrixMode(GL_MODELVIEW); glLoadIdentity(); glViewport(0,0,width,height);
when I use perspective then the textures are correct!
I am confused why I need to scale, or do
glvertex2f(50.0,50.0) from glvertex2f(1.0,1.0)!!
Oh yes, also I notice I do glscale(-50,50,50) since now textures are flipped?
I look at many books, and they no say why!
Help!
Many thanks friends!
--Clancy



