Time for action – climbing a hill

Let's create a scene and add a terrain spatial to it. Open the jMonkeyEngine SDK and create a .j3o file.

  1. Open the Project Assets node in the SDK. Right-click on the Scenes node, and choose New | Other....
  2. In the New File wizard, select the Scene category to create an Empty jME3 Scene.
  3. Name the scene myTerrain.j3o. The wizard saves the scene to the Scenes directory, and opens the empty scene in the SceneComposer.
  4. Open the SceneExplorer from the Windows menu.
  5. In the SceneExplorer, right-click on the New Scene node, and choose Add Spatial... | Terrain. The Terrain wizard opens.

You use the Terrain wizard to generate a terrain mesh.

  1. Specify the terrain's Total Size (for example, 256) and Patch Size (for example, 64). Both ...

Get jMonkeyEngine 3.0 Beginner's Guide now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.