Sign in to follow this  
MikeJM

Texture Problem

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
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this