Changes
-
rename
MmdXXXAnimationGrouptoMmdXXXAnimationContainer- rename
MmdCameraAnimationGrouptoMmdCameraAnimationContainer - rename
MmdModelAnimationGrouptoMmdModelAnimationContainer - rename
MmdRuntimeCameraAnimationGrouptoMmdRuntimeCameraAnimationContainer - rename
MmdRuntimeModelAnimationGrouptoMmdRuntimeModelAnimationContainer
- rename
-
change
MmdModelLoaderdefault material builder to null for better tree shaking- you can pass
IMmdMaterialBuilderimplementation to mmdModel model loader options to build materials - or you can import
babylon-mmd/esm/Loader/mmdModelLoader.default.tsto register defaultMmdStandardMaterialBuilderas shared material builder
- you can pass
-
add multiple MMD camera support
- you can add multiple
IMmdCameratoMmdRuntime MmdRuntime.setCamerais no longer available, instead useMmdRuntime.addAnimatableto add a new camera
- you can add multiple
-
remove
NullMaterialProxy -
change default value of
IMmdModelCreationOptions.materialProxyConstructorto null- you must pass
MmdStandardMaterialProxyorStandardMaterialProxytoIMmdModelCreationOptions.materialProxyConstructorto use material morphing features
- you must pass
-
change camera animation binding api (applied to
MmdCameraandIMmdCamera)MmdCamera.addAnimation,MmdCamera.removeAnimation,MmdCamera.setAnimationare removed- use
MmdCamera.createRuntimeAnimationto create a new animation andMmdCamera.setRuntimeAnimationto set the animation MmdCamera.createRuntimeAnimationreturnsMmdRuntimeAnimationHandlewhich can be used to manage the animationMmdCamera.runtimeAnimationsis now aReadonlyMap<MmdRuntimeAnimationHandle, RuntimeModelAnimation>instead of an array
-
change model animation binding api (applied to
MmdModelandMmdWasmModel)MmdModel.addAnimation,MmdModel.removeAnimation,MmdModel.setAnimationare removed- use
MmdModel.createRuntimeAnimationto create a new animation andMmdModel.setRuntimeAnimationto set the animation MmdModel.createRuntimeAnimationreturnsMmdRuntimeAnimationHandlewhich can be used to manage the animationMmdModel.runtimeAnimationsis now aReadonlyMap<MmdRuntimeAnimationHandle, RuntimeModelAnimation>instead of an array
-
introduce
IMmdModelCreationOptions.trimMetadataoption to disable metadata trimming- this is useful when you want to re initialize the model with the same metadata
-
fix crash when destroying
MmdModelinstances initialized withMmdBulletPhysics -
fix state invalidation when set audio player which is playing to
MmdRuntime -
fix
PmxLoader,PmdLoadercrash when load model with no meshes -
fix crash when evaluating texture alpha on model with no submeshes