Three.js keyframe animation

冷暖自知 提交于 2019-12-08 05:57:34

问题


this is my first post and I need an answer I didn't find anywhere else. Oh and btw I am not a professional programmer, actually more like a 3d graphic designer ;) I would like to import json models with a simple animations ( just translation e rotation ) made in 3ds max. I just found examples about skinned meshes and bone animations, but that's far from what I want.

I simply need three.js to load and play a keyframe animation when I press a button. Can someone help me find a solution?

Thanks everybody in advance, Andrea.


回答1:


You can start with this example Import Collada to THREEJS Press "View Source" and look at model path and Animations script usage.




回答2:


You could try to replicate the animation using Tween.JS, which is a library that is used in one of Three.js examples.

If you're interested using this technique, there is also an in-depth tutorial combining the two.



来源:https://stackoverflow.com/questions/41664406/three-js-keyframe-animation

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!