|
@@ -154,7 +154,7 @@ 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"]
|
|
image::jme3/beginner/mountains512.png[mountains512.png,128,128,align="right"]
|
|
|
|
|
|
|
|
|
|
|
|
@@ -206,13 +206,9 @@ 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:
|
|
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::jme3/beginner/road.jpg[road.jpg,64,64,align="right"]
|
|
|
|
|
-+
|
|
|
|
|
-image::jme3/beginner/dirt.jpg[dirt.jpg,64,64,align="right"]
|
|
|
|
|
|
|
+. Choose three textures. For example grass.jpg, dirt.jpg, and road.jpg.
|
|
|
+
|
|
+
|
|
|
-image::jme3/beginner/grass.jpg[grass.jpg,64,64,align="right"]
|
|
|
|
|
|
|
+image:jme3/beginner/grass.jpg[grass.jpg,64,64] image:jme3/beginner/dirt.jpg[dirt.jpg,64,64] image:jme3/beginner/road.jpg[road.jpg,64,64]
|
|
|
|
|
|
|
|
. You “paint three texture layers by using three colors: Red, blue and, green. You arbitrarily decide that…
|
|
. 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.
|
|
.. Red is grass – red is layer `Tex1`, so put the grass texture into Tex1.
|