Package | Description |
---|---|
com.badlogic.gdx.assets.loaders | |
com.badlogic.gdx.graphics.g3d | |
com.badlogic.gdx.graphics.g3d.loader | |
com.badlogic.gdx.graphics.g3d.utils |
Modifier and Type | Class and Description |
---|---|
class |
ModelLoader<P extends AssetLoaderParameters<Model>> |
Modifier and Type | Method and Description |
---|---|
Model |
ModelLoader.loadModel(FileHandle fileHandle)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
P parameters)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
TextureProvider textureProvider)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadModel(FileHandle fileHandle,
TextureProvider textureProvider,
P parameters)
Directly load the model on the calling thread.
|
Model |
ModelLoader.loadSync(AssetManager manager,
java.lang.String fileName,
FileHandle file,
P parameters) |
Modifier and Type | Field and Description |
---|---|
Model |
ModelInstance.model
the
Model this instances derives from |
Constructor and Description |
---|
ModelInstance(Model model)
Constructs a new ModelInstance with all nodes and materials of the given model.
|
ModelInstance(Model model,
Array<java.lang.String> rootNodeIds)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
float x,
float y,
float z)
Constructs a new ModelInstance at the specified position.
|
ModelInstance(Model model,
Matrix4 transform)
Constructs a new ModelInstance with the specified transform.
|
ModelInstance(Model model,
Matrix4 transform,
Array<java.lang.String> rootNodeIds)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
Matrix4 transform,
java.lang.String... rootNodeIds)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
Matrix4 transform,
java.lang.String nodeId,
boolean mergeTransform) |
ModelInstance(Model model,
Matrix4 transform,
java.lang.String nodeId,
boolean parentTransform,
boolean mergeTransform)
Recursively searches the mode for the specified node.
|
ModelInstance(Model model,
Matrix4 transform,
java.lang.String nodeId,
boolean recursive,
boolean parentTransform,
boolean mergeTransform) |
ModelInstance(Model model,
java.lang.String... rootNodeIds)
Constructs a new ModelInstance with only the specified nodes and materials of the given model.
|
ModelInstance(Model model,
java.lang.String nodeId,
boolean mergeTransform) |
ModelInstance(Model model,
java.lang.String nodeId,
boolean parentTransform,
boolean mergeTransform)
Recursively searches the mode for the specified node.
|
ModelInstance(Model model,
java.lang.String nodeId,
boolean recursive,
boolean parentTransform,
boolean mergeTransform) |
ModelInstance(Model model,
Vector3 position)
Constructs a new ModelInstance at the specified position.
|
Modifier and Type | Method and Description |
---|---|
Model |
ObjLoader.loadModel(FileHandle fileHandle,
boolean flipV)
Directly load the model on the calling thread.
|
Model |
ObjLoader.loadObj(FileHandle file)
Deprecated.
Use
ModelLoader.loadModel(FileHandle) instead.Loads a Wavefront OBJ file from a given file handle. |
Model |
ObjLoader.loadObj(FileHandle file,
boolean flipV)
Deprecated.
Use
ObjLoader.loadModel(FileHandle, boolean) instead.Loads a Wavefront OBJ file from a given file handle. |
Modifier and Type | Method and Description |
---|---|
ModelData |
G3dModelLoader.loadModelData(FileHandle fileHandle,
AssetLoaderParameters<Model> parameters) |
Modifier and Type | Method and Description |
---|---|
Model |
ModelBuilder.createBox(float width,
float height,
float depth,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a box shape.
|
Model |
ModelBuilder.createBox(float width,
float height,
float depth,
Material material,
long attributes)
Convenience method to create a model with a single node containing a box shape.
|
Model |
ModelBuilder.createCapsule(float radius,
float height,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a capsule shape.
|
Model |
ModelBuilder.createCapsule(float radius,
float height,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a capsule shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCone(float width,
float height,
float depth,
int divisions,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cone shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
int primitiveType,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
Material material,
long attributes)
Convenience method to create a model with a single node containing a cylinder shape.
|
Model |
ModelBuilder.createCylinder(float width,
float height,
float depth,
int divisions,
Material material,
long attributes,
float angleFrom,
float angleTo)
Convenience method to create a model with a single node containing a cylinder shape.
|
static Model |
ModelBuilder.createFromMesh(float[] vertices,
VertexAttribute[] attributes,
short[] indices,
int primitiveType,
Material material)
Deprecated.
|
static Model |
ModelBuilder.createFromMesh(Mesh mesh,
int indexOffset,
int vertexCount,
int primitiveType,
Material material)
Deprecated.
|
static Model |
ModelBuilder.createFromMesh(Mesh mesh,
int primitiveType,
Material material)
Deprecated.
|
Model |
ModelBuilder.createRect(float x00,
float y00,
float z00,
float x10,
float y10,
float z10,
float x11,
float y11,
float z11,
float x01,
float y01,
float z01,
float normalX,
float normalY,
float normalZ,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a rectangle shape.
|
Model |
ModelBuilder.createRect(float x00,
float y00,
float z00,
float x10,
float y10,
float z10,
float x11,
float y11,
float z11,
float x01,
float y01,
float z01,
float normalX,
float normalY,
float normalZ,
Material material,
long attributes)
Convenience method to create a model with a single node containing a rectangle shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
int primitiveType,
Material material,
long attributes)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
int primitiveType,
Material material,
long attributes,
float angleUFrom,
float angleUTo,
float angleVFrom,
float angleVTo)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
Material material,
long attributes)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.createSphere(float width,
float height,
float depth,
int divisionsU,
int divisionsV,
Material material,
long attributes,
float angleUFrom,
float angleUTo,
float angleVFrom,
float angleVTo)
Convenience method to create a model with a single node containing a sphere shape.
|
Model |
ModelBuilder.end()
End building the model.
|
Modifier and Type | Method and Description |
---|---|
Node |
ModelBuilder.node(java.lang.String id,
Model model)
Adds the nodes of the specified model to a new node the model being build.
|
static void |
ModelBuilder.rebuildReferences(Model model)
Resets the references to materials, meshes and meshparts within the model to the ones used within it's nodes.
|