I'm currently trying to reimplement the game glest using jme.
I can load models and the terrain now, but I still have problems with the terrain textures. I'm a noob for all this so please be gentle .
Glest uses several tiling texturesets to texture its terrain. To do this with jme what do I have to do?
Whats the general way of texturing a terrain? Is this a huge precalculated texture which is set as texture for the terrain or is it done a different way?
I already read something about "splatting". Is this the right keyword for me to read on?
Please give me some hints ( even some keywords help me very much ! )
Probably splatting is the right keyword for you. Its a way to have several different types of tiled textures for the terrain and then tell the OpenGL renderer what texture to display/mix in where by alpha maps. Theres examples for this in the JME2 source.
Yeah,…good job! I would be interested how you did create the alphamaps on the fly (from the glest-maps). It would be great if you could provide a code-snippet.
This is something differrent but I like it and its used to smooth the terrain. I found this idea in the original glest code. It might be a common way but for me it was new simple and cool.
public float[] smoothHeight(float[] terrainHeight,int w, int h)
{