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

Make Pinhole archetype in Rust eager serialized #8789

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jan 23, 2025

Related

What

Deprecates a bunch of methods on Pinhole, all of them still functional though through ad-hoc deserialization utilities.

In the Viewer (concrete, re_spatial_view) we don't use any of that and have now a new purpose-built type - I considered using the generated (attr.rust.archetype_native) type, but a custom built made a lot more sense for untangling the mess of adhoc queries we have around Pinhole. It might not look like it but the aspiration here was to not change how things work by much while having things better decoupled & cleaner.
Bonus: the odd resolution oracle we already used is now visible on the pinhole visualizers's ui

// TODO(andreas): Give this another pass and think about how we can remove this.
// Being disconnected from the blueprint & fallbacks makes this a weird snowflake with unexpected behavior.
// Also, figure out how this might actually relate to the transform cache.
pub fn query_pinhole_and_view_coordinates_from_store_without_blueprint(
Copy link
Member Author

Choose a reason for hiding this comment

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

this is essentially what query_pinhole_legacy used to do. But with an EVEN scarier name!

Copy link

github-actions bot commented Jan 23, 2025

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

  • I have tested the web viewer
Result Commit Link Manifest
71f2676 https://rerun.io/viewer/pr/8789 +nightly +main

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant