|
|
@@ -5,6 +5,7 @@
|
|
|
:keywords: documentation, sdk, tool, terrain, asset, texture
|
|
|
:relfileprefix: ../
|
|
|
:imagesdir: ..
|
|
|
+:experimental:
|
|
|
ifdef::env-github,env-browser[:outfilesuffix: .adoc]
|
|
|
|
|
|
|
|
|
@@ -21,14 +22,13 @@ Terrain controls are the same as the Scene Composer, you rotate the camera with
|
|
|
|
|
|
== Creating Terrain
|
|
|
|
|
|
-To create terrain, first select a node (probably your root node) in your scene. +
|
|
|
+To create terrain, first select the scene directory under your project assets folder, right click and select `menu:new[other>scene>Empty jme3 scene]`. This will generate an empty scene in that directory. Right click this new file and then select `Edit Terrain`. This will open the new file in the `TerrainEditor` and display your scenes file structure in the `SceneExplorer` located at the bottom left panel of the SDK. Select a node (probably your root node) in your scene +
|
|
|
image:sdk/sdk-terrain-tut-selectnode.png[sdk-terrain-tut-selectnode.png,width="",height=""] +
|
|
|
Then click the add terrain button. +
|
|
|
image:sdk/sdk-terrain-tut-addterrain.png[sdk-terrain-tut-addterrain.png,width="",height=""] +
|
|
|
-This will pop up the Create Terrain wizard that will walk you through the steps for creating terrain. Make sure you decide now how large you want your terrain to be and how detailed you want the textures to be as you cannot change it later on!
|
|
|
-
|
|
|
-In order to see the terrain, you will need to add light to your scene. To do this, right-click the root node in the SceneExplorer window and select “Add Light→Directional Light
|
|
|
+This will pop up the `Create Terrain` wizard that will walk you through the steps for creating terrain. Make sure you decide now how large you want your terrain to be and how detailed you want the textures to be as you cannot change it later on!
|
|
|
|
|
|
+In order to see the terrain, you will need to add light to your scene. To do this, right-click the root node in the `SceneExplorer` window and select `menu:Add[Light>Directional Light]`. Alternatively, you can create your terrain and press the btn:[Toggle cam light] button located in the menu at the top of the open terrain window. You will need to add a light to your scene by code in the simpleinitApp method later so you can see the terrain.
|
|
|
|
|
|
=== Step 1: Terrain Size
|
|
|
|