PDA

View Full Version : textures in orthoview



ahmed.abouraya
12-09-2009, 03:14 PM
does anyone know how to map a texture on a quad in orthoview?

Benoit
12-10-2009, 01:23 AM
What do you mean by orthoview ?

ahmed.abouraya
12-10-2009, 02:55 AM
glOrtho(0.0f,width,height,0.0f,-1.0f,1.0f);this is ortho view
gluPerspective(45.0f,(GLfloat)width/(GLfloat)height,0.1f,100.0f);
and this is perspective.I know how t use textures in perspective view ,but in orthoview, when i try to map a texture to a quad the quad only appears with no texture.i don't know what's the problem

Benoit
12-10-2009, 03:05 AM
I was wondering if you were talking about the program OrthoView... :)

Your problem seems very weird... Maybe you could provide us your code about setting the Orthogonal view and drawing of the quad using the texture.

ahmed.abouraya
12-11-2009, 11:13 AM
i used gluperspective instead i was gonna use it anyways ,i was trying to post a panel which is at Z=0,in perspectiveview so i tried to use ortho as ortho deals with x and y only ,but i found out that i can't use both at the same time. Thanks for yr interest.