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

Allow configuration of (arbitrary?) clip planes in 2D & 3D views #8693

Open
ceubel-pr opened this issue Jan 15, 2025 · 4 comments
Open

Allow configuration of (arbitrary?) clip planes in 2D & 3D views #8693

ceubel-pr opened this issue Jan 15, 2025 · 4 comments
Labels
enhancement New feature or request 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself

Comments

@ceubel-pr
Copy link

Having the ability to "crop" PCDs from a 2D particular view, based on some min and max distance, would be very valuable for the PythonSDK. It would allow us to take cross-sections of PCDs along some trajectory. There's already the NearClipPlane, adding the FarClipPlane would make this possible!

Posting NearClipPlane here for reference https://ref.rerun.io/docs/python/0.21.0/common/blueprint_components/#rerun.blueprint.components.NearClipPlane
and recent PR #8348

PS. setting clip planes directly in the 3D view and measurement features (like Meshlab) would also be nice :)

@ceubel-pr ceubel-pr added enhancement New feature or request 👀 needs triage This issue needs to be triaged by the Rerun team labels Jan 15, 2025
@ceubel-pr ceubel-pr changed the title There's NearClipPlane, but what about FarClipPlane for Spatial2DView??? There's NearClipPlane, but what about FarClipPlane for Spatial2DView (PCD Slicing)??? Jan 15, 2025
@Wumpf
Copy link
Member

Wumpf commented Jan 15, 2025

We always render with infinite reverse-z projection, therefore we don't have a far clip plane to expose right now.
Clip planes on camera projections are often seen as an unwanted limitation, so I reckon since you want to use it for visualization you'd like them fixed in scene space rather than attached to a camera?

PCD==point cloud data?

@Wumpf Wumpf changed the title There's NearClipPlane, but what about FarClipPlane for Spatial2DView (PCD Slicing)??? Allow configuration of (arbitrary?) clip planes in 2D & 3D views Jan 15, 2025
@Wumpf Wumpf added 📺 re_viewer affects re_viewer itself 🔺 re_renderer affects re_renderer itself and removed 👀 needs triage This issue needs to be triaged by the Rerun team labels Jan 15, 2025
@Wumpf
Copy link
Member

Wumpf commented Jan 15, 2025

Very related (if not redundant to):

@ceubel-pr
Copy link
Author

Ah, I see. Thank you.

I suppose I was thinking of adding virtual cameras to view 2D cross-sections of a point cloud, given a near and far plane. This is more of a post-processing, analysis step on top of the logged data.

For instance, say I 3D scan a tree trunk, where each 3D scan is a logged timestep, but then I want to also view each cross-section of the composite tree trunk scan along the trunk's axis, say at 1" intervals to inspect it. My thought process is to create virtual cameras along the trunk axis and then control the near/far clipping, and then I would be able to flip through each of these cross-sectional waypoints to visualize. I'm trying to use rerun as a post-processing analysis tool on top of visualizing the scanning process, I am not sure if this is good practice. But, its been so powerful for the latter, it would be awesome to have features that support the former.

"PCD" really is a point cloud file format, but I too often subconciously use it to just mean a point cloud.

@Wumpf
Copy link
Member

Wumpf commented Jan 15, 2025

Makes a lot of sense to me, thanks for the added context!
Might be challenging, but I think you're right this can be a powerful tool to have, definitely worth looking into

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 🔺 re_renderer affects re_renderer itself 📺 re_viewer affects re_viewer itself
Projects
None yet
Development

No branches or pull requests

2 participants