Jump to content
  • Advertisement

Archived

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

FERNANDO-BRASIL

Texture Mapping Problem

This topic is 5869 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

Hi Guys, I''m trying to Texturize a QUAD with OpenGL, but I got a problem. I loaded a picture that has a WHITE background painted in it. In the center of the picture, there are some ORANGE and BLUE lines. Ok, the problem is: When I put the image on screen, all the White changes to BLACK... Why? I tried a lot of things, but nothing worked! THank you guys! Fernando

Share this post


Link to post
Share on other sites
Advertisement
I know you said you tried many things, but was setting glColor3f to 0 0 0 one of them? I had the same problem with something , glcolor was tinting my texture.

Share this post


Link to post
Share on other sites
Thank you Reckles, but unfortunately, the problem isn''t the glColor3f. If I do glColor3f(0.0f, 0.0f, 0.0f), the entire picture gets BLACK when I show it on the screen, if i do glColor3f(1.0f, 1.0f, 1.0f) for a white color, the thing that I explained in my first message occurs.

Share this post


Link to post
Share on other sites
Thank you Reckles, but unfortunately, the problem isn''t the glColor3f. If I do glColor3f(0.0f, 0.0f, 0.0f), the entire picture gets BLACK when I show it on the screen, if i do glColor3f(1.0f, 1.0f, 1.0f) for a white color, the thing that I explained in my first message occurs.

Share this post


Link to post
Share on other sites
If your new image is textured, but your previous background is not, make sure you de-select any textures (by selecting ''0'', or disabling texturing) before drawing the background.

Share this post


Link to post
Share on other sites

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