• Advertisement

Archived

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

Texture Mapping Problem

This topic is 5690 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
Hi guys, sorry! I figured out what was happening... nothing with OpenGL. It was a problem with my LoadBitmap Function.

But now, it''s OK!

Thanks for your help!

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