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.
You can start with this example Import Collada to THREEJS Press "View Source" and look at model path and Animations script usage.
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