Texture masking

Hello everybody. I would like to know if there is a way to achive textuere masking. I have imported an image as a plane in blender. In glsl mode i would like a particular color to appear transparent. the color is 255, 0, 255 (r,g,b). thank you.

Don’t know the way with Blender Internal; with Cycle it’s quite simple but as far as I know, it works only with black and white texture.

You simply put your texture as factor for the Mix Shader (as shown below).

RGB to BW node is optional but I sometimes got a better result with it (especially with more complex textures)

Image and blend example in attachment. Hope this help

MaskTextureExemple.blend (648 KB)