SekeNikola / ThreeJS-GLTF-loader

4 stars 7 forks source link

http://127.0.0.1:5500/3d-obj-loader/assets/scene.gltf not found #1

Closed impsdc closed 3 years ago

impsdc commented 3 years ago

I just clone the project and run it with live server and get 404 on the scene.gltf file.

impsdc commented 3 years ago

@SekeNikola there is a misunderstanding i get an error for the importation of the scene.gltf file. To reproduce my issue just clone the repo and run it with live server.

impsdc commented 3 years ago

Ok the import of scene.gltf is not working on localhost, cause of file import security. So you need to put the project in a virtual host

SekeNikola commented 3 years ago

Ok the import of scene.gltf is not working on localhost, cause of file import security. So you need to put the project in a virtual host

Sorry didn't understand a question the first time. As I wrote in readme file files has to be run in Live Server or Virtual Server.

impsdc commented 3 years ago

Live Server does not seem to work ... I think Virtual Server is the only solution

SekeNikola commented 3 years ago

Live Server does not seem to work ... I think Virtual Server is the only solution

When I say Liver Server am referencing to Live server on Visual Studio Code or on Virtual server as you mention

impsdc commented 3 years ago

Yeah i know but launching the projet with the extension Live Server on VScode does not work with me. I got the 404 not found of the scene.gltf file.

SekeNikola commented 3 years ago

Yeah i know but launching the projet with the extension Live Server on VScode does not work with me. I got the 404 not found of the scene.gltf file.

I just opened in VS Live server and its working fine??? Hmmmm interesting image