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

Multiple instances of points/arrows/boxes with single label display label now at the center #6741

Merged
merged 17 commits into from
Jul 4, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jul 3, 2024

What

Previously, single labels would splat out, quickly hitting the "can't display more labels" limit (described in #3465).
Now, there's a special meaning for a single labels: Instead of splatting it across all instances, we place the single label at the center.

This is particularly useful with in-viewer overrides, as it allows to set labels on objects with many instances.
image

A drawback of bounding box based placement is that the label moves with the box. But I reckon it's a lot better than the alternative.
https://github.com/rerun-io/rerun/assets/1220815/866058a4-8edf-4ce7-9cd5-63f8b00e34a3

Checklist

  • I have read and agree to Contributor Guide and the Code of Conduct
  • I've included a screenshot or gif (if applicable)
  • I have tested the web demo (if applicable):
  • The PR title and labels are set such as to maximize their usefulness for the next release's CHANGELOG
  • If applicable, add a new check to the release checklist!

To run all checks from main, comment on the PR with @rerun-bot full-check.

@Wumpf Wumpf added 📺 re_viewer affects re_viewer itself include in changelog labels Jul 3, 2024
@Wumpf Wumpf changed the title Multiple instances of points/arrows/boxes with single label display label now in the center Multiple instances of points/arrows/boxes with single label display label now at the center Jul 3, 2024
@Wumpf Wumpf added the do-not-merge Do not merge this PR label Jul 3, 2024
@emilk emilk self-requested a review July 4, 2024 06:17
Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

This is a really nice solution!

Copy link
Member

@emilk emilk left a comment

Choose a reason for hiding this comment

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

This is a really nice solution!

@Wumpf
Copy link
Member Author

Wumpf commented Jul 4, 2024

This is a really nice solution!

It was @teh-cmc's idea 🙇 . I would have never thought of it, was too stuck with "always splat/clam-to-border" 😄

@Wumpf Wumpf removed the do-not-merge Do not merge this PR label Jul 4, 2024
@Wumpf Wumpf merged commit 9137e49 into main Jul 4, 2024
40 of 42 checks passed
@Wumpf Wumpf deleted the andreas/center-single-labels branch July 4, 2024 08:55
Wumpf added a commit that referenced this pull request Jul 4, 2024
### What

* Fixes #6093
* Based on #6741


![image](https://github.com/rerun-io/rerun/assets/1220815/e76a865f-c48d-4d06-9125-e1c7fb26de58)


### Checklist
* [x] I have read and agree to [Contributor
Guide](https://github.com/rerun-io/rerun/blob/main/CONTRIBUTING.md) and
the [Code of
Conduct](https://github.com/rerun-io/rerun/blob/main/CODE_OF_CONDUCT.md)
* [x] I've included a screenshot or gif (if applicable)
* [x] I have tested the web demo (if applicable):
* Using examples from latest `main` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6742?manifest_url=https://app.rerun.io/version/main/examples_manifest.json)
* Using full set of examples from `nightly` build:
[rerun.io/viewer](https://rerun.io/viewer/pr/6742?manifest_url=https://app.rerun.io/version/nightly/examples_manifest.json)
* [x] The PR title and labels are set such as to maximize their
usefulness for the next release's CHANGELOG
* [x] If applicable, add a new check to the [release
checklist](https://github.com/rerun-io/rerun/blob/main/tests/python/release_checklist)!

- [PR Build Summary](https://build.rerun.io/pr/6742)
- [Recent benchmark results](https://build.rerun.io/graphs/crates.html)
- [Wasm size tracking](https://build.rerun.io/graphs/sizes.html)

To run all checks from `main`, comment on the PR with `@rerun-bot
full-check`.
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.

2 participants