Problems with transparency?

transparency
textures
materials

#1

Hi all! I’m new so please be patient! Can someone please tell me why my 3D tree is doing this when I have a transparent PNG? https://image.ibb.co/nqBhcv/tree_problem.png

Here’s the code : https://pastebin.com/E6tb1ymw

Thank you for your kindness! <3

Icerion


#2

Hello icerion,

Usually for texture transparency you need the following material properties:

transparent=true;
alphaTest=.5; //(change to desired threshold)

You could set the properties at runtime or directly into the model file.