BBMOD_OBJImporter

A constructor defined in BBMOD_OBJImporter.gml

Extends BBMOD_Importer

new BBMOD_OBJImporter()

Description

An *.obj model importer.

Properties

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.

Inherited properties

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.

Inherited methods

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.

Example

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();
Do you find this page helpful?

Copyright © 2024, BlueBurn. Built on April 16, 2024 using GMDoc.