public class SceneLoader extends java.lang.Object implements AssetLoader
Loads scene meshes, materials, textures, skeleton and skeletal animation.
Multiple animations can be defined with AnimationList
passing into SceneKey
or loaded from different animation layer.
Modifier and Type | Field and Description |
---|---|
AssetManager |
assetManager |
AssetInfo |
currentAssetInfo |
java.util.Map<java.lang.Long,FbxNode> |
modelMap |
java.lang.String |
sceneFilename |
java.lang.String |
sceneFolderName |
Node |
sceneNode |
float |
unitSize |
static boolean |
WARN_IGNORED_ATTRIBUTES |
int |
xAxis |
int |
yAxis |
int |
zAxis |
Constructor and Description |
---|
SceneLoader() |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
load(AssetInfo assetInfo)
Loads asset from the given input stream, parsing it into
an application-usable object.
|
void |
warning(java.lang.String warning) |
public static final boolean WARN_IGNORED_ATTRIBUTES
public java.lang.String sceneFilename
public java.lang.String sceneFolderName
public AssetManager assetManager
public AssetInfo currentAssetInfo
public float unitSize
public int xAxis
public int yAxis
public int zAxis
public java.util.Map<java.lang.Long,FbxNode> modelMap
public Node sceneNode
public void warning(java.lang.String warning)
public java.lang.Object load(AssetInfo assetInfo) throws java.io.IOException
AssetLoader
load
in interface AssetLoader
java.io.IOException
- If an I/O error occurs while loading