Chapter 2. Creating Your First 3D Scene

Now that you have installed the engine and understood the physical file structure of a project, we will take a look inside to understand the flow of a jMonkeyEngine game.

In this chapter, you will learn:

  • How to initialize a scene
  • How to refer to objects in the 3D scene
  • How to position, rotate, and resize objects
  • How to configure the way the scene is displayed
  • How to navigate the scene using the keyboard and mouse

It's time to look at some code.

A basic template to initialize scenes

From the previous chapter, you'll remember that we executed the BasicGame template to test whether the installation was successful. This project template demonstrates the structure of a typical jMonkeyEngine main class that initializes ...

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

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.