I am using Object Loader to load JSON file exported from blender. I am sourcing the latest build of three.js in all of my codes. But since the last 5 days the loader seems to throw an error which I never encountered. And if I use an older build it works perfectly.
THREE.JSONLoader was removed with the latest release R99. Hence, it’s not possible to use THREE.ObjectLoader in order to load geometry data of type THREE.Geoemtry anymore.
There is a fallback solution. If you include the following file, it should be possible to use THREE.ObjectLoader as before:
However, you should not use the Blender JSON exporter anymore. It’s very important that you switch to better solutions. three.js recommends to use the glTF 3D format. There are glTF exporters for Blender and a respective GLTFLoader. More information right here:
Hi, I am having the same issue where my json file cannot be loaded. I tried including the file above but it still not working. Any help would be appreciated. Thanks