Well I think this Screenshot already describes the problem that occurs, the trees are 2D textures drawn on a Quad. The texture is loaded from a .png file and I initialize the material with:
[java]TreeMat = new Material(
and on the Quad-Geometry itself I call:
wow that’s so pretty!
Is there anything else I’ve forgotten to set when using textures containing alpha values?
if I replace my working lines
with your line, it throws an exception:
java.lang.IllegalArgumentException: Material parameter is not defined: AlphaDiscardThreshold
Which occurs as I simply use the Unshaded Material which got no such parameter, but then next why am I running into problems with my solution?
Until now everything works quite good so far:
Hm ok, I will just change the material to lightning anyway now or later as I plan to add a day-night cycle in the future…
Well then thanks for the answers and also great job on that engine, it really makes me not care about all that nasty graphics black magic down there and focus more on stuff which is fun to create