|
|
@@ -120,8 +120,8 @@ By default a BlenderModelLoader is registered with your assetManager to load ble
|
|
|
|
|
|
You have two loaders available.
|
|
|
|
|
|
-* BlenderLoader that loads the whole scene. It returns an instance of LoadingResults that contains all the data loaded from the scene.
|
|
|
-
|
|
|
+* BlenderLoader that loads the whole scene. It returns an instance of LoadingResults that contains all the data loaded from the scene.
|
|
|
++
|
|
|
[source,java]
|
|
|
----
|
|
|
|
|
|
@@ -150,24 +150,17 @@ public static class LoadingResults extends Spatial {
|
|
|
* BlenderModelLoader loads only the model node and should be used if you have a single model in a file.
|
|
|
|
|
|
To register the model do the following:
|
|
|
-
|
|
|
[source,java]
|
|
|
----
|
|
|
-
|
|
|
assetManager.registerLoader(BlenderLoader.class, "blend");
|
|
|
-
|
|
|
----
|
|
|
-
|
|
|
or
|
|
|
-
|
|
|
[source,java]
|
|
|
----
|
|
|
-
|
|
|
assetManager.registerLoader(BlenderModelLoader.class, "blend");
|
|
|
-
|
|
|
----
|
|
|
|
|
|
-* The last thing to do is to create a proper key.
|
|
|
+The last thing to do is to create a proper key.
|
|
|
|
|
|
You can use com.jme3.asset.BlenderKey for that.
|
|
|
The simplest use is to create the key with the asset's name.
|