Terrain Splatting without Heightmaps


I’m learning jMonkey from the official tutorials for a game I’m creating. I read the section on HelloTerrain and want to use terrain splatting for my game.

Unfortunately, the tutorial only mentioned terrain splatting using heightmaps, and heightmaps won’t really work with my game. Without going into detail, my game will be using randomly generated triangle meshes for terrain. So the question is:

  • how can Terrain Splatting be used using triangle meshes? If necessary I can write code that creates the alphamap from my mesh (the texture layers and the color codes and all that stuff).

    And the other question is: are there any good books out there for jMonkey?

you can use the terrainLighting.j3md material on a home brewed mesh, and you’ll be able to use texture splating