• Articles
  • Api Documentation
Show / Hide Table of Contents
  • net.abi.abisEngine.components
    • Camera
    • DirectionalLight
    • FreeLook
    • FreeMove
    • Light
    • LockView
    • MeshRenderer
    • PointLight
    • SceneComponent
    • SpotLight
  • net.abi.abisEngine.core
    • CoreEngine
    • Main
    • Time
  • net.abi.abisEngine.entities
    • Entity
    • EntityI
  • net.abi.abisEngine.handlers.file
    • FileHandler
    • PathHandle
    • PathResolveI
    • PathType
  • net.abi.abisEngine.handlers.logging
    • Logger
    • LogLevel
    • LogManager
  • net.abi.abisEngine.input
    • GLFWInput
    • GLFWMouseAndKeyboardInput
  • net.abi.abisEngine.math
    • Math
    • Matrix
    • Matrix4f
    • Quaternion
    • Transform
    • Vector2f
    • Vector2i
    • Vector3f
    • Vector3i
    • Vector4f
    • Vector4fI
  • net.abi.abisEngine.rendering.asset
    • AssetClassifier
    • AssetContainer
    • AssetI
    • AssetLoaderParameters
    • AssetLoaderParameters.LoadedCallback
    • AssetLoadTask
    • AssetManager
    • AssetStore
    • TaskCompleteHandler
  • net.abi.abisEngine.rendering.asset.loaders
    • AssetLoader
    • AsyncAssetLoader
    • ModelSceneLoader
    • ModelSceneLoader.Parameter
    • SyncAssetLoader
  • net.abi.abisEngine.rendering.image
    • AEImage
    • ImageMetaData
    • PixelMap
  • net.abi.abisEngine.rendering.material
    • Material
  • net.abi.abisEngine.rendering.mesh
    • AIMeshLoader
    • Mesh
    • MeshResource
    • Model
    • ModelScene
    • Vertex
  • net.abi.abisEngine.rendering.pipeline
    • RenderingEngine
  • net.abi.abisEngine.rendering.scene
    • Scene
    • SceneManager
  • net.abi.abisEngine.rendering.scene.scenes
    • EngineSplashScreen
  • net.abi.abisEngine.rendering.shader
    • AEShader
    • AEShader.AEShaderType
    • AEShaderResource
    • ForwardAmbientShader
    • ForwardDirectionalShader
    • ForwardPointShader
    • ForwardSpotShader
    • GLSLLayoutQualifier
    • GLSLUniform
    • GLSLUniformBlockObject
    • GLSLUniformBlockObjectData
    • Shader
    • Shader.ShaderSource
    • Shader.ShaderType
    • ShaderResource
    • WireFrameShader
  • net.abi.abisEngine.rendering.shader.compiler
    • AEGLInfo
    • AEShaderCompiler
    • AEShaderCompiler.GLSLStruct
    • AEShaderCompiler.ShaderData
    • AEShaderCompiler.ShaderSource
    • Tokens
    • Tokens.Keywords
    • Tokens.Operators
    • Tokens.Qualifiers
  • net.abi.abisEngine.rendering.shader.loader
    • AEShaderLoader
  • net.abi.abisEngine.rendering.shader.parser
    • AEShaderParserYAML
  • net.abi.abisEngine.rendering.shader.parser.fileTypes.yaml
    • AEDemoProperty
    • AEPrepProperty
    • AEShaderFileYAML
    • AEShaderGLSLProgram
    • AEShaderPass
  • net.abi.abisEngine.rendering.texture
    • Texture
    • Texture.TextureData
    • TextureResource
  • net.abi.abisEngine.rendering.window
    • GLFWWindow
    • GLFWWindow.AnimatedCursor
    • GLFWWindow.CursorI
    • GLFWWindow.GLFWWindowProperties
    • GLFWWindow.StaticCursor
    • GLFWWindow.StaticCursorResource
    • GLFWWindowManager
    • GLFWWindowManager.GLFWWindowContext
  • net.abi.abisEngine.rendering.window.models
    • EngineLoader
  • net.abi.abisEngine.util
    • Attenuation
    • Color
    • Expendable
    • IOUtil
    • MappedValues
    • ThreadUtils
    • Util
  • net.abi.abisEngine.util.async
    • Async
    • AsyncResult
    • AsyncTask
    • AsyncThreadDispatcher
  • net.abi.abisEngine.util.cacheing
    • GenericCache
    • GenericCacheI
    • TwoFactorGenericCache
    • TwoFactorGenericCacheI
  • net.abi.abisEngine.util.exceptions
    • AECursorInitializationException
    • AEException
    • AEGLFWWindowInitializationException
    • AEImageManipulationException
    • AEIOException
    • AERuntimeException
    • AEShaderCompilerRuntimeException
  • tests.renderTest
    • Start
  • tests.renderTest.entitys
    • FlatPlane
    • MonkeyHead
  • tests.renderTest.materials
    • BricksOne
    • BricksTwo
  • tests.renderTest.scenes
    • MainMenu
    • TestGame
  • tests.renderTest.windows
    • MainGame

