|
@@ -154,8 +154,6 @@ In a real game, you will want to use more complex and smoother terrains than the
|
|
|
|
|
|
|
|
=== Looking at the Heightmap Code
|
|
=== Looking at the Heightmap Code
|
|
|
|
|
|
|
|
-[.right.text-left]
|
|
|
|
|
-image::jme3/beginner/mountains512.png[mountains512.png,128,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:
|
|
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:
|
|
@@ -168,6 +166,9 @@ The first step of terrain creation is the heightmap. You can create one yourself
|
|
|
|
|
|
|
|
* Save the map as a .jpg or .png image file
|
|
* Save the map as a .jpg or .png image file
|
|
|
|
|
|
|
|
|
|
+[.right.text-left]
|
|
|
|
|
+image::jme3/beginner/mountains512.png[mountains512.png,128,128,align="right"]
|
|
|
|
|
+
|
|
|
The file `mountains512.png` that you see here is a typical example of an image heightmap.
|
|
The file `mountains512.png` that you see here is a typical example of an image heightmap.
|
|
|
|
|
|
|
|
Here is how you create the heightmap object in your jME code:
|
|
Here is how you create the heightmap object in your jME code:
|