I am new to three.js and I am trying to load an object which rendered from blender in json format but it says
Uncaught SyntaxError: Unexpected token { in ObjectLoader.js:1
and also another error
Uncaught TypeError: Cannot read property 'type' of undefined
at ff.parseObject (three.min.js:755)
at ff.parse (three.min.js:745)
at Object.onLoad (three.min.js:744)
at XMLHttpRequest. (three.min.js:650)
Mugen, I am trying to upload a file in this forum but it says I am a new user I cannot upload a file. Actually I checked threejs.org document and loading 3d object using ObjectLoader because the format file is in json format and the object I rendered from blender using threejs add on is in json format, that is why I used ObjectLoader but it shows error.
I don’t think there’s any need to be so strict on new users adding files - I’ve changed the settings, @Sreypich_Phan you should be able to attach files now.
I’m getting the Uncaught SyntaxError: Unexpected token { error as well on ObjectLoader.js:1 as well. I tried switching to JSONLoader.js and get the same error as well as an error telling me I should be using ObjectLoader.js.
Yes, latest three.js version. Pulled the model from https://clara.io/library and selected three.js as the version to download. Will use that tester in a bit.