Sign in to follow this  
schmidt

Strange colors when loading bmp

Recommended Posts

schmidt    122
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
schmidt    122
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
Supernat02    604
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this