tt-acm / DesignExplorer

Design Explorer is an open source web interface for exploring multi-dimensional design spaces
http://tt-acm.github.io/DesignExplorer/
MIT License
100 stars 60 forks source link

User question; JSON files not loading #73

Closed LudvigHaav closed 6 years ago

LudvigHaav commented 8 years ago

Hi again,

Im having trouble getting my JSON files to read inside Design Explorer. It freezes in the stage shown in the screenshot below. skarmavbild 2016-06-03 kl 00 41 03

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: skarmavbild 2016-06-03 kl 01 13 36

My .csv file is attached below as a .txt. three.txt

What could be causing this? Any ideas are much appreciated! :)

mostaphaRoudsari commented 8 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?

bhowes-tt commented 8 years ago

@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.

MingboPeng commented 8 years ago

@mostaphaRoudsari I have found a method to fix this problem by using the same google drive. I will make a tutorial video soon.

mostaphaRoudsari commented 8 years ago

@MingboPeng of course you did! :) I'm looking forward to your video.