Open mauropesce opened 10 years ago
Do you have an example sketch that you could reference?
Usually you have to add lights, models, and environment to your scene and then render the scene.
Yep, this one http://threejsplaygnd.brangerbriz.net/s/?id=815
And this is how it looks on the GUI
it's all there, you just have to change the position of ur camera ( by default the editor looks at ur object head on ) >> here's an example: http://threejsplaygnd.brangerbriz.net/s/?id=818
i just added this to the draw function:
camera.lookAt(mesh.position);
camera.position.x = Math.sin( Date.now() * 0.002 ) * 50;
camera.position.y = Math.sin( Date.now() * 0.002 ) * 50 + 100;
...thats all code found in the snippets menu :)
Great, thanks! Just now I started playing with camera and animation http://threejsplaygnd.brangerbriz.net/s/?id=819
How to do this? Do I need to tweak the given code to make it work on the final animation? I spent some time looking other archives but didn't see anything helpful.
Thanks.