ObjectLoader not loading textures from JSON

im having issues with the THREE.ObjectLoader() not loading the textures from a JSON I exported with the .toJSON() function of an object im my scene. Im on the newest Version of Three.js but older ones I have tested have the same behavior.

It will however work if the object was previously in the scene…


What am I missing here…

What happens when using the following approach:

const loader = new THREE.ObjectLoader();
loader.parse(objectJSON, (result) => {



Sorry, I just found out the cause is another part of my program that must be corrupting the json file. It seems to work with normal urls insted of data urls as well. Which was exactly what I was looking for.

Screen Shot 2022-10-03 at 11.43.26

I met the same issue with image buffer data. And don’t know how to fix it.