Game Development Reference
In-Depth Information
How to do it…
Let's start by creating a scene we can use to test our recipes later.
1. Right-click on the Scenes folder inside Project Assets , select New , and then select
Empty jME3 Scene . The scene will open automatically in the SceneComposer
window.
2. A scene is just an empty node, and needs to be populated to be useful. To have
something to look at, let's add the Jaime model to the scene. Find it in the folder
structure, right-click on Jaime.j3o , and select Link in SceneComposer . The
SceneComposer window looks as follows:
3. Now, most likely, all we can see is a blue, wire-frame box. This is because there
are no lights in the scene. At the top-left part of the screen, there is a button with a
light bulb on it.
4. By clicking on it, we should get PointLight following the camera; it is not part of
the scene, however.
Tip
Linking versus adding
Adding means you add an instance of the object itself to the scene. This can then
be modified separately to the original object.
Linking means you add a reference to the object in the scene. Apart from making
the scene smaller, any modifications to the original object will also affect the ob-
jects in the scene.
5. Basic camera orientation in the scene includes dragging with the left mouse button
to rotate the camera. Dragging with the right mouse button pressed moves the cam-
era sideways, up, and down. The mouse wheel zooms in and out.
6. The second icon in the top bar of the SceneComposer window is the Move icon.
By clicking on it, you will see three different colored planes by Jaime. These will
Search WWH ::




Custom Search