Jump to content
  • Advertisement
Sign in to follow this  
FreJa

texture problem

This topic is 4158 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, Im trying to load a BMP texture with alpha blending, however, this i what i get: pic (sry for the crappy host, but my ftp isnt working atm :( ) the image is supposed to be straight, plus, part of the E on Game, appears on the beginning of the quad. This is what I'm doing to setup the texture:
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MAG_FILTER,GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D,GL_TEXTURE_MIN_FILTER,GL_LINEAR);
glTexImage2D(GL_TEXTURE_2D, 0, 4, texture->width, texture->height, 0, GL_RGBA, GL_UNSIGNED_BYTE, texture->data);
Any ideas? Thanks

Share this post


Link to post
Share on other sites
Advertisement
Looks like you're specifying the bottom left and bottom right texture coordinates the wrong way around when you're creating the quad.

Share this post


Link to post
Share on other sites
Quote:
Original post by PlayfulPuppy
Looks like you're specifying the bottom left and bottom right texture coordinates the wrong way around when you're creating the quad.


It only happens with some textures, and they're all created the same way... :(

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!