easyw / vrm360

webgl vrml 3d model viewer w/ three.js
21 stars 9 forks source link

Question: how to use it locally? #1

Closed set-soft closed 3 years ago

set-soft commented 3 years ago

This is very nice! I tried:

Without problems, but if I try it using the files from git (in my machine) it doesn't work. How can I make it work locally? I.e.:

$ git clone https://github.com/easyw/vrm360.git
$ cd vrm360
$ x-www-browser index.html
Pablo2048 commented 3 years ago

Hi, if you take a look into developer console, you can see that it's CORS problem - ( see https://threejs.org/docs/index.html#manual/en/introduction/How-to-run-things-locally ) . Try to run it from local server (`php -S localhost:8000' and then point your browser to http://localhost:8000 )...

set-soft commented 3 years ago

Thanks @Pablo2048 ! I used the Python alternative:

$ python3 -m http.server

And worked perfectly

Pablo2048 commented 3 years ago

You are welcome :-) I'm proud user of KiBot, so I'm pretty curious when Kibot support exporting VRML model for vrm360 :D ...