-
-
Notifications
You must be signed in to change notification settings - Fork 792
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
Always use texture-based text rendering in StelPainter #3343
Conversation
Great PR! Please pay attention to the following items before merging: Files matching
This is an automatically generated QA checklist based on modified files. |
The |
Not my fault, it's similarly ugly in |
As far as I remember |
It was for RPi, and the aliasing was intended. As for the wrong placement of the panel (not sure if you see it too), I suspect it might have been broken by #3125. |
Yes, I added -t for the early OpenGLES driver on RPi (2016), based on Guillaume's 0.12/Qt4(?) workaround for bad PC OpenGL drivers. Aliasing was not intended but accepted as irrelevant side aspect of a then otherwise working solution. |
But in this case we can remove support -t mode |
So, should we do it now? |
I think yes. @gzotti? |
I hope I can test with RPi3&4 later tonight. |
What is ugly or broken with -t in master? |
Ok, looks like the older composition/layout of that status line. It still works, but just looks less perfect than the reworked solution. I may have not cared, given the lack of actual necessity of the -t option. |
What if you run with |
So, except for Windows, everything looks OK, right? |
Try following this post and getting rid of the command line addition. |
Ah, thanks. It seems that the command line parsing of a comma-separated list of options So, what works is a file qt.conf right next to the .exe which contains:
This means:
|
The +SEP and +SCP items look different in your two windows. Is there a good explanation, or is it a bug in this PR? |
Uh, yes. Apps are RemoteSync'ed. No explanation, looks like a bug. |
Please check 186febd |
What do these +SEP and +SCP represent? How do I enable them? |
SCP = South Celestial Pole; SEP = South Ecliptic Pole Please check poles in Markings tab |
I have them, and from the code I see that the cross is rendered as a sprite, so this shouldn't be related to this PR. @gzotti Do you reproduce this lack of the crosses in |
This will let us control gamma correction by editing a shader when we convert our rendering pipeline to linear colors. We can't do this when using QOpenGLPaintDevice. Text rendering quality doesn't change. From my observations via apitrace, QOpenGLPaintDevice does basically the same, even for rotated text: just renders textured quads with the texture containing text.
Crosses are fine in master. But I still have the flood of
|
For what it's worth, crosses now also show in this PR. |
Would be useful if you could find the point where this error occurs (e.g. via apitrace).
OK, is it OK to merge then? @alex-w has pushed the changes to |
Error 1281 should not be happening after rebasing |
Can qt.conf also be created in the temporary build directory? I usually run a test build from there, without installation. Currently I need to create this manually. |
Where do you see this error? |
The 1281 is in master, not in this PR. This seems OK to merge. We could however really remove the -t option (including SUG deletions). |
OK, will do it separately. |
It's possible, but I can't do the solution right now - after 2 weeks only. Please fill separate report for this issue for memory. |
Hello @10110111! Please check the fresh version (development snapshot) of Stellarium: |
Hello @10110111! Please check the latest stable version of Stellarium: |
This will let us control gamma correction by simply changing texture format when we convert our rendering pipeline to linear colors. We can't do this when using QOpenGLPaintDevice.
Text rendering quality doesn't change. From my observations via apitrace, QOpenGLPaintDevice does basically the same, even for rotated text: just renders textured quads with the texture containing text.
A side effect is a small performance improvement when the scene has a lot of text.
The
-t
mode now only disables antialiasing inStelPainter::drawText
, and also does something for the GUI, which I didn't change.Also, this PR will make #3003 obsolete and, possibly, fix the cause of it.
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: