Exploring Three.js for the first time and struggling with importing a .json model obtained from Clara.io
For instance, I have downloaded this model: However, I can't seem to understand how to embed it into an HTML file. :(
I attempted the following:
loader = new (THREE.JSONLoader)
loader.load 'modules/squirtle-pokemon-go.json', (geometry, materials) ->
material = new (THREE.MultiMaterial)(materials)
object = new (THREE.Mesh)(geometry, material)
scene.add object
return
Any assistance would be greatly appreciated.