Skip to content

The Globe from Github's homepage implemented in ThreeJS with beautiful shading.

License

Notifications You must be signed in to change notification settings

superdev-kingD/github-globe

This branch is up to date with janarosmonaliev/github-globe:main.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
Zhanarbek Osmonaliev
Dec 23, 2021
e81d307 · Dec 23, 2021

History

35 Commits
Jan 17, 2021
Jan 30, 2021
Dec 23, 2021
Jan 16, 2021
Jan 30, 2021
Jan 16, 2021
Jan 31, 2021
Jan 16, 2021
Dec 23, 2021
Aug 10, 2021
Dec 23, 2021
Aug 27, 2021
Aug 27, 2021
Jan 29, 2021
Jan 16, 2021

Repository files navigation

Github Globe

github-globe made by Zhanar Osmonaliev

Inspiration

This project was inspired by Github's homepage, where they display real-time Github activity on a globe map.

Implementation

The globe is constructed with three-globe, a ThreeJS data-visualization project made by @vasturiano. Then, the scene is shaded with a dim ambient light and multiple directional lights to resemble a dreamy space environment. The globe's MeshPhongMaterial is also adjusted to fit the environment.

All my attended/cancelled flights (2019-2020) are displayed on the globe. If you try to follow one arc, that would be the sequence of my travel destinations. Red arcs are cancelled flights.

Documentation

Please visit three-globe for detailed documentation if you want to edit the Globe object to add data visualization. Speaking of the Glow, three-globe does not let you access the glow mesh object yet, so the default glow was turned off and a separate three-glow-mesh is added to the scene instead.

Usage

This project is bundled with Webpack:

"build": "webpack --config=webpack.prod.js",
"build-dev": "webpack --config=webpack.dev.js",
"start": "webpack serve webpack-dev-server --open --config=webpack.dev.js"

Details:

npm start        # development build in ./dist
npm run build    # static production build in ./

License

MIT

About

The Globe from Github's homepage implemented in ThreeJS with beautiful shading.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.9%
  • HTML 4.1%