BBMOD_DLL

Extends BBMOD_Class

constructor

new BBMOD_DLL([_path])

Description

Loads a dynamic library which allows you to convert models into BBMOD.

Arguments

Name Type Description
_path String The path to the dynamic library file. Defaults to "Data/BBMOD/BBMOD.dll" on Windows and "Data/BBMOD/libBBMOD.dylib" on macOS.

Properties

Name Description
Path Path to the dynamic library.

Methods

Name Description
convert Converts a model into a BBMOD.
get_disable_bone Checks whether bones are disabled.
get_disable_color Checks whether vertex colors are disabled.
get_disable_normal Checks whether vertex normals are disabled.
get_disable_tangent Checks whether tangent and bitangent vectors are disabled.
get_disable_uv Checks whether texture coordinates are disabled.
get_disable_uv2 Checks whether second UV channel is disabled.
get_flip_normal Checks whether flipping vertex normals is enabled.
get_flip_uv_horizontally Checks whether flipping texture coordinates horizontally is enabled.
get_flip_uv_vertically Checks whether flipping texture coordinates vertically is enabled.
get_gen_normal Checks whether generating normal vectors is enabled.
get_invert_winding Checks whether inverse vertex winding is enabled.
get_left_handed Checks whether conversion to left-handed coordinate system is enabled.
get_optimize_animations Retrieves the animation optimization level.
get_optimize_materials Checks whether material optimization is enabled.
get_optimize_meshes Checks whether mesh optimization is enabled.
get_optimize_nodes Checks whether node optimization is enabled.
get_sampling_rate Retrieves the animation samping rate (frames per second).
set_disable_bone Enables/disables bones and animations. These are by default enabled.
set_disable_color Enables/disables vertex colors. Vertex colors are by default disabled. Changing this makes the model incompatible with the default shaders!
set_disable_normal Enables/disables vertex normals. Vertex normals are by default enabled. Changing this makes the model incompatible with the default shaders!
set_disable_tangent Enables/disables tangent and bitangent vectors. These are by default enabled. Changing this makes the model incompatible with the default shaders!
set_disable_uv Enables/disables texture coordinates. Texture coordinates are by default enabled. Changing this makes the model incompatible with the default shaders!
set_disable_uv2 Enables/disables second UV channel. Second UV channel is by default disabled. Changing this makes the model incompatible with the default shaders!
set_flip_normal Enables/disables flipping vertex normals. This is by default disabled.
set_flip_uv_horizontally Enables/disables flipping texture coordinates horizontally. This is by default disabled.
set_flip_uv_vertically Enables/disables flipping texture coordinates vertically. This is by default enabled.
set_gen_normal Configures generating normal vectors. This is by default set to BBMOD_NORMALS_SMOOTH. Vertex normals are required by the default shaders!
set_invert_winding Enables/disables inverse vertex winding. This is by default disabled.
set_left_handed Enables/disables conversion to left-handed coordinate system. This is by default enabled.
set_optimize_animations Sets the animation optimization level. This is by default set to 0.
set_optimize_materials Enables/disables material optimization. When enabled, redundant materials are joined into one and unused materials are removed. This is by default enabled.
set_optimize_meshes Enables/disables mesh optimization. When enabled, multiple meshes with the same material are joined into one to reduce draw calls. This is by default enabled.
set_optimize_nodes Enable/disable node optimization. When enabled, multiple nodes (without bones, animations, ...) are joined into one. This is by default enabled.
set_sampling_rate Sets the animation sampling rate (frames per second). This is by default set to 60.

Throws

Example

var _dll = new BBMOD_DLL();
_dll.set_gen_normal(BBMOD_NORMALS_FLAT);
_dll.convert("House.fbx", "House.bbmod");
_dll.destroy();
modHouse = new BBMOD_Model("House.bbmod");
Do you find this page helpful?

Copyright © 2022, BlueBurn. Built on November 16, 2022 using GMDoc.