Runs static HTML assets only
WebGL Globe is a cloud-enabled (via the cloud bump map :P), mobile-ready (if you want), earth-powered HTML5/THREE.JS app.
- jQuery
- three.js
- HTML5
- Materialize-CSS
Ensure you have the following installed:
Use git to clone the repository:
git clone https://github.com/galactic-plane/webgl-globe.git
In the webgl-globe directory run:
$ npm install
$ nodemon app.js
Using the vivaldi browser (replace with your browser of choice)
$ docker pull dayafter/webgl-globe:latest
$ docker run -dp 3000:3000 dayafter/webgl-globe
$ vivaldi localhost:3000
let container = document.getElementById('globe');
let globeObj = new DAT.Globe(container);
// Random line color
let color = new THREE.Color(0xffffff);
color.setHex(Math.random() * 0xffffff);
globeObj.lineColor(color);
// Set particle color
globeObj.particleColor(0x01001f);
// Starting point
let originate = [];
originate.push(35.1380556);
originate.push(-79.0075);
// Ending points
let marks = [];
marks[0] = [];
marks[0][0] = 39.445723;
marks[0][1] = -123.8052935;
Pull requests are welcome. My journey for learning never ends, so I look forward to your insights. For major changes, please open an issue first to discuss what you would like to change.