• Advertisement
Sign in to follow this  

Strange colors when loading bmp

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

When I attach a .bmp file to a texture with D3DXCreateTextureFromFileEx and then draws the texture on screen, all colors on screen seems to become darker, like they were blended. If I instead load a .jpg file everything works just fine. Is there something special about a .bmp file that I have to deal with?

Share this post


Link to post
Share on other sites
Advertisement
OK, it seems like it´s not the file format that is the problem.
If I draw a line on the screen using LINELIST and make it white, it turns green if I draw a green texture on screen, or blue if I draw a blue texture. I have turned off all Renderstates, so what is the problem?

Share this post


Link to post
Share on other sites
You have to set the texture back to NULL if you don't want it applied on the next thing you draw. Disable alpha blending and lighting and see if that helps.

Chris

Share this post


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

  • Advertisement