|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jme3.scene.plugins.blender.BlenderLoader
com.jme3.scene.plugins.blender.BlenderModelLoader
public class BlenderModelLoader
This is the main loading class. Have in notice that asset manager needs to have loaders for resources like textures.
Field Summary | |
---|---|
protected BlenderContext |
blenderContext
|
Fields inherited from class com.jme3.scene.plugins.blender.BlenderLoader |
---|
blocks |
Constructor Summary | |
---|---|
BlenderModelLoader()
|
Method Summary | |
---|---|
Spatial |
load(AssetInfo assetInfo)
Loads asset from the given input stream, parsing it into an application-usable object. |
Camera |
toCamera(Structure structure)
This method converts the given structure to a camera. |
Light |
toLight(Structure structure)
This method converts the given structure to a light. |
java.util.List<Geometry> |
toMesh(Structure structure)
This method converts the given structure to a list of geometries. |
java.lang.Object |
toObject(Structure structure)
This method converts the given structure to a node. |
Node |
toScene(Structure structure)
This method converts the given structure to a scene node. |
BlenderKey.WorldData |
toWorldData(Structure structure)
This method returns the data read from the WORLD file block. |
Methods inherited from class com.jme3.scene.plugins.blender.BlenderLoader |
---|
isRootObject, setup |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected BlenderContext blenderContext
Constructor Detail |
---|
public BlenderModelLoader()
Method Detail |
---|
public Spatial load(AssetInfo assetInfo) throws java.io.IOException
AssetLoader
load
in interface AssetLoader
load
in class BlenderLoader
java.io.IOException
- If an I/O error occurs while loadingpublic Node toScene(Structure structure)
structure
- structure of a scene
public Camera toCamera(Structure structure) throws BlenderFileException
structure
- structure of a camera
BlenderFileException
public Light toLight(Structure structure) throws BlenderFileException
structure
- structure of a light
BlenderFileException
public java.lang.Object toObject(Structure structure) throws BlenderFileException
structure
- structure of an object
BlenderFileException
public java.util.List<Geometry> toMesh(Structure structure) throws BlenderFileException
structure
- structure of a mesh
BlenderFileException
public BlenderKey.WorldData toWorldData(Structure structure)
structure
- the structure with WORLD block data
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |