hello everyone ,
I would like to build simple plains with road throught them ,
According to this part of the helloterrain code :
[java]
/** 2. Create the height map */
AbstractHeightMap heightmap = null;
Texture heightMapImage = assetManager.loadTexture(“Textures/Terrain/splat/mountains512.png”);
heightmap = new ImageBasedHeightMap(
ImageToAwt.convert(heightMapImage.getImage(), false, true, 0));
heightmap.load();
[/java]
I replaced the line ImageToAwt.convert(heightMapImage.getImage(), false, true, 0)); by
ImageToAwt.convert(heightMapImage.getImage(), false, true, 0),0f);
So all the terrain finished to be a simple plan …
Then i found out the alphamap.png with stranges colors ( i guess the texture map ) so we can do some volumes…
To finish i found this thanks to the exercices on the tutorials try { heightmap = new HillHeightMap(1025, 1000, 50, 100, (byte) 3);
} catch (Exception ex) { ex.printStackTrace(); }
So i have 2 questions because i’m on this since 5 hours and i’m getting mad :
- How do we find out what color should be use on the alphamap.png to draw road and plains only (i really don’t want mountain and that dirt texture) , is there on this website something that is saying what are the color for ?
- There is not the answer of the exercice and i think that some of the hillheightmap values can be very helpful to do simple plains … Can someone explain to me how this class is working ?
Thanks a lot in advance ,
Regards ,
Danath