I'm trying to learn Three.js and one of my idea in my pet learning project, is to animate (or morph it) one 3d object to another.
I had to model from my friend in json
file. So I used the ObjectLoader
from three.js
var objectLoader = new THREE.ObjectLoader();
objectLoader.load("assets/3dobjects/object1.json", function ( obj ) {
scene.add( obj );
});
It is just the part of my code, but it is rendering the model just fine.
So if I had another json
object which I will load with the ObjectLoader
, then is there a way to animate the first object to this newly loaded object.
If my question is not clear, here is an example with svg
animation with Tweenmax. This is the effect I want to achieve.