You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
These two can be combined, of course. Then it looks like this:
The downside with pixel-snapped coordinates is that between two zoom levels only some of the points are affected, making it look like they jump (if you look very carefully, but looking carefully is what this issue is about). In this video you can for example focus on the two overlapping points and you see that they don't wiggle in unison:
regl-2024-04-22_15.26.22.mp4
Due to the zoom wiggling with pixel-snapping I think the most straight-forward way to improve the circles is to increase the anti-aliasing. Happy to hear your opinion on this!
The text was updated successfully, but these errors were encountered:
Thanks a lot for looking into this and the proposed solutions! I agree that the pixel snapping is not ideal due to the wiggling factor. It'd be cool to be able to turn this on optionally as it could be useful for pixel-perfect PNG exports but I'm not sure it's worth the maintenance effort. But I'll keep it in the back of my mind as I have some ideas for better exporting (i.e., at different resolutions)
I'm open to increasing the anti-aliasing but wonder what 1.5px, 2px, and 2.5px look like. Could you render the same point grid with those px values? I personally find 3px a tad too blurry.
I think the circles look a bit off. Take a look at these (8x zoom):
They are not particularily round and look a bit egg shaped. I have tinkered with the code and I have two ideas for improvement.
The change is in the fragment shader
point.fs
:The change is in the vertex shader
point.vs
, and you have to provide the width and height inindex.js
.These two can be combined, of course. Then it looks like this:
The downside with pixel-snapped coordinates is that between two zoom levels only some of the points are affected, making it look like they jump (if you look very carefully, but looking carefully is what this issue is about). In this video you can for example focus on the two overlapping points and you see that they don't wiggle in unison:
regl-2024-04-22_15.26.22.mp4
Due to the zoom wiggling with pixel-snapping I think the most straight-forward way to improve the circles is to increase the anti-aliasing. Happy to hear your opinion on this!
The text was updated successfully, but these errors were encountered: