I have done a couple of projects on Blender and decided to display one of them using threejs, however the object doesn't display. What would be the proper way to load a JSON file with keyframe animation?
Here is the specific JSON file that I want to load
and the extract of the code that I'm using:
var mesh;
function initMesh() {
var loader = new THREE.JSONLoader();
loader.load('./ocean.json', function(geometry, materials) {
mesh = new THREE.Mesh(geometry, new THREE.MeshFaceMaterial(materials));
mesh.scale.x = 0.75;
mesh.scale.y = 1;
mesh.scale.z = 0.75;
scene.add(mesh);
}, undefined, function (e) {console.log('ERROR: ',e )});