Package de.coreengine.asset
Class ModelLoader
- java.lang.Object
-
- de.coreengine.asset.ModelLoader
-
public class ModelLoader extends Object
Class for loading model files
Supported Formats (From Assimp):
COMMON INTERCHANGE FORMATS (An asterisk indicates limited support)
Autodesk ( .fbx )
Collada ( .dae )
glTF ( .gltf, .glb )
Blender 3D ( .blend )
3ds Max 3DS ( .3ds )
3ds Max ASE ( .ase )
Wavefront Object ( .obj )
Industry Foundation Classes (IFC/Step) ( .ifc )
XGL ( .xgl,.zgl )
Stanford Polygon Library ( .ply )
*AutoCAD DXF ( .dxf )
LightWave ( .lwo )
LightWave Scene ( .lws )
Modo ( .lxo )
Stereolithography ( .stl )
DirectX X ( .x )
AC3D ( .ac )
Milkshape 3D ( .ms3d )
* TrueSpace ( .cob,.scn )
*OpenGEX ( .ogex )
*X3D ( .x3d )
*3MF ( .3mf )
MOTION CAPTURE FORMATS
Biovision BVH ( .bvh )
* CharacterStudio Motion ( .csm )
GRAPHICS ENGINE FORMATS
Ogre XML ( .xml )
Irrlicht Mesh ( .irrmesh )
* Irrlicht Scene ( .irr )
GAME FILE FORMATS
Quake I ( .mdl )
Quake II ( .md2 )
Quake III Mesh ( .md3 )
Quake III Map/BSP ( .pk3 )
* Return to Castle Wolfenstein ( .mdc )
Doom 3 ( .md5* )
*Valve Model ( .smd,.vta )
*Open Game Engine Exchange ( .ogex )
*Unreal ( .3d )
OTHER FILE FORMATS
BlitzBasic 3D ( .b3d )
Quick3D ( .q3d,.q3s )
Neutral File Format ( .nff )
Sense8 WorldToolKit ( .nff )
Object File Format ( .off )
PovRAY Raw ( .raw )
Terragen Terrain ( .ter )
3D GameStudio (3DGS) ( .mdl )
3D GameStudio (3DGS) Terrain ( .hmp )
Izware Nendo ( .ndo )
- Author:
- Darius
-
-
Constructor Summary
Constructors Constructor Description ModelLoader()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
loadAnimatedModelFile(String file, String texPath, boolean asResource, String shape)
Loading an animated model from a file into asset databasestatic AnimatedModelData
loadAnimatedModelFileData(String file, String shape)
Loading an dataStructures animated model from a filestatic void
loadModelFile(String file, String texPath, boolean asResource, String shape)
Loading a model from a file into asset databasestatic ModelData
loadModelFileData(String file, String shape)
Loading a dataStructures model from a file
-
-
-
Method Detail
-
loadModelFile
public static void loadModelFile(String file, String texPath, boolean asResource, String shape)
Loading a model from a file into asset database- Parameters:
file
- Model file to loadtexPath
- Location of the texture filesshape
- Collision shape, or "convex" / "triangleMesh" / null to auto generateasResource
- Load textures from resources
-
loadAnimatedModelFile
public static void loadAnimatedModelFile(String file, String texPath, boolean asResource, String shape)
Loading an animated model from a file into asset database- Parameters:
file
- Model file to loadtexPath
- Location of the texture filesshape
- Collision shape, or "convex" / "triangleMesh" / null to auto generateasResource
- Load textures from resources
-
loadModelFileData
public static ModelData loadModelFileData(String file, String shape)
Loading a dataStructures model from a file- Parameters:
file
- Model file to loadshape
- Collision shape, or "convex" / "triangleMesh" / null to auto generate- Returns:
- Meta model with raw model data
-
loadAnimatedModelFileData
public static AnimatedModelData loadAnimatedModelFileData(String file, String shape)
Loading an dataStructures animated model from a file- Parameters:
file
- Model file to loadshape
- Collision shape, or "convex" / "triangleMesh" / null to auto generate- Returns:
- Loaded Model as AnimatedModelData
-
-