-
Notifications
You must be signed in to change notification settings - Fork 404
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
Zoom: Artifacts in scaling #305 & #18 (from the website project) #400
Comments
At zoom leave of 1.25x on a Retina display we will grab the 3x assets and downsize to 250; and on a non Retina display we will grab the 1.5 and downsize to 1.25. |
Cheers. Ill crack those open and take a look at what is going on with the aliasing in those rendered assets. Something about that top screen shot seems off to me. I swear I was enforcing snapping to pixel bounds with the vectors in the design tool. I know we could be drawing at sub pixels and that could introduce some aliasing but dang does it seems like a lot in that screen grab. |
Yeah don’t kill yourself until I get a chance to read the code. I bet we are drawing to a size -1 in float space and should draw to a size -0.5 or some such Vst3sdk pointer and bitmap arity come first tho |
I was thinking it could be something like that. macOS requires a similar approach as well. Drawing controls with Cocoa in macOS requires a half pixel transform and then a backstop of rounding to nearest pixel to keep everything crisp. Or at least it did the last time I was doing much of that type of work. TL;DR |
OK this is a deeply annoying-sh problem The way this works is it sub-samples bits of image 136 into image 137 trimming and moving it around. Since 137 has white background if that copy in is off by just a little when scaled, it blows up. So the most correct thing to do - I think - is to bump the black borders in about 1/4 pixel in the 300% image. Alternately this diff
can get us here at a 300% zoom on 300% zoom Oh and @itsmedavep it seems that arrow going into the plus is still needing vectorizification! |
Yeah or something |
Got it! That make sooo much sense. It was a 💡 moment there for me. Cool. Ill fix up now! |
With the SVG rendering this is mostly fixed, btw. So Lemme couple this to #647 |
Describe the bug
Per @baconpaul the bitmap scale and the underlying fill scale may be off at zoom levels other than 100%.
This issue references conversations going on in #305 and #18 from the website project
To Reproduce
Steps to reproduce the behavior:
Expected behavior
The grey box should be centered within the black rect.
Screenshots
If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context
Im not sure this is related but I see this as well at the same zoom level:
The aliasing in the very first screenshot is concerning to me as well. At this zoom level are we still using the 1x assets or are we grabbing 1.5x and downsizing? Im trying to work out why those vectors are aliasing they way they are in that image. Id like to fix if possible on my end. I first need to know what asset were grabbing at the zoom level to start a visual diff on the rendered file vs the one that is being drawn in the GUI.
The text was updated successfully, but these errors were encountered: