3.18.0
This release mainly brings improvements to BBMOD CLI by adding export of materials to *.bbmat
files and conversion from Y-up space to Z-up space. These are currently experimental features and they may not work in all cases. BBMOD CLI now also supports conversion of entire folders of models to the BBMOD format.
Changelog:
- Added new option
--export-materials
(-em
) to BBMOD CLI, using which you can enable/disable export of materials to.bbmat
files. This is an experimental feature and it is by default disabled! - Added new method
get_export_materials
to structBBMOD_DLL
, which checks whether export of materials is enabled. - Added new method
set_export_materials
to structBBMOD_DLL
, which enables/disables export of materials. - Added new option
-zup
to BBMOD_CLI, using which you can enable/disable conversion from Y-up to Z-up. This is an experimental feature an it is by default disabled! - Added new method
get_zup
to structBBMOD_DLL
, which checks whether model is converted from Y-up to Z-up. - Added new method
set_zup
to structBBMOD_DLL
, which enables/disables conversion from Y-up to Z-up. - Added new option
--enable-prefix
to BBMOD CLI, using which you can enable/disable prefixing of output files with model name. This is by default enabled for backwards compatibility. - Added new method
get_enable_prefix
to structBBMOD_DLL
, which checks whether prefixing of output files with model name is enabled. - Added new method
set_enable_prefix
to structBBMOD_DLL
, which enables/disables prefixing of output files with model name. - Fixed a bug where BBMOD CLI used directory name as the model name if it was given an output directory instead of an output filename.
- BBMOD CLI now accepts directories as an input, in which case it converts all files within the directory into the output directory.
- Added new macro
BBMOD_VFORMAT_DEFAULT_COLOR
, which is the default vertex format for static models with vertex colors. - Added new macro
BBMOD_VFORMAT_DEFAULT_COLOR_ANIMATED
, which is the default vertex format for animated models with vertex colors. - Added new macro
BBMOD_VFORMAT_DEFAULT_COLOR_BATCHED
, which is the default vertex format for dynamically batched models with vertex colors. - Added shader variations for meshes with vertex colors.
- Fixed property
BaseOpacityMultiplier
ofBBMOD_BaseMaterial
not being converted from gamma space to linear space in shaders. - Fixed docs for arguments of method
DrawDebug
of structsBBMOD_Collider
andBBMOD_Ray
(argument_alpha
was missing). - Added new property
ImportMaterials
to structBBMOD_OBJImporter
. If it is set totrue
, the importer tries to import materials from*.mtl
files. Default value isfalse
. - Added new function
bbmod_mipenable_to_string
, which converts constantsmip_off
,mip_on
andmip_markedonly
to a string. - Added new function
bbmod_mipenable_from_string
, which converts strings "mip_off", "mip_on" and "mip_markedonly" to the respective constants. - Added new function
bbmod_texfilter_to_string
, which converts constantstf_point
,tf_linear
andtf_anisotropic
to a string. - Added new function
bbmod_texfilter_from_string
, which converts strings "tf_point", "tf_linear" and "tf_anisotropic" to the respective constants. - Added new macro
BBMOD_RELEASE_MAJOR
, which is the major version number of this BBMOD release. - Added new macro
BBMOD_RELEASE_MINOR
, which is the minor version number of this BBMOD release. - Added new macro
BBMOD_RELEASE_PATCH
, which is the patch version number of this BBMOD release. - Added new macro
BBMOD_RELEASE_STRING
, which is the version of this BBMOD release as a string ("major.minor.patch" format).