View Full Version : remove black background from texture

05-31-2009, 09:38 AM
I was wondering if someone would be able to tell me how i can remove the black background from a texture as all i can seem to do is make the entire texture become transparent.

Here is what i currently have: Screenshot (http://img194.imageshack.us/img194/9759/terrainz.png)

Basically, i wish to be able to see the blue section on the left as a solid image and no black around that portion of the image.

Help would be appreciated.

05-31-2009, 12:35 PM
you cant just make a single color transparent just like that using blending, what you need to do is to create a alpha channel in for the image, the fastest way is probably to generate it while your loading the image and then set alpha to 0 if the color is black.

05-31-2009, 02:41 PM
ive managed to do it! although the picture seems to appear darker once loaded. nevermind.
Thanks! :D

05-31-2009, 02:50 PM
nevermind! i fixed the brightness issue too. it was because of the light not being disabled while the texture was being drawn.