Skip to content

Cubism 5 SDK for Web R2

Latest
Compare
Choose a tag to compare
@wada-at-live2d-com wada-at-live2d-com released this 19 Dec 02:30
e3c4ba1

Added

  • Add the functionality to call a function when motion playback starts.
  • Add an API to CubismMotionJson for verifying the consistency of motion3.json. by @pillowtrucker
    • This API is ported from Cubism Native Framework.

Changed

  • Change to create and manage a CubismShader for each GLRenderingContext.
  • Change the access level of the private members in CubismModelSettingJson class to protected.
  • Move JSON key strings set to the member variables of CubismModelSettingJson class.
  • Change FrequestNode to be exported as part of the module.
  • Change to permit to overwrite motion fade by the value specified in .model3.json on CubismUserModel.loadMotion().
  • Change the value of pi used in the calculation of CubismBreath.updateParameters() to Math.PI.

Deprecated

  • Deprecate the following elements because a priority value is not actually used during expression motion playback:

    • CubismExpressionMotionManager._currentPriority
    • CubismExpressionMotionManager._reservePriority
    • CubismExpressionMotionManager.startMotionPriority()
    • CubismExpressionMotionManager.getCurrentPriority()
    • CubismExpressionMotionManager.getReservePriority()
    • CubismExpressionMotionManager.setReservePriority()

    Please use the CubismMotionQueueManager.startMotion() instead of CubismExpressionMotionManager.startMotionPriority().

Fixed

  • Fix an issue where already registered keys could be added on csmMap.appendKey().
  • Fix a bug that caused an error when playing CubismExpresionMotion with CubismMotionQueueManager.startMotion().
  • Fix an issue where CubismMath.cardanoAlgorithmForBezier() was using a different function than Cubism SDK for Native.
  • Fix a potential problem with division by 0 when a pose fade time is set to 0 seconds.
  • Fix an issue where CubismPose._fadeTimeSeconds does not become 0.