Class AIMeshLoader

Inheritance
java.lang.Object
AIMeshLoader
Syntax
public class AIMeshLoader

Fields

AI_DEBONE_THRESHOLD

Default value for configuration properties.

Declaration
public static final float AI_DEBONE_THRESHOLD= 1.0f
Field Value
Type Description
final float

AI_DEFAULT_FLAGS

Declaration
public static final int AI_DEFAULT_FLAGS= aiProcess_Triangulate | aiProcess_GenSmoothNormals
			| aiProcess_CalcTangentSpace | aiProcess_OptimizeMeshes| aiProcess_JoinIdenticalVertices
Field Value
Type Description
final int

AI_DEFAULT_MATERIAL_NAME

Name for default materials (2nd is used if meshes have UV coords)

Declaration
public static final String AI_DEFAULT_MATERIAL_NAME= "DefaultMaterial"
Field Value
Type Description
final String

ai_epsilon

Numerical limits.

Declaration
public static final float ai_epsilon= 0.00001f
Field Value
Type Description
final float

AI_MATH_PI

This is PI. Hi PI.

Declaration
public static final double AI_MATH_PI= 3.141592653589793d
Field Value
Type Description
final double

AI_MATH_PI_F

This is PI. Hi PI.

Declaration
public static final float AI_MATH_PI_F= 3.1415927f
Field Value
Type Description
final float

AI_MATKEY_GLTF_PBRMETALLICROUGHNESS_BASE_COLOR_TEXTURE

Declaration
public static final int AI_MATKEY_GLTF_PBRMETALLICROUGHNESS_BASE_COLOR_TEXTURE= aiTextureType_DIFFUSE
Field Value
Type Description
final int

AI_MATKEY_NAME

Material keys

Declaration
public static final String AI_MATKEY_NAME= "?mat.name"
Field Value
Type Description
final String

AI_MAX_BONE_WEIGHTS

Maximum number of indices per face (polygon).

Declaration
public static final int AI_MAX_BONE_WEIGHTS= 0x7FFFFFFF
Field Value
Type Description
final int

AI_MAX_FACE_INDICES

Maximum number of indices per face (polygon).

Declaration
public static final int AI_MAX_FACE_INDICES= 0x7FFF
Field Value
Type Description
final int

AI_MAX_FACES

Maximum number of faces per mesh.

Declaration
public static final int AI_MAX_FACES= 0x7FFFFFFF
Field Value
Type Description
final int

AI_MAX_NUMBER_OF_COLOR_SETS

Supported number of vertex color sets per mesh.

Declaration
public static final int AI_MAX_NUMBER_OF_COLOR_SETS= 0x8
Field Value
Type Description
final int

AI_MAX_NUMBER_OF_TEXTURECOORDS

Supported number of texture coord sets (UV(W) channels) per mesh.

Declaration
public static final int AI_MAX_NUMBER_OF_TEXTURECOORDS= 0x8
Field Value
Type Description
final int

AI_MAX_VERTICES

Maximum number of vertices per mesh.

Declaration
public static final int AI_MAX_VERTICES= 0x7FFFFFFF
Field Value
Type Description
final int

AI_SBBC_DEFAULT_MAX_BONES

Default values for configuration properties.

Declaration
public static final int AI_SBBC_DEFAULT_MAX_BONES= 0x3C
Field Value
Type Description
final int

AI_TRUE

Declaration
public static final int AI_TRUE= 0x1
Field Value
Type Description
final int

AI_UVTRAFO_SCALING

UVCoord Transforms

Declaration
public static final int AI_UVTRAFO_SCALING= 0x1
Field Value
Type Description
final int

