Masking with 2 textures?

Blitz3D Forums/Blitz3D Programming/Masking with 2 textures?

Chroma(Posted 2006) [#1]
What I'm trying to do is mask a texture with a 2nd black and white texture. Has anyone done this?


Matty(Posted 2006) [#2]
Use multiply blending - the white areas will show the original texture, the black areas will be black, unless of course you mean you want the black areas transparent in which case an image with the alpha channel specified should work.


John Pickford(Posted 2006) [#3]
Heh. I'm in the process of removing mult-texturing from Naked War in an attempt to get it to work on crappy laptops.


Chroma(Posted 2006) [#4]
Basically, I want to be able to use masking (flag 4) but not have the little black artifacts on the edges. I don't want to use flag 2 for z-order reasons.

I want to take a color texture and apply a mask texture to it so only the white areas on the color texture are shown and the black areas are transparent.