Alpha texture on tree

Blitz3D Forums/Blitz3D Beginners Area/Alpha texture on tree

Santiworld(Posted 2008) [#1]
I won make a 3d Tree for a game, but i can make the alpha texture work...

someone can tell me how to do that?..

thanks...


Naughty Alien(Posted 2008) [#2]
export your tree texture as PNG or TGA with alpha and load in to your game with LoadTexture("MyTex.png",2) and apply to your model and it will work

way i do is to export texture as a DDS with 1 bit alpha (DX3) and then just load that texture with MASK flag(4) and its working like a charm..


Ross C(Posted 2008) [#3]
Be warned though. The alphaed branches may causes rendering glitches with other alphaed meshes. You can get away with masked textures if you use it well :o)

Oops, Alien has just suggestes that :D


Santiworld(Posted 2008) [#4]
thanks. it works!!...

my error was i dont make the alfa channel in photoshop... and my png o tga dont save with the alfa channel...

thanks... one less problem...

:)