Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations MikeeOK on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Perspective correction in opengl

Status
Not open for further replies.

5quidward

Technical User
Mar 7, 2003
2
GB
I'm doing a project on texture mapping in opengl as part of my degree course but i cant seem to get it working. What i'm trying to do is enable the user to switch between perspective correction being on and off. I'm using the glhint command to set it up. Can anyone help me on this one? Cheers, Ste.
 
glHint is used to set the quality of an active feature, not turning it on or off.

Try changing wherever you set up the GL window. Look at the two following functions:

When you turn off perspective projection, I imagine you want to turn on orthographic projection. Catch the input and use it to change the view function (in GLinit()?).

I'm not sure I'm making sense. ----------------------------------------------------------------------------------
...but I'm just a C man trying to see the light
 
Thanks for your suggestions, i think i'm on my way to achieving my goal now,

thanks again,

Steve.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top