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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloatbooleanbooleanbooleanload(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 resourcevoidsetFlipTextureVertically(boolean flipTextureVertically) voidsetLoadTextures(boolean loadTextures) voidsetMaterialLocator(ResourceLocator locator) voidsetMinificationFilter(Texture.MinificationFilter minificationFilter) voidsetModelLocator(ResourceLocator locator) voidsetObjSpecularMax(float max) voidsetTextureLocator(ResourceLocator locator) voidsetUseCompression(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.
-