Modifier and Type | Class and Description |
---|---|
static class |
BlenderKey.AnimationMatchMethod
This enum describes which animations should be attached to which armature.
|
static interface |
BlenderKey.FeaturesToLoad
Deprecated.
this interface is deprecated and is not used anymore; to ensure the loading models consistency
everything must be loaded because in blender one feature might depend on another
|
static class |
BlenderKey.MipmapGenerationMethod
This enum tells the importer if the mipmaps for textures will be generated by jme.
|
static class |
BlenderKey.SkyGeneratedTextureShape
The shape againts which the sky generated texture will be created.
|
Modifier and Type | Field and Description |
---|---|
protected BlenderKey.AnimationMatchMethod |
animationMatchMethod
The method of matching animations to skeletons.
|
protected java.lang.String |
assetRootPath
The root path for all the assets.
|
protected static int |
DEFAULT_FPS |
protected Material |
defaultMaterial
User's default material that is set for objects that have no material definition in blender.
|
protected RenderState.FaceCullMode |
faceCullMode
Face cull mode.
|
protected int |
featuresToLoad
This variable is a bitwise flag of FeatureToLoad interface values; By default everything is being loaded.
|
protected boolean |
fixUpAxis
This variable indicate if Y axis is UP axis.
|
protected int |
fps
FramesPerSecond parameter describe how many frames there are in each second.
|
protected int |
generatedTexturePPU
Generated textures resolution (PPU - Pixels Per Unit).
|
protected int |
layersToLoad
Variable describes which layers will be loaded.
|
protected float |
linesWidth
The width of edges that are loaded from the mesh and do not belong to any face.
|
protected boolean |
loadGeneratedTextures
Allows to toggle generated textures loading.
|
protected boolean |
loadObjectProperties
A variable that toggles the object custom properties loading.
|
protected boolean |
loadUnlinkedAssets
The variable that tells if content of the file (along with data unlinked to any feature on the scene) should be stored as 'user data' in the result spatial.
|
protected int |
maxTextureSize
Maximum texture size.
|
protected BlenderKey.MipmapGenerationMethod |
mipmapGenerationMethod
Tells if the mipmaps will be generated by jme or not.
|
protected boolean |
optimiseTextures
This field tells if the importer should optimise the use of textures or not.
|
protected float |
pointsSize
The size of points that are loaded and do not belong to any edge of the mesh.
|
protected float |
skyGeneratedTextureRadius
The radius of a shape that will be used while creating the generated texture for the sky.
|
protected BlenderKey.SkyGeneratedTextureShape |
skyGeneratedTextureShape
The shape against which the generated texture for the sky will be created.
|
protected int |
skyGeneratedTextureSize
If the sky has only generated textures applied then they will have the following size (both width and height).
|
protected java.lang.String |
usedWorld
The name of world settings that the importer will use.
|
Constructor and Description |
---|
BlenderKey()
Constructor used by serialization mechanisms.
|
BlenderKey(java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
void |
excludeFromLoading(int featuresNotToLoad)
Deprecated.
|
BlenderKey.AnimationMatchMethod |
getAnimationMatchMethod() |
java.lang.String |
getAssetRootPath()
Deprecated.
|
Material |
getDefaultMaterial()
This method returns the default material.
|
RenderState.FaceCullMode |
getFaceCullMode()
This method returns the face cull mode.
|
int |
getFeaturesToLoad()
Deprecated.
|
int |
getFps()
This method returns frames per second amount.
|
int |
getGeneratedTexturePPU() |
int |
getLayersToLoad()
This method returns layers to be loaded.
|
float |
getLinesWidth() |
int |
getMaxTextureSize()
The default value for this parameter is the same as defined by: org.lwjgl.opengl.GL11.GL_MAX_TEXTURE_SIZE.
|
BlenderKey.MipmapGenerationMethod |
getMipmapGenerationMethod() |
float |
getPointsSize() |
float |
getSkyGeneratedTextureRadius() |
BlenderKey.SkyGeneratedTextureShape |
getSkyGeneratedTextureShape() |
int |
getSkyGeneratedTextureSize() |
java.lang.String |
getUsedWorld()
This method returns the name of the WORLD data block that should be used during file loading.
|
int |
hashCode() |
void |
includeInLoading(int featuresToLoad)
Deprecated.
|
boolean |
isFixUpAxis()
This method returns the fix up axis state.
|
boolean |
isLoadGeneratedTextures() |
boolean |
isLoadObjectProperties() |
boolean |
isLoadUnlinkedAssets()
This method determines if unlinked assets should be loaded.
|
boolean |
isOptimiseTextures() |
void |
read(JmeImporter e) |
void |
setAnimationMatchMethod(BlenderKey.AnimationMatchMethod animationMatchMethod)
Sets the way the animations will be matched with skeletons.
|
void |
setAssetRootPath(java.lang.String assetRootPath)
Deprecated.
|
void |
setDefaultMaterial(Material defaultMaterial)
This method sets the default material for objects.
|
void |
setFaceCullMode(RenderState.FaceCullMode faceCullMode)
This method sets the face cull mode.
|
void |
setFixUpAxis(boolean fixUpAxis)
This method sets the fix up axis state.
|
void |
setFps(int fps)
This method sets frames per second amount.
|
void |
setGeneratedTexturePPU(int generatedTexturePPU)
This method sets the generated textures resolution.
|
void |
setLayersToLoad(int layersToLoad)
This method sets layers to be loaded.
|
void |
setLinesWidth(float linesWidth)
Sets the width of edges that are loaded from the mesh and do not belong to any face.
|
void |
setLoadGeneratedTextures(boolean loadGeneratedTextures)
This method sets the flag that toggles the generated textures loading.
|
void |
setLoadObjectProperties(boolean loadObjectProperties)
This method sets the properies loading policy.
|
void |
setLoadUnlinkedAssets(boolean loadUnlinkedAssets)
This method sets if unlinked assets should be loaded.
|
void |
setMaxTextureSize(int maxTextureSize)
This method sets the maximum texture size.
|
void |
setMipmapGenerationMethod(BlenderKey.MipmapGenerationMethod mipmapGenerationMethod) |
void |
setOptimiseTextures(boolean optimiseTextures)
If set to true, then textures of the same mapping type will be merged together
and textures that in the final result will never be visible - will be discarded.
|
void |
setPointsSize(float pointsSize)
Sets the size of points that are loaded and do not belong to any edge of the mesh.
|
void |
setSkyGeneratedTextureRadius(float skyGeneratedTextureRadius) |
void |
setSkyGeneratedTextureShape(BlenderKey.SkyGeneratedTextureShape skyGeneratedTextureShape) |
void |
setSkyGeneratedTextureSize(int skyGeneratedTextureSize) |
void |
setUsedWorld(java.lang.String usedWorld)
This method sets the name of the WORLD data block that should be used during file loading.
|
boolean |
shouldLoad(int featureToLoad)
Deprecated.
|
void |
write(JmeExporter e) |
getCacheType, getProcessorType
clone, getExtension, getExtension, getFolder, getFolder, getName, reducePath, toString
protected static final int DEFAULT_FPS
protected int fps
protected int featuresToLoad
protected boolean loadUnlinkedAssets
protected java.lang.String assetRootPath
protected boolean fixUpAxis
protected int generatedTexturePPU
protected java.lang.String usedWorld
protected Material defaultMaterial
protected RenderState.FaceCullMode faceCullMode
protected int layersToLoad
protected boolean loadObjectProperties
protected int maxTextureSize
protected boolean loadGeneratedTextures
protected BlenderKey.MipmapGenerationMethod mipmapGenerationMethod
protected int skyGeneratedTextureSize
protected float skyGeneratedTextureRadius
protected BlenderKey.SkyGeneratedTextureShape skyGeneratedTextureShape
protected boolean optimiseTextures
protected BlenderKey.AnimationMatchMethod animationMatchMethod
protected float pointsSize
protected float linesWidth
public BlenderKey()
public BlenderKey(java.lang.String name)
name
- the name (path) of a filepublic int getFps()
public void setFps(int fps)
fps
- the frames per second amountpublic RenderState.FaceCullMode getFaceCullMode()
public void setFaceCullMode(RenderState.FaceCullMode faceCullMode)
faceCullMode
- the face cull modepublic void setLayersToLoad(int layersToLoad)
layersToLoad
- layers to be loadedpublic int getLayersToLoad()
public void setLoadObjectProperties(boolean loadObjectProperties)
loadObjectProperties
- true to load properties and false to suspend their loadingpublic boolean isLoadObjectProperties()
public int getMaxTextureSize()
public void setMaxTextureSize(int maxTextureSize)
maxTextureSize
- the maximum texture sizepublic void setLoadGeneratedTextures(boolean loadGeneratedTextures)
loadGeneratedTextures
- true if generated textures should be loaded and false otherwisepublic boolean isLoadGeneratedTextures()
@Deprecated public void setAssetRootPath(java.lang.String assetRootPath)
assetRootPath
- the assets root path@Deprecated public java.lang.String getAssetRootPath()
@Deprecated public void includeInLoading(int featuresToLoad)
featuresToLoad
- bitwise flag of FeaturesToLoad interface values@Deprecated public void excludeFromLoading(int featuresNotToLoad)
featuresNotToLoad
- bitwise flag of FeaturesToLoad interface values@Deprecated public boolean shouldLoad(int featureToLoad)
@Deprecated public int getFeaturesToLoad()
public boolean isLoadUnlinkedAssets()
public void setLoadUnlinkedAssets(boolean loadUnlinkedAssets)
loadUnlinkedAssets
- true if unlinked assets should be loaded and false otherwisepublic void setFixUpAxis(boolean fixUpAxis)
fixUpAxis
- the up axis state variablepublic boolean isFixUpAxis()
public void setGeneratedTexturePPU(int generatedTexturePPU)
generatedTexturePPU
- the generated textures resolutionpublic int getGeneratedTexturePPU()
public BlenderKey.MipmapGenerationMethod getMipmapGenerationMethod()
public void setMipmapGenerationMethod(BlenderKey.MipmapGenerationMethod mipmapGenerationMethod)
mipmapGenerationMethod
- mipmaps generation methodpublic int getSkyGeneratedTextureSize()
public void setSkyGeneratedTextureSize(int skyGeneratedTextureSize)
skyGeneratedTextureSize
- the size of the generated textures for the sky (used if no flat textures are applied)public float getSkyGeneratedTextureRadius()
public void setSkyGeneratedTextureRadius(float skyGeneratedTextureRadius)
skyGeneratedTextureRadius
- the radius of a shape that will be used while creating the generated texture for the sky, the higher it is the larger part of the texture will be seenpublic BlenderKey.SkyGeneratedTextureShape getSkyGeneratedTextureShape()
public void setSkyGeneratedTextureShape(BlenderKey.SkyGeneratedTextureShape skyGeneratedTextureShape)
skyGeneratedTextureShape
- the shape against which the generated texture for the sky will be createdpublic void setOptimiseTextures(boolean optimiseTextures)
optimiseTextures
- the variable that tells if the textures should be optimised or notpublic boolean isOptimiseTextures()
public void setAnimationMatchMethod(BlenderKey.AnimationMatchMethod animationMatchMethod)
animationMatchMethod
- the way the animations will be matched with skeletonspublic BlenderKey.AnimationMatchMethod getAnimationMatchMethod()
public float getPointsSize()
public void setPointsSize(float pointsSize)
pointsSize
- The size of points that are loaded and do not belong to any edge of the meshpublic float getLinesWidth()
public void setLinesWidth(float linesWidth)
linesWidth
- the width of edges that are loaded from the mesh and do not belong to any facepublic void setUsedWorld(java.lang.String usedWorld)
usedWorld
- the name of the WORLD block used during loadingpublic java.lang.String getUsedWorld()
public void setDefaultMaterial(Material defaultMaterial)
defaultMaterial
- the default materialpublic Material getDefaultMaterial()
public void write(JmeExporter e) throws java.io.IOException
public void read(JmeImporter e) throws java.io.IOException