Package com.ardor3d.extension.model.obj
Class ObjImporter
java.lang.Object
com.ardor3d.extension.model.obj.ObjImporter
Wavefront OBJ importer. See the format spec
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfloat
boolean
boolean
boolean
load
(ResourceSource resource) Reads a Wavefront OBJ file from the given resourceload
(ResourceSource resource, GeometryTool geometryTool) Reads a Wavefront OBJ file from the given resourceReads a Wavefront OBJ file from the given resourceload
(String resource, GeometryTool geometryTool) Reads a Wavefront OBJ file from the given resourcevoid
setFlipTextureVertically
(boolean flipTextureVertically) void
setLoadTextures
(boolean loadTextures) void
setMaterialLocator
(ResourceLocator locator) void
setMinificationFilter
(Texture.MinificationFilter minificationFilter) void
setModelLocator
(ResourceLocator locator) void
setObjSpecularMax
(float max) void
setTextureLocator
(ResourceLocator locator) void
setUseCompression
(boolean useCompression)
-
Constructor Details
-
ObjImporter
public ObjImporter()
-
-
Method Details
-
isLoadTextures
public boolean isLoadTextures() -
setLoadTextures
public void setLoadTextures(boolean loadTextures) -
setTextureLocator
-
setModelLocator
-
setMaterialLocator
-
setFlipTextureVertically
public void setFlipTextureVertically(boolean flipTextureVertically) -
isFlipTextureVertically
public boolean isFlipTextureVertically() -
setUseCompression
public void setUseCompression(boolean useCompression) -
isUseCompression
public boolean isUseCompression() -
setMinificationFilter
-
getMinificationFilter
-
getObjSpecularMax
public float getObjSpecularMax() -
setObjSpecularMax
public void setObjSpecularMax(float max) -
load
Reads a Wavefront OBJ file from the given resource- Parameters:
resource
- the name of the resource to find.- Returns:
- an ObjGeometryStore data object containing the scene and other useful elements.
-
load
Reads a Wavefront OBJ file from the given resource- Parameters:
resource
- the name of the resource to find.geometryTool
- the geometry tool used to minimize the vertex count.- Returns:
- an ObjGeometryStore data object containing the scene and other useful elements.
-
load
Reads a Wavefront OBJ file from the given resource- Parameters:
resource
- the name of the resource to find.- Returns:
- an ObjGeometryStore data object containing the scene and other useful elements.
-
load
Reads a Wavefront OBJ file from the given resource- Parameters:
resource
- the name of the resource to find.geometryTool
- the geometry tool used to minimize the vertex count.- Returns:
- an ObjGeometryStore data object containing the scene and other useful elements.
-