I get this:
java.lang.IllegalArgumentException: Material parameter is not defined: UseAlpha
Also tried with Unshaded.j3md and:
Alphamap is not defined in Unshaded…
Am I missing something?
What are you trying to do exactly ?
What is that UseAlpha boolean ? It doesn’t seem to be included in Terrain.j3md nor in TerrainLighting.j3md.
As for the alpha maps : AlphaMap + AlphaMap_1 + AlphaMap_2 are defined in TerrainLighting ; not in Terrain.
For terrain you should look at Tex1 + Tex2 + Tex3.
Please see by yourself Terrain.j3md and TerrainLighting.j3md that are in Common.Matdefs.Terrain from jME3-terrain.jar.
This is not a Terrain, it just a Material that I want to apply to a quad. I want to make a transparent textured quad.
Have a look at the following commit from
UseAlpha was removed.
May 22, 2015, 1:35pm
use the alpha channel of your texture to store alpha, it’s more efficient in many ways.
Don’t forget to put the quad in the transparent bucket, and/or user the alphaDiscardThreshold if it’s partially transparent (as in there are completely transparent areas in the texture).