Skip to content

Fix image planes not working correctly in some named-transform frame scenarios#12276

Merged
Wumpf merged 3 commits intomainfrom
andreas/fix-frustum-things
Dec 19, 2025
Merged

Fix image planes not working correctly in some named-transform frame scenarios#12276
Wumpf merged 3 commits intomainfrom
andreas/fix-frustum-things

Conversation

@Wumpf
Copy link
Copy Markdown
Member

@Wumpf Wumpf commented Dec 18, 2025

Related

What

Previously, when looking for the image plane distance of a pinhole camera we were looking for the entity with that coordinate frame. Not only is it inconsistent to how our pinhole camera visualization work via child_frame, but also means that if your pinhole doesn't have the right coordinate frame in general we never found the plane distance.

Made sure the adjusted test captures this problem now.

@Wumpf Wumpf added the exclude from changelog PRs with this won't show up in CHANGELOG.md label Dec 18, 2025
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Dec 18, 2025

Web viewer built successfully.

Result Commit Link Manifest
695dc24 https://rerun.io/viewer/pr/12276 +nightly +main

View image diff on kitdiff.

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

Copy link
Copy Markdown
Member

@MichaelGrupp MichaelGrupp left a comment

Choose a reason for hiding this comment

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

LGTM. Some snapshot tests are still failing tho.

@Wumpf
Copy link
Copy Markdown
Member Author

Wumpf commented Dec 18, 2025

that difference is curious. https://rerun-io.github.io/kitdiff/?url=https://github.com/rerun-io/rerun/pull/12276
should take some time to understand whether that's an expected sideffect or not

@Wumpf Wumpf added the do-not-merge Do not merge this PR label Dec 18, 2025
@MichaelGrupp
Copy link
Copy Markdown
Member

Looks a like an origin axis marker that's now appearing?

@Wumpf Wumpf added the consider-patch PRs & issues that should be considered to be cherry-picked to a patch release branch. label Dec 19, 2025
@Wumpf
Copy link
Copy Markdown
Member Author

Wumpf commented Dec 19, 2025

that's the one I changed, but the failure looks like a change in eye position which is a bit odd

@Wumpf
Copy link
Copy Markdown
Member Author

Wumpf commented Dec 19, 2025

eh okay whatever, looks really like only a bounding box changed for some reason 🤷

@Wumpf Wumpf removed the do-not-merge Do not merge this PR label Dec 19, 2025
Copy link
Copy Markdown
Member

@grtlr grtlr Dec 19, 2025

Choose a reason for hiding this comment

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

Wahh my tab did not have the convo above 🙈.

It's hard to notice, but there's a new transform frame in there in the center of the plane. Did we regress with my PR landing?

Copy link
Copy Markdown
Member

@grtlr grtlr left a comment

Choose a reason for hiding this comment

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

👍

)
.collect::<Vec<_>>();

// TODO(andreas, grtlr): We should not re-query all those transforms. We still have them around in `tree_transforms_per_frame` (and a bit below in later `self.transform_infos`).
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

👍

c.read_lock_transform_cache(ctx.recording())
});

let lookup_image_plane_distance = |transform_frame_id_hash: TransformFrameIdHash| -> f64 {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just realized this although I touched the code yesterday: Kinda cool that this is not a name clash in the compiler. 🤓

@Wumpf Wumpf added 📺 re_viewer affects re_viewer itself include in changelog and removed exclude from changelog PRs with this won't show up in CHANGELOG.md labels Dec 19, 2025
@Wumpf Wumpf merged commit 479443f into main Dec 19, 2025
50 of 51 checks passed
@Wumpf Wumpf deleted the andreas/fix-frustum-things branch December 19, 2025 16:39
@ntjohnson1 ntjohnson1 removed the consider-patch PRs & issues that should be considered to be cherry-picked to a patch release branch. label Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants