Closed JonasGilg closed 2 years ago
I tried implementing this feature, but sadly it is not as trivial as I thought, since there is a check for self shadowing, that just compares the center names here: https://github.com/cosmoscout/cosmoscout-vr/blob/develop/src/cs-core/SolarSystem.cpp#L101
Since the Ring and the planet share the same center the shadow isn't casted onto the ring.
For fun I disabled this check and this came out of it:
This doesn't look too bad after all :)
I think I have an idea how this could be fixed. Did you push your changes already?
I think I have an idea how this could be fixed. Did you push your changes already?
Yes, they are on this branch: https://github.com/cosmoscout/cosmoscout-vr/tree/feature/ring-eclipses
Sadly I accidentally branched from the more-simple-bodies
branch, so we shouldn't merge this before the other branch is merged.
I think we can close this now.
It would be nice, if rings also receive eclipse shadows.