kalwalt / kalwalt-interactivity-AR

Some various experiments with Ar.js and Three.js
https://kalwalt.github.io/kalwalt-interactivity-AR/
GNU Lesser General Public License v3.0
78 stars 11 forks source link

Can't run NFT examples locally #1

Closed SystemDiagnosticss closed 4 years ago

SystemDiagnosticss commented 4 years ago

Hello. That's amazing work. Your examles work on glitch but don't work locally.

I have two errors in console:

1) nft_threads_duck.html:1 Access to XMLHttpRequest at 'file:///home/fulltimerobotics/Desktop/kalwalt-interactivity-AR-master/resources/data/camera_para-iPhone%205%20rear%20640x480%201.0m.dat' from origin 'null' has been blocked by CORS policy: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https.

2) resources/data/camera_para-iPhone%205%20rear%20640x480%201.0m.dat:1 Failed to load resource: net::ERR_FAILED

Also video streaming can't start. Any idea?

kalwalt commented 4 years ago

@SystemDiagnosticss i didn't try with a local server, because i would share with other people to test the new threaded version, but are you sure that you run it with a server? Reading the first error seems like you didn't run a server. I will check but i wolud know the performances with the example and with which devices are you testing it.

kalwalt commented 4 years ago

It works for me with a python server, try in a console to run:

python -m SimpleHTTPServer

Anyway i have to fix some small things.

SystemDiagnosticss commented 4 years ago

Thaks, bro. It's work !!!