Closed LudvigHaav closed 6 years ago
@LudvigHaav I tried to open one your json files in Spectacles viewer and here is the error that I get:
XMLHttpRequest cannot load http://privat.bahnhof.se/wb172264/designexplorer/threeD/S00101525000025151005251588888888.json.
No 'Access-Control-Allow-Origin' header is present on the requested resource.
Origin 'http://core.thorntontomasetti.com' is therefore not allowed access.
SPECTACLES.js:495 Spectacles could not get a json file from the URL you provided
- this is probably a security thing on the json file host's end.
You should submit this issue in Spectacles web viewer repository.
I think it's happening because files are uploaded to a http and not a https and Spectacles only supports secure URLs. @anagpuyol, @bhowes-tt can you confirm?
@LudvigHaav only certain webservers will allow access to resources (like your json files) when they are requested from another domain, and they have to be configured to do so. You can set up an Amazon S3 bucket to allow this type of access, for example.
@mostaphaRoudsari I have found a method to fix this problem by using the same google drive. I will make a tutorial video soon.
@MingboPeng of course you did! :) I'm looking forward to your video.
Hi again,
Im having trouble getting my JSON files to read inside Design Explorer. It freezes in the stage shown in the screenshot below.
I have made sure that the files work fine in the spectacles web viewer.
I have tried to make the geometries i use for testing this as dead simple as i can. The .Jsons are located here: http://privat.bahnhof.se/wb172264/designexplorer/threeD/
I made them using this setup shown below, with and without a saved view:
My .csv file is attached below as a .txt. three.txt
What could be causing this? Any ideas are much appreciated! :)