I’m new to three.js and am using it in a nw.js app to render a skinned mesh. I’ve successfully imported the .json mesh and bones with three.js, and can draw the mesh using CanvasRenderer.
I am manipulating bone rotation using
mesh.skeleton.bones[ x ] and this works if I use WebGLRenderer but not if I use CanvasRenderer. CanvasRenderer draws the mesh (and I can rotate the entire mesh using mesh.rotation) but it does not follow the skeleton if I change the rotation of a single bone. I tried forcing an update using
mesh.skeleton.update() as I noted in the docs that it’s called in the WebGLRenderer:
.update () Updates the boneMatrices and boneTexture after changing the bones.This is called automatically by the WebGLRenderer if the skeleton is used with a SkinnedMesh.
I presume this is a limitation of CanvasRenderer and not a bug?
Any insight would be appreciated. Thanks.