-2

I got a code from web, but this code do not run, I need some HTML code to make it RUN in my browser, someone can help ?

The original code I take from this website (github repository)

http://blog.thematicmapping.org/2013/09/creating-webgl-earth-with-threejs.html

Github code repository

https://github.com/turban/webgl-earth

gman
  • 100,619
  • 31
  • 269
  • 393
Glauber Felix
  • 21
  • 1
  • 7
  • I downloaded the code from github. It appears to work fine. Is your web console showing any errors? – msun Sep 13 '16 at 22:58
  • I executed index.html, but just a light, not the planet, and a black behind – Glauber Felix Sep 13 '16 at 23:07
  • 2
    Hit F12, look for errors, it's probably failing to load resources because you're not serving files off a webserver. – Leeft Sep 13 '16 at 23:27

1 Answers1

1

To use WebGL you should run a web server. It will take you about 30 seconds.

Here's 4-5 options

Never disable security in your browser

gman
  • 100,619
  • 31
  • 269
  • 393
  • Fair enough, although it took 90 seconds :P But yea, I should downvote myself for that one. Redacted. – msun Sep 14 '16 at 02:43