|
|
@@ -293,7 +293,7 @@ If your executable throws a “Cannot locate resource runtime exception, check a
|
|
|
|
|
|
|
|
|
=== Loading Models and Scenes
|
|
|
-[cols="2", options="header"]
|
|
|
+[cols="30,70", options="header"]
|
|
|
|===
|
|
|
|
|
|
a| Task?
|
|
|
@@ -374,9 +374,11 @@ Use the following method to load models from a zip file:
|
|
|
rootNode.attachChild(gameLevel);
|
|
|
----
|
|
|
|
|
|
-The loadModel() method now searches this zip directly for the files to load. +(This means, do not write `loadModel(town.zip/main.scene)` or similar!)
|
|
|
+The loadModel() method now searches this zip directly for the files to load. +
|
|
|
+(This means, do not write `loadModel(town.zip/main.scene)` or similar!)
|
|
|
|
|
|
-. Clean, build and run the project. +You should now see the Ninja+wall+teapot standing in a town.
|
|
|
+. Clean, build and run the project. +
|
|
|
+You should now see the Ninja+wall+teapot standing in a town.
|
|
|
|
|
|
*Tip:* If you register new locators, make sure you do not get any file name conflicts: Don't name all scenes `main.scene` but give each scene a unique name.
|
|
|
|
|
|
@@ -395,7 +397,8 @@ Earlier in this tutorial, you loaded scenes and models from the asset directory.
|
|
|
|
|
|
Note that the path is relative to the `assets/…` directory.
|
|
|
|
|
|
-. Clean, build and run the project. Again, you should see the Ninja+wall+teapot standing in a town.
|
|
|
+. Clean, build and run the project. +
|
|
|
+Again, you should see the Ninja+wall+teapot standing in a town.
|
|
|
|
|
|
Here is a third method you must know, loading a scene/model from a .j3o file:
|
|
|
|
|
|
@@ -414,7 +417,8 @@ Here is a third method you must know, loading a scene/model from a .j3o file:
|
|
|
|
|
|
Again, note that the path is relative to the `assets/…` directory.
|
|
|
|
|
|
-. Clean, Build and run the project. +Again, you should see the Ninja+wall+teapot standing in a town.
|
|
|
+. Clean, Build and run the project. +
|
|
|
+Again, you should see the Ninja+wall+teapot standing in a town.
|
|
|
|
|
|
|
|
|
== Conclusion
|