Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Orbit color and selection improvements #3878

Merged
merged 2 commits into from
Sep 8, 2024
Merged

Conversation

gzotti
Copy link
Member

@gzotti gzotti commented Sep 4, 2024

Description

In light of other upcoming changes and a potentially interesting comet, I see need for two improvements:

  • In the orbit color selection, you can so far draw planet orbits in distinct colors, while all other objects are drawn in a single other color. Alternatively, you can draw orbits in color per planet subtype. This branch adds the option to draw planet orbits in distinct colors and those of the minor bodies per planet subtype.

  • Currently you can draw either all orbits, only major planet orbits, or only that of the selected object. This was result of a long development of added flags and settings, and TBH already on the brink of maintainability. Now, it was not possible to show e.g. a view from Solar System Observer where you can see the planet orbits combined with the orbit of a single selected comet. I have added another checkbox for planet orbits.

This may again not be the best interface when you can select "Major planets" and "Only major planets". etc., and there is a quirk as the default orbit display without selection is "all orbits". When you now select "Major Planets" but deselect "with moons", moon orbits are still seen. Maybe the whole selection should be re-done, and e.g. allow Major planets plus 1...n last selected objects (like trails). This way you could enable e.g. 5 interesting comet orbits while having thousands loaded. Hmm, or even allow loading from a list of minor bodies, permanently, in a separate GUI list.

Fixes #3849 (issue)

Screenshots (if appropriate):

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • This change requires a documentation update
  • Housekeeping

How Has This Been Tested?

Test Configuration:

  • Operating system: Win11
  • Graphics Card: Geforce 3070Ti (irrelevant)

Checklist:

  • My code follows the code style of this project.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation (header file)
  • I have updated the respective chapter in the Stellarium User Guide
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

Allow to draw planet orbits together with orbit of selected object
@gzotti gzotti added enhancement Improve existing functionality importance: high Obvious error, very annoying, but no crash labels Sep 4, 2024
@gzotti gzotti added this to the 24.3 milestone Sep 4, 2024
@gzotti gzotti self-assigned this Sep 4, 2024
Copy link

github-actions bot commented Sep 4, 2024

Great PR! Please pay attention to the following items before merging:

Files matching src/**/*.cpp:

  • Are possibly unused includes removed?

This is an automatically generated QA checklist based on modified files.

@Atque
Copy link
Contributor

Atque commented Sep 4, 2024

and e.g. allow Major planets plus 1...n last selected objects (like trails). This way you could enable e.g. 5 interesting comet orbits while having thousands loaded.

This would be highly appreciated. Also, I think the orbit of the selected object should be visible even when the object is too faint.

@gzotti
Copy link
Member Author

gzotti commented Sep 4, 2024

Yes, this is a hot topic. I am in favour of allowing to select dim objects' orbits (just like the icon-like rings in the threaded branch, they can easily reach mag 30 and less), but would rather keep orbits beyond orbit_good off. This would avoid a flood of comet orbits sourced from the 1000 comets file, when they are only relevant for 5 years or so. But there will always be wishes for special cases, like "show orbit of P1/Halley for 1910, 1986 and 2063." Sigh, not now please.

@gzotti gzotti marked this pull request as ready for review September 7, 2024 20:42
@gzotti
Copy link
Member Author

gzotti commented Sep 7, 2024

@alex-w, @10110111 I could need some feedback. The current solution is what we had plus a not very elegant planet orbit override. It should be enough for 24.3 IMHO.

Of course this could be improved, but only in 24.4 or later. We could have a series of checkboxes: Planets [with moons]/Comets/Asteroids/SDO, Centaurs and KBO or whatever division seems usable. And an option "Selection", where a (permanent) selection of favourite objects (extra GUI dialog with list of minor bodies (no planets, no moons)) could be created.

@alex-w
Copy link
Member

alex-w commented Sep 8, 2024

It's OK for me at the moment

@gzotti gzotti merged commit d010958 into master Sep 8, 2024
29 of 31 checks passed
@gzotti gzotti deleted the improve-orbit-selections branch September 8, 2024 13:43
@gzotti
Copy link
Member Author

gzotti commented Sep 8, 2024

The idea of permanent favourite object selection for orbit drawing is not forgotten. Hopefully in 24.4.

@alex-w alex-w added the state: published The fix has been published for testing in weekly binary package label Sep 8, 2024
Copy link

github-actions bot commented Sep 8, 2024

Hello @gzotti!

Please check the fresh version (development snapshot) of Stellarium:
https://github.com/Stellarium/stellarium-data/releases/tag/weekly-snapshot

@alex-w alex-w removed the state: published The fix has been published for testing in weekly binary package label Sep 22, 2024
Copy link

Hello @gzotti!

Please check the latest stable version of Stellarium:
https://github.com/Stellarium/stellarium/releases/latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improve existing functionality importance: high Obvious error, very annoying, but no crash
Development

Successfully merging this pull request may close these issues.

Orbit mode "Planets plus selected"
3 participants