Strange colors when loading bmp

Started by
2 comments, last by schmidt 19 years, 5 months ago
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?
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?
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
Chris ByersMicrosoft DirectX MVP - 2005
Yeah! That was the trick! Thank you very much!

This topic is closed to new replies.

Advertisement