• Advertisement
Sign in to follow this  

Texture Problem

This topic is 4165 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hey I'm having a simple and stupid texturing problem... I'm sure it's something trivially wrong that I'm doing but for whatever reason I don't see it right now. The quad shows up fine but no matter what texture I give it I get white. GLILog Please take a look at the glIntercept log and see if you find what I missed.

Share this post


Link to post
Share on other sites
Advertisement
Quote:
Original post by MikeJM
Hey I'm having a simple and stupid texturing problem...
I'm sure it's something trivially wrong that I'm doing but for whatever reason I don't see it right now.

The quad shows up fine but no matter what texture I give it I get white.

GLILog

Please take a look at the glIntercept log and see if you find what I missed.
It looks like you're only creating the 0th mipmap level and not setting a non-mipmapped minification filter (the default is GL_NEAREST_MIPMAP_LINEAR). There may be something else wrong but that's what stands out to me.

Share this post


Link to post
Share on other sites
It was something stupid...

GL_UNSIGNED_BYTE is not supported by glTexCoordPointer

Odly this gives no glError (at least on my machine) just incorrect results.

I thought I had used UBYTE texture coordinates before (perhaps with vertex programs?) but maybe I'm just going crazy.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement