Hi, We really appreciate the clarification made as we found the issue not very intuitive (comparing the resources to local css and .js files). We tested accessing the examples through a local XAMPP installation and everything worked as expected. The same *suzanne.html* file that we reported to fail can be seen successfully loaded from localhost in the image *Model_loaded.png*. Best regards, 2014-11-04 10:48 GMT+00:00 Philipp Slusallek <philipp.slusallek at dfki.de>: > Hi, > > This is an expected behaviour of XML3D because of the CORS (Cross-Origin > Ressource Sharing) handling in browsers. The browser refuses to access > other local files referenced from a local HTML page because of security > reasons. > > This can only be dealt with by going through a Web browser, where the > browser adds the necessary HTML CORS-headers (which impossible with > local files). > > Just to clear: The installation manual never suggests to locally copy > and run the examples. And this behaviour is documented for XML3D. > > But we will check again and may make sure this more prominently visible > in the installation manual to avoid similar user errors in the future. > > BTW, this still is ticket HELP-1003 right now. > > Best, > > Philipp > > > Am 04.11.2014 um 10:17 schrieb Fi-ware ULPGC: > > Description: > > > > When we git clone the examples repository indicated above and run locally > > the page ‘suzanne.html’, the model isn’t loaded and we receive the > error > > "Could not load external document > > > 'file:/C:/Users/Alejandro/Desktop/TaskForce/3D-UI-XML3D/xml3d-examples/examples/suzanne/./suzanne.json': > > 0 - ". > > > > This happens with any example we try to test locally. The expected output > > can be seen in the image XML3D_doesn’t_load_json_resources_1.png, as > it is > > ran from the online demo page. The error can be seen in the image > > XML3D_doesn’t_load_json_resources_2.png. > > > > > > Link: > > > http://forge.fi-ware.org/plugins/mediawiki/wiki/fiware/index.php/3D-UI_-_XML3D_-_User_and_Programmers_Guide > > > > Web Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:33.0) Gecko/20100101 > > Firefox/33.0 > > GitHub repository: https://github.com/xml3d/xml3d-examples > > Online Demo: > > http://xml3d.github.io/xml3d-examples/examples/suzanne/suzanne.html > > > > > > > > _______________________________________________ > > Fiware-tech-help mailing list > > Fiware-tech-help at lists.fi-ware.org > > https://lists.fi-ware.org/listinfo/fiware-tech-help > > > > > -- > > ------------------------------------------------------------------------- > Deutsches Forschungszentrum für Künstliche Intelligenz (DFKI) GmbH > Trippstadter Strasse 122, D-67663 Kaiserslautern > > Geschäftsführung: > Prof. Dr. Dr. h.c. mult. Wolfgang Wahlster (Vorsitzender) > Dr. Walter Olthoff > Vorsitzender des Aufsichtsrats: > Prof. Dr. h.c. Hans A. Aukes > > Sitz der Gesellschaft: Kaiserslautern (HRB 2313) > USt-Id.Nr.: DE 148646973, Steuernummer: 19/673/0060/3 > --------------------------------------------------------------------------- > -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20141104/f110321a/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: Model_loaded.png Type: image/png Size: 147001 bytes Desc: not available URL: <https://lists.fiware.org/private/fiware-tech-help/attachments/20141104/f110321a/attachment.png>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy