public class ModelReaderSettings extends ReaderSettings
| Modifier and Type | Field and Description |
|---|---|
boolean |
addPathInTextureFinder
Register model location as a search path for texture.
|
boolean |
animated
Flag for animation.
|
Stream[] |
animationAdditional
Animation file name: extra files.
|
AnimationSplitInfo[] |
animationSplit
Split skeleton animation utility
Usefull for MS3D, Collada/DAE and other model format which stores in one combined/merged animation. |
int |
animationSplitIndex
Index of the motion to split
Ignore for JMF/JMA models
|
Stream |
animationStream
Animation file name.
|
int |
boundingVolumeGenerated
Bounding volume pre-generated.
|
boolean |
character
Load as character.
|
static java.lang.String |
DEFAULT_ANIM_NAME |
IExtraAsset |
extraAsset |
float |
heightmapGridDepth
Terrain grid height unit, along z.
|
float |
heightmapGridWidth
Terrain grid width unit, along x.
|
float |
heightmapHeight
Height of the terrain, along y.
|
int |
heightmapOctreeMaxFaces
Heightmap integrated space partitioning.
|
boolean |
keepTextureRelPath
Keep texture relative path
|
LightingMode |
lighting
Lighting mode.
|
float |
lightingSmoothAngle
Smooth angle in radians used by
LightingMode.Default, LightingMode.SmoothAngle and LightingMode.SmoothGroupAndAngleIgnored for JMF/JMA models |
ModelReaderSettings |
lod1
Level Of Details (LOD) 1
|
ModelReaderSettings |
lod2
Level Of Details (LOD) 2
|
ModelReaderSettings |
lod3
Level Of Details (LOD) 3
|
int |
octreeMaxFaces
Maximum number of face per octree.
|
int |
octreeMaxSubdivisions
Maximum number of subdivision.
|
float |
octreeMinVolume
Maximum volume of an octree.
|
boolean |
octreeOptimizeMesh
Optimize mesh for octree.
|
Optimizer |
optimizer
Optimization options
Ignored for JMF/JMA models |
Options |
options
Reader and other options
|
java.lang.String |
prependTexturePath
Path to prepend to the texture name.
|
java.lang.String |
qualityName
Model quality identifier.
|
java.lang.String |
skinName
Model skin name.
|
boolean |
spacePartitioning
Space partitioning of the model.
|
Stream |
textureStream
Texture file folder.
|
Stream |
weaponStream
Weapon model file folder.
|
formatExt, id, key, stream| Constructor and Description |
|---|
ModelReaderSettings() |
| Modifier and Type | Method and Description |
|---|---|
ModelReaderSettings |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getDefaultSkinAnimName()
Internal use
IModelReader |
static java.lang.String |
materialName(java.lang.String s)
Internal use
IModelReader |
static java.lang.String |
materialName(java.lang.String s,
boolean removeFolderSeparator,
boolean removeFileSeparator)
Internal use
IModelReader |
void |
postProcess(Model model)
Internal use
|
static void |
precomputeBv(Model model,
int bvOptions) |
void |
registerPath(AssetManager assets,
java.lang.String path)
Internal use
IModelReader |
static void |
split(Model model,
AnimationSplitInfo[] splitInfos,
int motionIndex)
Split model skeleton animation.
|
java.lang.String |
textureName(java.lang.String textureName)
Internal use
IModelReader |
addStreamListener, fireStreamAccess_, getFormatExtension, getId, setStreamListenerspublic static final java.lang.String DEFAULT_ANIM_NAME
public Stream weaponStream
public boolean animated
public Stream animationStream
public Stream[] animationAdditional
public AnimationSplitInfo[] animationSplit
animationSplitIndexpublic int animationSplitIndex
animationSplit,
Skeleton.getMotion(int)public Stream textureStream
public boolean character
public java.lang.String qualityName
public java.lang.String skinName
public float heightmapHeight
public float heightmapGridWidth
public float heightmapGridDepth
public int heightmapOctreeMaxFaces
public LightingMode lighting
LightingMode.None is specified, normals will not be read/computed and realtime lighting will not be available for the model.LightingMode,
LightingMode.Defaultpublic float lightingSmoothAngle
LightingMode.Default, LightingMode.SmoothAngle and LightingMode.SmoothGroupAndAnglepublic int boundingVolumeGenerated
boundingVolumeOptions = BoundingVolume_Box [| BoundingVolume_Sphere] [| BoundingVolume_Cylinder] [| BoundingVolume_Capsule]BoundingVolume_Boxpublic boolean spacePartitioning
public boolean octreeOptimizeMesh
public int octreeMaxSubdivisions
public int octreeMaxFaces
public float octreeMinVolume
public boolean addPathInTextureFinder
public java.lang.String prependTexturePath
public boolean keepTextureRelPath
public Optimizer optimizer
public final Options options
public ModelReaderSettings lod1
public ModelReaderSettings lod2
public ModelReaderSettings lod3
public IExtraAsset extraAsset
public final ModelReaderSettings clone()
clone in class ReaderSettingspublic final boolean equals(java.lang.Object obj)
equals in class ReaderSettingspublic final void registerPath(AssetManager assets, java.lang.String path)
IModelReaderpublic final java.lang.String textureName(java.lang.String textureName)
IModelReaderpublic final java.lang.String getDefaultSkinAnimName()
IModelReaderpublic static final java.lang.String materialName(java.lang.String s)
IModelReaderpublic static final java.lang.String materialName(java.lang.String s,
boolean removeFolderSeparator,
boolean removeFileSeparator)
IModelReaderpublic final void postProcess(Model model)
public static void precomputeBv(Model model, int bvOptions)
public static void split(Model model, AnimationSplitInfo[] splitInfos, int motionIndex)
model - splitInfos - Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com