Alpha Texture Problem

Blitz3D Forums/Blitz3D Programming/Alpha Texture Problem

RustyKristi(Posted 2016) [#1]
I have a human 3d model which only has 1 texture applied to all but the hair has alpha. What flags do I need to set to properly masked the hair. If I set Color+Alpha on texture the rest becomes transparent.


Bobysait(Posted 2016) [#2]
Two way :
- Separate the hair from the body (not by splitting in two meshes, but just with two surfaces)
-> then you can use the Alpha flag on the hair surface

- Use Mask flag for the texture (-> 4)
You 'll probably have to tweak some pixels in your texture to make it work
( like : use a png with an alpha channel and set all transparent pixels to "0", and/or use any kind of format without compression ! and set the transparent pixels to black "0,0,0" )


RustyKristi(Posted 2016) [#3]
thanks, I just did the reassign uv coords in fragmotion, it's a bit complicated but it works.