I've been working on some cool projects in Blender and wanted to showcase one using threejs. However, I'm facing an issue where the object isn't displaying properly. Can someone guide me on how to correctly load a JSON file with keyframe animation?
I have the specific JSON file here that I need help loading.
Below is an excerpt of the code that I am currently 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)});
}