three.js - gpu crash mixing bones animation and multimaterial -
i have .json model object has 2 face materials, animated using bones.
i use jsonloader, , @ first created mesh this:
loader.load(url, function (geometry, materials) { var mesh = new three.skinnedmesh(geometry, new three.multimaterial(materials)); mesh.material.skinning = true; // rest of animation setup mixer , such
it didn't crash, mesh not animated. guessed had set skinning = true
in each material. when so, hell breaks loose, gpu crashes , computer freezes this:
if instead of multimaterial create mesh 'single' material, animation looks fine, animation code not wrong, must happen mixing bone animation , multimaterials.. clues?
Comments
Post a Comment