Archived

This topic is now archived and is closed to further replies.

khalligan

Texturing with glOrtho

Recommended Posts

I need to texture map a quad in my application. I have the screen set up in 2D using ::glOrtho(). In this setup can texture mapping not be displayed, as it seems to work fine with ::gluPerspective() Id really appreciate any help, Keith

Share this post


Link to post
Share on other sites
Texturing works fine regardless of the projection mode you are using. Ortho is just a different projection matrix and frustum configuration.

First check to see if you can see the object without textures. If it''s not there, then the problem is something else.

Share this post


Link to post
Share on other sites
if the objects are showing up as black quads first try disabling lighting and (if that works) create and position a light such that your quads' normals are facing it (if you want lighting).

[edited by - denJeebus on March 31, 2004 6:35:29 AM]

Share this post


Link to post
Share on other sites