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

Automated check_transform_clamping #8961

Merged
merged 3 commits into from
Feb 6, 2025
Merged

Conversation

teh-cmc
Copy link
Member

@teh-cmc teh-cmc commented Feb 6, 2025

Title.

@teh-cmc teh-cmc added 🔨 testing testing and benchmarks 🧑‍💻 dev experience developer experience (excluding CI) exclude from changelog PRs with this won't show up in CHANGELOG.md labels Feb 6, 2025
Copy link

github-actions bot commented Feb 6, 2025

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

  • I have tested the web viewer
Result Commit Link Manifest
18f23d0 https://rerun.io/viewer/pr/8961 +nightly +main

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

@Wumpf Wumpf self-requested a review February 6, 2025 17:22
Copy link
Member

@Wumpf Wumpf left a comment

Choose a reason for hiding this comment

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

🎉

Comment on lines +151 to +154
// Make sure we can draw stuff in the hover tables.
test_context.component_ui_registry = re_component_ui::create_component_ui_registry();
// Also register the legacy UIs.
re_data_ui::register_component_uis(&mut test_context.component_ui_registry);
Copy link
Member

Choose a reason for hiding this comment

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

better suited for a follow-up: can we simply move that to the harness
(also not really needed for this test?)

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah i'll do a follow-up tomorrow

Comment on lines +237 to +245
// This test checks the clamping behavior of components & instance poses on boxes & spheres.
//
// One view shows spheres, the other boxes.
//
// For both you should see:
// * 2x red (one bigger than the other)
// * 1x green
// * 2x blue (one bigger than the other)
// * NO other boxes/spheres, in particular no magenta ones!
Copy link
Member

@Wumpf Wumpf Feb 6, 2025

Choose a reason for hiding this comment

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

realizing that we didn't do the textual description in a lot of these. I think that's good to have if for some reason we wake up and notice that the image comparision thresholds betrayed us

Comment on lines +249 to +256
raw_input
.events
.push(egui::Event::PointerMoved((150.0, 150.0).into()));
raw_input.events.push(egui::Event::MouseWheel {
unit: egui::MouseWheelUnit::Line,
delta: egui::Vec2::UP * 2.0,
modifiers: egui::Modifiers::default(),
});
Copy link
Member

Choose a reason for hiding this comment

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

that's a very creative way of setting up the camera xD 👍

modifiers: egui::Modifiers::default(),
});
harness.run_steps(10);
harness.snapshot(&name);
Copy link
Member

Choose a reason for hiding this comment

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

We'll probably run into the same img comparision issues here again as on the draw order test, ci will tell
if the threshhold seems high to you (don't ask what that means ;)) please link the re_renderer antialiasing ticket

@teh-cmc teh-cmc merged commit 9d5f650 into main Feb 6, 2025
32 checks passed
@teh-cmc teh-cmc deleted the cmc/automated_transform_clamping branch February 6, 2025 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🧑‍💻 dev experience developer experience (excluding CI) exclude from changelog PRs with this won't show up in CHANGELOG.md 🔨 testing testing and benchmarks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants