Masked textures?

BlitzMax Forums/MiniB3D Module/Masked textures?

*(Posted 2007) [#1]
Anyone know how to hide the color 0, 0, 0 on a texture so when its put on a mesh the black is not shown.


*(Posted 2007) [#2]
ive tried adding the flags to loadtexture to no avail, i will try multiple cameras to get round the problem next.


simonh(Posted 2007) [#3]
Masked texture behaviour differs to Blitz3D - instead of colour 0,0,0 being used, alpha > 0.5 is used instead.


*(Posted 2007) [#4]
ah i see, any way of making another command to mask the colour.


Sanctus(Posted 2007) [#5]
Simonh could you make a small example?
I tried loading a PNM with alpha chanell using this command:
Local tex:Ttexture = LoadTexture(path,1+2)

And it doesn't work... I still se the pixels that are black and have the alpha value > 0.5 as black


simonh(Posted 2007) [#6]
4 is the masked texture flag.


*(Posted 2007) [#7]
I can see the alpha system does allow quite a but of flexability the only drawback is images loose colour depth.