How do I handle animated models in Three.js?

前端 未结 2 725
栀梦
栀梦 2021-02-06 07:59

I have a basic question about Three.js. I\'ve googled but didn\'t find anything useful... How do I handle animated models in Three.js? I know how to import .js files, and I have

相关标签:
2条回答
  • 2021-02-06 08:29

    There are plenty of examples in the three.js sources. You can also view them online, e.g.

    • http://threejs.org/examples/webgl_morphnormals.html
    • http://threejs.org/examples/webgl_morphtargets_horse.html

    There's also another style of animation, called skeleton animation or "skinning". However, if you found 250 frames of morphs, then you don't need to worry about it at this point, but it's good to be aware of it. Blender can export both - morphs are more foolproof but skinning takes less space.

    0 讨论(0)
  • 2021-02-06 08:37

    I found this one example pretty useful for game dev:

    https://threejs.org/examples/webgl_animation_skinning_blending.html

    0 讨论(0)
提交回复
热议问题