|
|
@@ -155,7 +155,7 @@ In a real game, you will want to use more complex and smoother terrains than the
|
|
|
=== Looking at the Heightmap Code
|
|
|
|
|
|
|
|
|
-image::http://jmonkeyengine.googlecode.com/svn/trunk/engine/test-data/Textures/Terrain/splat/mountains512.png[mountains512.png,with="128",height="128",align="right"]
|
|
|
+image::jme3/beginner/mountains512.png[mountains512.png,with="128",height="128",align="right"]
|
|
|
|
|
|
|
|
|
The first step of terrain creation is the heightmap. You can create one yourself in any standard graphic application. Make sure it has the following properties:
|
|
|
@@ -206,11 +206,12 @@ Splat textures are based on the `Terrain.j3md` material defintion. If you open t
|
|
|
Before you can start painting, you have to make a few decisions:
|
|
|
|
|
|
. Choose three textures. For example grass.jpg, dirt.jpg, and road.jpg.
|
|
|
-image::http://jmonkeyengine.googlecode.com/svn/trunk/engine/test-data/Textures/Terrain/splat/road.jpg[road.jpg,with="64",height="64",align="right"]
|
|
|
+
|
|
|
+image::jme3/beginner/road.jpg[road.jpg,with="64",height="64",align="right"]
|
|
|
|
|
|
-image::http://jmonkeyengine.googlecode.com/svn/trunk/engine/test-data/Textures/Terrain/splat/dirt.jpg[dirt.jpg,with="64",height="64",align="right"]
|
|
|
+image::jme3/beginner/dirt.jpg[dirt.jpg,with="64",height="64",align="right"]
|
|
|
|
|
|
-image::http://jmonkeyengine.googlecode.com/svn/trunk/engine/test-data/Textures/Terrain/splat/grass.jpg[grass.jpg,with="64",height="64",align="right"]
|
|
|
+image::jme3/beginner/grass.jpg[grass.jpg,with="64",height="64",align="right"]
|
|
|
|
|
|
. You “paint three texture layers by using three colors: Red, blue and, green. You arbitrarily decide that…
|
|
|
.. Red is grass – red is layer `Tex1`, so put the grass texture into Tex1.
|
|
|
@@ -229,7 +230,7 @@ Now you start painting the texture:
|
|
|
|
|
|
. The end result should look similar to this:
|
|
|
|
|
|
-image:http://jmonkeyengine.googlecode.com/svn/trunk/engine/test-data/Textures/Terrain/splat/mountains512.png[mountains512.png,with="64",height="64"] ⇒ image:http://jmonkeyengine.googlecode.com/svn/trunk/engine/test-data/Textures/Terrain/splat/alphamap.png[alphamap.png,with="64",height="64"]
|
|
|
+image:jme3/beginner/mountains512.png[mountains512.png,with="64",height="64"] ⇒ image:jme3/beginner/alphamap.png[alphamap.png,with="64",height="64"]
|
|
|
|
|
|
|
|
|
=== Looking at the Texturing Code
|