jeyoder / StuffInSpace

A real-time interactive WebGL visualisation of objects in Earth orbit
http://stuffin.space
817 stars 153 forks source link

Creating my own satellite group? #23

Open MikeArsenault1 opened 5 years ago

MikeArsenault1 commented 5 years ago

Wondering if it is possible to implement the capability to create my own group of satellites to view with and without debris.

Tks for considering.

ajmas commented 5 years ago

You want to simply be able to toggle between which category of objects are being displayed?

thkruz commented 5 years ago

I approached this by creating a UI menu that dynamically changes the values inside color-scheme.js so that, for example, when debris is selected rocket bodies and payloads are transparent. It is not the most efficient method (sat-cruncher.js waste's time crunching objects that aren't visible), but it is super easy to implement.

If you wanted to make your own group for specific satellites, just follow the format in groups.js and then add a new option to the list in the UI (again just copy the format).