Hi,
I'm trying to add the possibility to add a background image in the drag'n'drop example.
Problem is that the image.splats.url is created with:
var fileURL = URL.createObjectURL(file);
var bloburl_with_filename = fileURL + "#" + file.name;
so when trying to add a image.preview and reloading :
targetkrpano1.image.reset("copy");
targetkrpano1.call("set(image.objectsize, 0)");
targetkrpano1.call("set(image.preview.type, SPHERE)");
targetkrpano1.call("set(image.preview.url, '" + imageDataUrl + "')");
targetkrpano1.actions.loadpanoimage("KEEP3D|IMAGEONLY");
targetkrpano1.view.reset();
It returns :
ERROR: loading of 'my_splat.ply' failed! Failed to fetch
any clue on solving this ?
Many thanx