|
@@ -21,7 +21,7 @@ image::jme3/beginner/beginner-assets-models.png[beginner-assets-models.png,320,2
|
|
|
|
|
|
[TIP]
|
|
|
====
|
|
|
-<<sdk/sample_code#,Trouble finding the files to run this sample?>> To get the assets (3D models) used in this example, add the included `jME3-testdata.jar` to your classpath. In project created with the jMonkeyEngine SDK (recommended), simply right-click your project, choose “Properties, go to “Libraries, press “Add Library and add the preconfigured “jme3-test-data library.
|
|
|
+<<sdk/sample_code#,Trouble finding the files to run this sample?>> To get the assets (3D models) used in this example, add the included `jME3-testdata.jar` to your classpath. In project created with the jMonkeyEngine SDK (recommended), simply right-click your project, choose "`Properties`", go to "`Libraries`", press "`Add Library`" and add the preconfigured "`jme3-test-data`" library.
|
|
|
====
|
|
|
|
|
|
|
|
@@ -95,7 +95,7 @@ public class HelloAssets extends SimpleApplication {
|
|
|
}
|
|
|
----
|
|
|
|
|
|
-Build and run the code sample. You should see a green Ninja with a colorful teapot standing behind a wall. The text on the screen should say “Hello World.
|
|
|
+Build and run the code sample. You should see a green Ninja with a colorful teapot standing behind a wall. The text on the screen should say "`Hello World`".
|
|
|
|
|
|
|
|
|
== The Asset Manager
|
|
@@ -150,12 +150,12 @@ rootNode.attachChild(wall);
|
|
|
|
|
|
----
|
|
|
|
|
|
-In this case, you <<jme3/beginner/hello_material#,create your own Material>> and apply it to a Geometry. You base Materials on default material descriptions (such as “Unshaded.j3md), as shown in this example.
|
|
|
+In this case, you <<jme3/beginner/hello_material#,create your own Material>> and apply it to a Geometry. You base Materials on default material descriptions (such as "`Unshaded.j3md`"), as shown in this example.
|
|
|
|
|
|
|
|
|
=== Loading Text and Fonts
|
|
|
|
|
|
-This example displays the text “Hello World in the default font at the bottom edge of the window. You attach text to the `guiNode` – this is a special node for flat (orthogonal) display elements. You display text to show the game score, player health, etc.
|
|
|
+This example displays the text "`Hello World`" in the default font at the bottom edge of the window. You attach text to the `guiNode` – this is a special node for flat (orthogonal) display elements. You display text to show the game score, player health, etc.
|
|
|
The following code sample goes into the `simpleInitApp()` method.
|
|
|
|
|
|
[source,java]
|
|
@@ -267,7 +267,7 @@ But for QA test builds and for the final release build, you use *.j3o files* exc
|
|
|
|
|
|
Open your JME3 Project in the jMonkeyEngine SDK.
|
|
|
|
|
|
-. Right-click a .Blend, .OBJ, or .mesh.xml file in the Projects window, and choose “convert to JME3 binary.
|
|
|
+. Right-click a .Blend, .OBJ, or .mesh.xml file in the Projects window, and choose "`Convert to j3o Binary`".
|
|
|
. The .j3o file appears next to the .mesh.xml file and has the same name.
|
|
|
. Update all your `loadModel()` lines accordingly. For example:
|
|
|
+
|
|
@@ -279,7 +279,7 @@ Spatial ninja = assetManager.loadModel("Models/Ninja/Ninja.j3o");
|
|
|
|
|
|
[TIP]
|
|
|
====
|
|
|
-If your executable throws a “Cannot locate resource runtime exception, check all load paths and make sure you have converted all models to .j3o files!
|
|
|
+If your executable throws a "`Cannot locate resource`" runtime exception, check all load paths and make sure you have converted all models to .j3o files!
|
|
|
====
|
|
|
|
|
|
|