Class ObjImporter

java.lang.Object
com.ardor3d.extension.model.obj.ObjImporter

public class ObjImporter extends Object
Wavefront OBJ importer. See the format spec
  • Constructor Details

    • ObjImporter

      public ObjImporter()
  • Method Details

    • isLoadTextures

      public boolean isLoadTextures()
    • setLoadTextures

      public void setLoadTextures(boolean loadTextures)
    • setTextureLocator

      public void setTextureLocator(ResourceLocator locator)
    • setModelLocator

      public void setModelLocator(ResourceLocator locator)
    • setMaterialLocator

      public void setMaterialLocator(ResourceLocator locator)
    • setFlipTextureVertically

      public void setFlipTextureVertically(boolean flipTextureVertically)
    • isFlipTextureVertically

      public boolean isFlipTextureVertically()
    • setUseCompression

      public void setUseCompression(boolean useCompression)
    • isUseCompression

      public boolean isUseCompression()
    • setMinificationFilter

      public void setMinificationFilter(Texture.MinificationFilter minificationFilter)
    • getMinificationFilter

      public Texture.MinificationFilter getMinificationFilter()
    • getObjSpecularMax

      public float getObjSpecularMax()
    • setObjSpecularMax

      public void setObjSpecularMax(float max)
    • load

      public ObjGeometryStore load(String resource)
      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

      public ObjGeometryStore load(String resource, GeometryTool geometryTool)
      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

      public ObjGeometryStore load(ResourceSource resource)
      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

      public ObjGeometryStore load(ResourceSource resource, GeometryTool geometryTool)
      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.