aiAI_MATKEY_GLTF_PBRMETALLICROUGHNESS_BASE_COLOR_FACTOR

PBR Material keys

Declaration
public static final String aiAI_MATKEY_GLTF_PBRMETALLICROUGHNESS_BASE_COLOR_FACTOR= "$mat.gltf.pbrMetallicRoughness.baseColorFactor"
Field Value
Type Description
final String

aiBlendMode_Default

Defines alpha-blend flags.

Declaration
public static final int aiBlendMode_Default= 0x0
Field Value
Type Description
final int

aiComponent_NORMALS

Declaration
public static final int aiComponent_NORMALS= 0x2
Field Value
Type Description
final int

aiLightSource_UNDEFINED

Enumerates all supported types of light sources.

Declaration
public static final int aiLightSource_UNDEFINED= 0x0
Field Value
Type Description
final int

aiProcess_CalcTangentSpace

Defines the flags for all possible post processing steps.

Declaration
public static final int aiProcess_CalcTangentSpace= 0x1
Field Value
Type Description
final int

aiProcess_ConvertToLeftHanded

Process Presets

Declaration
public static final int aiProcess_ConvertToLeftHanded= aiProcess_MakeLeftHanded | aiProcess_FlipUVs
			| aiProcess_FlipWindingOrder | 0
Field Value
Type Description
final int

aiPTI_Float

A very primitive RTTI system for the contents of material properties.

Declaration
public static final int aiPTI_Float= 0x1
Field Value
Type Description
final int

aiShadingMode_Flat

Defines all shading models supported by the library.

Declaration
public static final int aiShadingMode_Flat= 0x1
Field Value
Type Description
final int

aiTextureFlags_Invert

Defines some mixed flags for a particular texture.

Declaration
public static final int aiTextureFlags_Invert= 0x1
Field Value
Type Description
final int

aiTextureMapMode_Wrap

Defines how UV coordinates outside the [0...1] range are handled. Commonly referred to as 'wrapping mode'.

Declaration
public static final int aiTextureMapMode_Wrap= 0x0
Field Value
Type Description
final int

aiTextureMapping_UV

Defines how the mapping coords for a texture are generated.

Declaration
public static final int aiTextureMapping_UV= 0x0
Field Value
Type Description
final int

aiTextureOp_Multiply

Defines how the Nth texture of a specific type is combined with the result of all previous layers.

Declaration
public static final int aiTextureOp_Multiply= 0x0
Field Value
Type Description
final int

aiTextureType_NONE

Defines the purpose of a texture.

Declaration
public static final int aiTextureType_NONE= 0x0
Field Value
Type Description
final int

MAXLEN

Maximum dimension for strings, ASSIMP strings are zero terminated.

Declaration
public static final int MAXLEN= 0x400
Field Value
Type Description
final int

MODELS_DIR

Declaration
public static final String MODELS_DIR= "./res/models/"
Field Value
Type Description
final String

Methods

loadModel(String modelFileName, String modelName, int post_options)

Declaration
public static Mesh loadModel(String modelFileName, String modelName, int post_options)
Parameters
Type Name Description
String modelFileName
String modelName
int post_options
Returns
Type Description
Mesh

loadModel(String modelFileName, String modelName, int post_options, AssetManager man)

Loads a mesh from a file using AssetI Importer Library. If no post options are provided (The value is 0) defaults will be used. Defaults are : aiProcess_Triangulate | aiProcess_GenSmoothNormals | aiProcess_FlipUVs | aiProcess_CalcTangentSpace. NOTE: aiProcess_JoinIdenticalVertices is useful.

Declaration
public static Mesh loadModel(String modelFileName, String modelName, int post_options, AssetManager man)
Parameters
Type Name Description
String modelFileName
String modelName
int post_options
AssetManager man
Returns
Type Description
Mesh

A Model Scene, since one model file can contain many individual models.

loadModelScene(String modelFilePath, int post_options, AssetManager man)

Declaration
public static ModelScene loadModelScene(String modelFilePath, int post_options, AssetManager man)
Parameters
Type Name Description
String modelFilePath
int post_options
AssetManager man
Returns
Type Description
ModelScene

printLibInfo()

Declaration
public static void printLibInfo()

removeMesh(Mesh mesh)

Declaration
public static void removeMesh(Mesh mesh)
Parameters
Type Name Description
Mesh mesh
Back to top Generated by DocFX