davidson16807 / tectonics.js

3d plate tectonics in your web browser
http://davidson16807.github.io/tectonics.js/
Creative Commons Attribution 4.0 International
200 stars 28 forks source link

Add skybox in "Satellite" view #27

Open davidson16807 opened 6 years ago

davidson16807 commented 6 years ago

I'm writing this down as an issue so I don't forget it. Also, because it's a little unnecessary and I don't expect anyone else to request it:

Add a skybox to the "Satellite" view that displays the milky way. The skybox could rotate over time as the planet's star rotates around the galactic core. For Earth, it would rotate once every 250 million years or so.

The skybox can be augmented with a particle cloud representing nearby stars. Stars could either move at random trajectories, or possibly move at a rate dictated by the gravity simulator here: https://github.com/davidson16807/fast-multipole-method. The latter is only if I'm feeling obsessive.

This would be a great first issue for a developer, especially if they have some Three.js experience. The basic implementation is pretty straight forward. Adding skyboxes is bread and butter for game dev, and there's probably a few Three.js skybox demos out there already.

We can use the textures here for the skybox: https://forum.kerbalspaceprogram.com/index.php?/topic/78778-raredens-real-8k-skybox-for-texture-replacer/ It's using the same CC license as Tectonics.js, so we just need to give credit for it.