| Modifier and Type | Method and Description |
|---|---|
Model |
BonzaiEngine.read(AssetManager assets,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
AnimGraph.getPose(Model model,
Transform[] dst) |
void |
AnimGraph.getTargets(Model model,
java.util.HashMap<java.lang.String,Percent> targetWeightMap) |
boolean |
AnimGraph.update(Model model,
long timePassedMs) |
| Modifier and Type | Method and Description |
|---|---|
Model |
PhysicRenderer.getCache(CollisionShape collisionShape) |
| Modifier and Type | Method and Description |
|---|---|
static GeometryData |
PhysicUtil.modelToGeometry(Model model,
int lod)
Convert a
Model into a GeometryDataThe resulting GeometryData isis the merge of all Model's GeometryData
for the specified lod level |
| Modifier and Type | Method and Description |
|---|---|
Model |
Model.duplicate(boolean duplicateHierarchy,
boolean duplicateAnimation,
boolean duplicateAnimationList,
boolean duplicateMaterialKey) |
Model |
Model.getChild(int index) |
Model |
ModelInstance.getInternalModelIfLoaded() |
Model |
ModelInstance.getModel() |
Model |
ModelInstance.getModelIfLoaded() |
static Model |
Model.read(ByteInputStream in,
Model model) |
| Modifier and Type | Method and Description |
|---|---|
Array<Model> |
Model.getChilds() |
Array<Model> |
Model.setChilds(Array<Model> childs) |
| Modifier and Type | Method and Description |
|---|---|
void |
Model.addChild(Model model) |
void |
Skeleton.applySort(Model model,
java.util.HashMap<java.lang.Integer,java.lang.Integer> sort) |
int |
Model.compareTo(Model o) |
void |
Skeleton.filter(Model model,
boolean[] keep)
Internal use by
Optimizer |
void |
Motion.load(Model model) |
Motion |
Skeleton.merge(Model model,
Motion motion)
Add a compatible skeletal animation to the model
|
static Model |
Model.read(ByteInputStream in,
Model model) |
boolean |
Model.removeChild(Model model) |
void |
Skeleton.renameMotion(Model model,
JointMotion motion,
java.lang.String newName)
Safely rename a
JointMotion, ie update all references |
void |
Skeleton.replaceJointInfluence(Model model,
java.lang.String oldJointName,
java.lang.String newJointName) |
Motion |
Skeleton.retarget(Model model,
Motion motion,
JointMotion animBindPose,
java.util.Map<java.lang.String,java.lang.String> modelToMotionName,
java.util.Set<java.lang.String> keepInitialBindPose,
boolean ignoreFirstFrame,
boolean reorientLastJoint,
boolean optimize,
java.lang.String name)
Re-target an animation to the skeleton
|
| Modifier and Type | Method and Description |
|---|---|
Array<Model> |
Model.setChilds(Array<Model> childs) |
| Modifier and Type | Method and Description |
|---|---|
Model |
AssetManager.loadModel(ModelReaderSettings settings)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
AssetManager.generateShadersAsync(Model model)
Force asynchronous shader generation to the specified
Model. |
void |
AssetManager.loadShaders(Model model) |
void |
AssetManager.onContextLost(Model model)
Must be called after
AssetManager.onContextLost() |
void |
AssetManager.onMaterialChanged(Model model,
MaterialStandard material)
Internal use
Notifies a MaterialStandard has a shader changed |
void |
AssetManager.readAndLoadTextures(IGL gl,
Model model)
Deprecated.
|
void |
AssetManager.readTextures(Model model)
Synchronous texture read of all textures of the
Model |
void |
AssetManager.readTexturesAsync(Model model)
Asynchronous read all textures of the specified
Model |
| Constructor and Description |
|---|
AsyncModel(Model model)
Create an
AsyncModel from a Model already loaded |
| Constructor and Description |
|---|
AsyncModel(AssetManager assets,
java.lang.String id,
Task<Model> loader) |
| Modifier and Type | Method and Description |
|---|---|
void |
ModelReaderSettings.postProcess(Model model)
Internal use
|
static void |
ModelReaderSettings.precomputeBv(Model model,
int bvOptions) |
void |
IModelReader.read(Model model,
ModelReaderSettings settings)
Read the model file.
|
static void |
ModelReaderSettings.split(Model model,
AnimationSplitInfo[] splitInfos,
int motionIndex)
Split model skeleton animation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Ac3dReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
AseReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
JmfReader.read(Model model,
ModelReaderSettings settings) |
void |
JmaReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
BvhReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
Ds3Reader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
FbxReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
HeightmapReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
KmzReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
LwoReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
Md2Reader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
static Model |
Md3Animation.getHead(Model model) |
static Model |
Md3Animation.getLower(Model model) |
static Model |
Md3Animation.getUpper(Model model) |
static Model |
Md3Animation.getWeapon(Model model) |
| Modifier and Type | Method and Description |
|---|---|
static Model |
Md3Animation.getHead(Model model) |
static Model |
Md3Animation.getLower(Model model) |
static Model |
Md3Animation.getUpper(Model model) |
static Model |
Md3Animation.getWeapon(Model model) |
void |
Md3Reader.read(Model model,
ModelReaderSettings settings) |
static boolean |
Md3Animation.setLegsAnimation(Model model,
Md3Animation anim)
Set the lower body animation.
|
static boolean |
Md3Animation.setTorsoAnimation(Model model,
Md3Animation anim)
Set the upper body animation.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Md5Reader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
Mdl7Reader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
Ms3dReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
ObjReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
X3dReader.read(Model model,
ModelReaderSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
static Model |
Utils.getModel(Model model,
java.lang.String modelName)
Search a model from his name
|
static Model |
Utils.getModelParent(Model model,
Mesh mesh) |
static Model |
Biped.motionToModel(Motion motion) |
static Model |
Utils.removeModel(Model model,
Model remove) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.HashSet<Model> |
Utils.listModels(Model model) |
| Modifier and Type | Method and Description |
|---|---|
static Motion |
Utils.extractMotion(Model model,
Animation animation)
|
static Animation[] |
Utils.getAnimations(Model model) |
static Array<Animation> |
Utils.getAnimations(Model model,
JointMotion jointMotion) |
static Optimizer |
Optimizer.getBestOptions(Model model)
Analyze the model and get the best options to optimize it.
|
static int |
Utils.getMaterialIndex(Model model,
java.lang.String materialName) |
static Mesh |
Utils.getMesh(Model model,
java.lang.String meshName,
int meshLod)
Search a mesh from his name
|
static Mesh |
Utils.getMeshParent(Model model,
GeometryData geometry)
Search the parent mesh.
|
static Mesh |
Utils.getMeshParent(Model model,
Mesh mesh)
Search the parent mesh.
|
static Model |
Utils.getModel(Model model,
java.lang.String modelName)
Search a model from his name
|
static Model |
Utils.getModelParent(Model model,
Mesh mesh) |
static int |
Utils.getNumTextureWithDiffuseAlphaChannel(Model model) |
static int |
Utils.getNumTotalFaces(Model model,
int lod) |
static int |
Utils.getNumTotalMeshes(Model model,
int lod) |
static int |
Utils.getNumTotalVertices(Model model,
int lod) |
static boolean |
Utils.isMaterialsReceiveLighting(Model model) |
static boolean |
Utils.isMaterialsTwoSided(Model model) |
static java.util.HashSet<MaterialStandard> |
Utils.listMaterials(Model model,
boolean rec) |
static java.util.HashSet<MaterialStandard> |
Utils.listMaterialsUsing(Model model,
Texture texture) |
static java.util.HashSet<Mesh> |
Utils.listMeshes(Model model,
int lod,
boolean rec) |
static java.util.HashSet<Model> |
Utils.listModels(Model model) |
static long |
Utils.memoryUsage(Model m)
Calculate the approximative memory usage of the model.
|
static int |
Utils.mergeDuplicatedMaterials(Model model) |
static void |
Utils.mergeLods(Model base,
Model lod1,
Model lod2,
Model lod3)
Merge up to 3 lod levels in the base
Model |
void |
Optimizer.optimize(Model model)
Optimize model
|
static int |
Utils.removeAdvancedMaps(Model model)
Remove all
Map used by shaders:
Normal
Height
Reflect
Refract
Opacity
Specular
Shininess
Glossiness
|
static boolean |
Utils.removeAndReplaceMaterial(Model model,
MaterialStandard remove,
MaterialStandard replaceWith) |
static int |
Utils.removeAnimations(Model model,
Animation[] animToRemove)
Remove the specified list of animations
|
static Array<Animation> |
Utils.removeAnimations(Model model,
JointMotion jointMotion)
Remove the specified
JointMotion from this skeleton and
all Animation using the specified JointMotion. |
static int |
Utils.removeMaps(Model model,
Map.MapType type)
Remove all material map of
type specified. |
static int |
Utils.removeMapsNotLoaded(Model model) |
static boolean |
Utils.removeMaterial(Model model,
MaterialStandard remove)
Remove a material and update references
|
static Mesh |
Utils.removeMesh(Model model,
Mesh toRemove)
Remove the first occurrence of the mesh to remove
|
static Model |
Utils.removeModel(Model model,
Model remove) |
static void |
Utils.removeMotions(Model model)
|
static Transform |
Utils.removeTransform(Model model,
int index) |
static Transform |
Utils.removeTransform(Model model,
Mesh mesh,
int index) |
static int |
Utils.removeUnusedMaterials(Model model) |
static void |
Utils.renameMaterial(Model model,
MaterialStandard material,
java.lang.String newName)
Rename a material and update references
|
static void |
Utils.setMaterialKey(Model model,
java.lang.Object materialKey) |
static void |
Utils.setMaterialsForceAlphaTest(Model model,
boolean forceAlphaTest)
For all the
MaterialStandard in the specified Model, set the forceAlphaTest property |
static void |
Utils.setMaterialsReceiveLight(Model model,
boolean useLight)
For all the
MaterialStandard in the specified Model, set the useLight property |
static void |
Utils.setMaterialsTwoSided(Model model,
boolean twoSided)
For all the
MaterialStandard in the specified Model, set the twoSided property |
static void |
Utils.setMaterialsUseDiffuseAlpha(Model model,
boolean useDiffuseChannel)
For all the
MaterialStandard in the specified Model, set the useDiffuseChannel property |
static void |
Utils.useMaterialStringReference(Model model)
Ensure Material name are unique and not null/empty (or set default name).
|
| Modifier and Type | Method and Description |
|---|---|
static TextureWriter |
TextureWriter.create(ModelWriterSettings settings,
Model model,
boolean startAsync,
int maxNameLength) |
void |
ModelWriterSettings.preProcessAfterTexture(Model model)
Internal use by
IModelWriter |
void |
ModelWriterSettings.preProcessBeforeTexture(Model model)
Internal use by
IModelWriter |
void |
IModelWriter.write(Model model,
ModelWriterSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
JmfWriter.write(Model model,
ModelWriterSettings settings) |
void |
JmaWriter.write(Model model,
ModelWriterSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
Ds3Writer.write(Model model,
ModelWriterSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
void |
ObjWriter.write(Model model,
ModelWriterSettings settings) |
| Modifier and Type | Method and Description |
|---|---|
SoftBody |
PhysicWorld.createSoftBody(Model model) |
| Modifier and Type | Method and Description |
|---|---|
BatchProfile |
JointNameRenderer.render(IGLApi glApi,
IFont font,
SceneView sceneView,
Model model) |
static BatchProfile |
Renderer.render(IGLApi glApi,
Model model,
RenderOptions renderOptions)
Deprecated.
|
void |
Renderer.render(Model model,
RenderOptions renderOptions)
Usage:
RendererPipeline pipeline = BonzaiEngine.get().getRendererPipeline(); pipeline.start(glApi); // Render all models pipeline.render(model, renderOptions); [...] |
void |
Renderer.render(Model model,
RenderOptions renderOptions,
Renderer.Pass pass) |
| Modifier and Type | Method and Description |
|---|---|
void |
ShaderGenerator.generate(Model model)
Generate standard shader for all
MaterialStandard of the specified Model |
void |
ShaderGenerator.generate(Model model,
boolean rec)
Generate standard shader for all
MaterialStandard of the specified Model |
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com