|
@@ -290,7 +290,7 @@ If your executable throws a “Cannot locate resource runtime exception, check a
|
|
a| Task?
|
|
a| Task?
|
|
a| Solution!
|
|
a| Solution!
|
|
|
|
|
|
-a| Load model with materials
|
|
|
|
|
|
+a| Load model W/ materials
|
|
a| Use the asset manager's `loadModel()` method and attach the Spatial to the rootNode.
|
|
a| Use the asset manager's `loadModel()` method and attach the Spatial to the rootNode.
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|
|
@@ -305,7 +305,7 @@ Spatial elephant = assetManager.loadModel("Models/Elephant/Elephant.j3o");
|
|
rootNode.attachChild(elephant);
|
|
rootNode.attachChild(elephant);
|
|
----
|
|
----
|
|
|
|
|
|
-a| Load model without materials
|
|
|
|
|
|
+a| Load model W/O materials
|
|
a| If you have a model without materials, you have to give it a material to make it visible.
|
|
a| If you have a model without materials, you have to give it a material to make it visible.
|
|
|
|
|
|
[source,java]
|
|
[source,java]
|