Masked textures?
BlitzMax Forums/MiniB3D Module/Masked textures?| 
 | ||
| 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. | 
| 
 | ||
| ive tried adding the flags to loadtexture to no avail, i will try multiple cameras to get round the problem next. | 
| 
 | ||
| Masked texture behaviour differs to Blitz3D - instead of colour 0,0,0 being used, alpha > 0.5 is used instead. | 
| 
 | ||
| ah i see, any way of making another command to mask the colour. | 
| 
 | ||
| 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 | 
| 
 | ||
| 4 is the masked texture flag. | 
| 
 | ||
| I can see the alpha system does allow quite a but of flexability the only drawback is images loose colour depth. |