Hey im building a JSON to GLTF Converter for my project. We want to switch from .json format to gltf 2.0. I tried the LegacyJSONLoader, which throws the error:
JSONLoader "path to file" should be loaded with THREE.ObjectLoader instead.
Using the ObjectLoader.js all my models are black and throws:
Uncaught SyntaxError: Unexpected token { at line: 1 of ObjectLoader.js
If you include LegacyJSONLoader into your application, the mentioned errors of your first post should not appear when you load the file with THREE.ObjectLoader. However, I’m not sure the visual output is correct:
Mhh, still getting those errors, but its not appearing black anymore. Im applying the textures back again via code, but i want them embedded. This may be a clara.io problem
The result is not correct, textures/colors are not applied.
And is this flatShading = false? Everything looks so rounded. This happens with most of my models when no flatshading is applied. Was wondering where this is coming from before. Could you explain that?