Add support for anisotropic filtering of StelTexture#2881
Conversation
|
Great PR! Please pay attention to the following items before merging: Files matching
Files matching
This is an automatically generated QA checklist based on modified files |
|
Looks great! My main system is broken, hopefully I can test Qt5/ANGLE and RPi4 later this week. |
|
Looks good! I'll check it in macOS tonight |
|
Whoa, looks great! Now it would make sense to fix #1959, using a stencil mask. Uh, is the 1.6fps vs 18.8fps a consequence? |
Yes, as I said, it's a WIP. I hope to make it faster with further development.
It's fully detailed and done via brute force (6×106 vertices in total). Maybe it could make sense to only detalize the libration zone, but currently I'm experimenting with full selenoid. In any case the full selenoid should remain an option, because we don't only watch the Moon from the Earth, and are not even limited to the neighborhood of the ecliptic. |
|
Yes, alright. So, probably 3 options: sphere / Selenoid (libration zone) / Selenoid (full). |
|
@alex-w there's no change in your second screenshot. Have you enabled anisotropic filtering (see the guide)? |
You're right, it was disabled. |
|
Well, it doesn't look like enabled. Is |
Code: |
|
This warning should be given only once (add a Boolean flag to remember...) |
It should be done at the compilation time, since the check is via preprocessor. |
7c7abcb to
986f2dc
Compare
|
@alex-w Please retest with the updated version. |
|
|
Post the new log please. |
|
Strange. Please post the log with |
986f2dc to
3887de9
Compare
|
Please retry with the new version, and post the log. |
In the log: |
3887de9 to
515f404
Compare
|
That was my mistake, I swapped the values of the enums. Please retry with the updated version. |
|
Yeah, that's much better. |
94aa212 to
181f04e
Compare
|
Quick update on Win10/MESA: does not start :-( I may try to build Mesa22 on Windows, but cannot promise anything for 1.2. |
From the log it seems you have something broken that is not related to this PR. |
|
Indeed. Master is broken with Win10/Mesa mode. :-( |
|
It all works with Qt5.12.8. Also Mesa. |
|
Works on RPi4 as well! |
gzotti
left a comment
There was a problem hiding this comment.
It works (and looks better) or does at least not show issues on all my systems.
|
Does it mean that we can set the default anisotropy to 16? |
|
I tried 8 on my RPi4. What happens if it is set to higher? I think you clamp it with the max possible value, right? |
Image quality is improved :) Well, unless it's over the limit, in which case we just set the maximum value.
Yes. |
|
Then yes, we can IMO set it to 16 as default. |
181f04e to
825437c
Compare
|
Hello @10110111! Please check the fresh version (development snapshot) of Stellarium: |
|
Hello @10110111! Please check the latest stable version of Stellarium: |













Description
Highly detailed surfaces of planet-like objects, e.g. the Moon, suffer from over-blurring of the limbs due to isotropic mip mapping. This patch adds an option to use anisotropic filtering.
The default state is off. It might be OK to enable by default, since I haven't seen a GPU that suffers from performance drops with it, but this needs testing with e.g. software rendering or ANGLE.
Screenshots:
Default (anisotropy disabled):
Anisotropy 16×:
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: