donmccurdy / three-gltf-viewer

Drag-and-drop preview for glTF 2.0 models in WebGL using three.js.
https://gltf-viewer.donmccurdy.com/
MIT License
2.09k stars 534 forks source link

drug and drop downloads files #292

Closed mliris closed 2 years ago

mliris commented 2 years ago

Hi, I really like your project and it is exactly what I need, but drug/drop by me just downloads files to my client instead of displaying it. What did I miss? I have linux server with appache

donmccurdy commented 2 years ago

It sounds like the JavaScript did not load, you'll need to make sure that is built and deployed correctly. My build steps are described in README.md and package.json, for example:

# install dependencies

# local development
npm run dev

# production build
npm run build

Once you've built the files you can push them to whatever static server you need.