Alpha vs Mask issue

Blitz3D Forums/Blitz3D Programming/Alpha vs Mask issue

Naughty Alien(Posted 2009) [#1]
..im wondering why this code working just fine for mask(flag 4), while alpha do nothing (flag 2)..note that when alpha is textured over single mesh, its working while in structure like this, not at all..mask working both ways..

SAlpha=LoadTexture("Example_Alpha.dds",2)
;SAlpha=LoadTexture("Example_Mask.dds",4)
For Entity.Level_Structure=Each Level_Structure
If Entity\Name$=Target$
EntityTexture Entity\ID,SAlpha,0,0
End If
Next


Matty(Posted 2009) [#2]
I don't know if it is related but I've found that on some machines flag 2 alpha doesn't work if it is not combined with flag 1 (color) when a texture is created. Have you tried it with flag "1 + 2"?


Naughty Alien(Posted 2009) [#3]
i havent tried that yet..I have noticed that i have same problem in Xors3D too..ill check it out..


Naughty Alien(Posted 2009) [#4]
..1+2 doesnt work...ihh