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

Nicer frustum ray #1019

Merged
merged 2 commits into from
Feb 1, 2023
Merged

Nicer frustum ray #1019

merged 2 commits into from
Feb 1, 2023

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jan 31, 2023

Takes plane distance into account if nothing else is around

After:
With known depth:
image
Without known depth:
image

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I've added a line to CHANGELOG.md (if this is a big enough change to warrant it)

Takes plane distance into account if nothing else is around
.add_point(pos)
.radius(radius * 3.0)
.color(egui::Color32::WHITE);
// No harm in making this ray _very_ long. (Infinite messes with things though!)
Copy link
Member

Choose a reason for hiding this comment

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

as long as it is not counted into scene_bbox_accum 😬

(btw, I think the frustum box is perhaps counted to scene_bbox_accum, which messes up auto-camera-centering after having a large frustum distance)

Copy link
Member Author

Choose a reason for hiding this comment

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

yes, frustum box is counted :/
and indeed this one is not because it comes after scene build up
not fond or the way we do the bounding box overall

crates/re_viewer/src/ui/view_spatial/ui_3d.rs Outdated Show resolved Hide resolved
@Wumpf Wumpf merged commit a051e69 into main Feb 1, 2023
@Wumpf Wumpf deleted the andreas/nicer-picking-ray branch February 1, 2023 14:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants