A constructor defined in BBMOD_OBJImporter.gml
Extends BBMOD_Importer
new BBMOD_OBJImporter()
An *.obj
model importer.
Name | Description |
---|---|
ConvertYToZUp | If true , then Y and Z axes are switched in imported models. Default value is false. |
ImportMaterials | If true , then the importer tries to import materials from *.mtl files. Default value is false . |
InvertWinding | If true , then the winding order of vertices is inverted. Default value is false . |
Name | Description |
---|---|
FlipUVHorizontally | If true then UV texture coordinates of imported models will be flipped horizontally. Defaults to false . |
FlipUVVertically | If true then UV texture coordinates of imported models will be flipped vertically. Defaults to false . |
Name | Description |
---|---|
can_import | Checks whether a file can be imported. |
destroy | Frees memory used by the struct. |
import | Imports a model from a file. |
var _objImporter = new BBMOD_OBJImporter();
modHouse = _objImporter.import("Data/Assets/House.obj");
modTree = _objImporter.import("Data/Assets/Tree.obj");
modFence = _objImporter.import("Data/Assets/Fence.obj");
_objImporter = _objImporter.destroy();
Copyright © 2024, BlueBurn. Built on September 07, 2024 using GMDoc.