Strange colors when loading bmp
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?
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?
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
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement