niels747 / 2D-Weather-Sandbox

Two-dimensional, realtime, interactive simulation of earth's troposphere.
https://niels747.github.io/2D-Weather-Sandbox/
GNU General Public License v3.0
86 stars 31 forks source link

trying to run simulator from github source code #19

Closed Westerstaad closed 2 years ago

Westerstaad commented 2 years ago

Whenever I run the index.html with my browser, I try to start a simulation and it get stuck on "Setting up WebGL" Do you know why it does this? image

niels747 commented 2 years ago

Open the console (F12) and show me the error you're getting. Also tell me your system specs and browser.

Westerstaad commented 2 years ago

Windows 10 Pro NVIDIA Quadro K4200 I5-7500K 8 gigs of ram Opera image

niels747 commented 2 years ago

Now I get what you are trying to do. JavaScript can't query for local files. This would be a serious breach of security. Thats why you can't just run it from index.html. You have to host it locally using a server. The easiest way (I use this) is to use VS code with the live server extension. It's really easy to install.

Westerstaad commented 2 years ago

Thanks, it works now.