Skip to content
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

Fix outlines for lines having more preceived aliasing since 0.20 #8317

Merged
merged 4 commits into from
Dec 5, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Dec 4, 2024

Related

What

All screenshots on MacOS lowdpi (==scaling 100%) since it's easier to spot there (but also still impactful on highdpi==scaling>=200%). Listing WebGPU & WebGL separately since WebGL version doesn't do anti-aliasing on outlines (technical limitations)

0.19 WebGPU Chrome
image

0.20/main WebGPU Chrome
image

This PR WebGPU Chrome
image


0.19 WebGL Chrome
image

0.20/main WebGL Chrome
image

This PR WebGL Chrome
image

@Wumpf Wumpf added 🪳 bug Something isn't working 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself 🦟 regression A thing that used to work in an earlier release include in changelog labels Dec 4, 2024
@@ -2182,7 +2182,7 @@ fn quote_archetype_field_type(hpp_includes: &mut Includes, obj_field: &ObjectFie
quote! { Collection<#elem_type> }
}
// TODO(andreas): This should emit `MonoCollection` which will be a constrained version of `Collection`.
// (simply adapting `MonoCollection` breaks some existing code, so this not entirely trivial to do.
// (Simply adapting `MonoCollection` breaks some existing code, so this not entirely trivial to do.
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

load bearing rust change so I get web builder ci triggered

Copy link

github-actions bot commented Dec 4, 2024

Web viewer built successfully. If applicable, you should also test it:

  • I have tested the web viewer
Result Commit Link
9f7a138 https://rerun.io/viewer/pr/8317

Note: This comment is updated whenever you push a commit.

@Wumpf Wumpf marked this pull request as ready for review December 4, 2024 21:24
Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense - thanks for the fix! Soon we can have regression checks for this :)

crates/viewer/re_renderer/shader/lines.wgsl Show resolved Hide resolved
@Wumpf Wumpf merged commit c31cf27 into main Dec 5, 2024
31 checks passed
@Wumpf Wumpf deleted the andreas/fix-outline-antialiasing-regression branch December 5, 2024 09:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🪳 bug Something isn't working include in changelog 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself 🦟 regression A thing that used to work in an earlier release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Anti aliasing for outlines of lines broke in 0.20 (working fine in 0.19)
2 participants