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

Expose Colormap component for DepthImage, depth image colormap now used outside of reprojection #6549

Merged
merged 7 commits into from
Jun 13, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jun 12, 2024

What

Colormap component can now be set from code:

rr.log("world/camera/depth", rr.DepthImage(depth_image, meter=10_000.0, colormap="viridis"))
    rec.log(
        "world/camera/depth",
        rerun::DepthImage({HEIGHT, WIDTH}, data)
            .with_meter(10000.0)
            .with_colormap(rerun::components::Colormap::Viridis)
    );

1200w

Also, the colormap is now applied for picking preview & 2d depth maps (before these were hardcoded to turbo colormap!)

Part of

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 🍏 primitives Relating to Rerun primitives include in changelog labels Jun 12, 2024
Copy link

github-actions bot commented Jun 12, 2024

Deployed docs

Commit Link
9e0e328 https://landing-5e9tljbo4-rerun.vercel.app/docs

@Wumpf Wumpf added the 🪵 Log & send APIs Affects the user-facing API for all languages label Jun 12, 2024
@Wumpf
Copy link
Member Author

Wumpf commented Jun 12, 2024

I messed up my branch juggling/naming, this does not split out the depth image visualizer

@Wumpf
Copy link
Member Author

Wumpf commented Jun 12, 2024

@rerun-bot full-check

Copy link

Copy link
Member

@jleibs jleibs left a comment

Choose a reason for hiding this comment

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

Looks reasonable.

We definitely still need to do a pass on ViewerCtx vs ViewContext vs QueryContext and what gets plumbed where, but that can come later.

@Wumpf Wumpf removed the do-not-merge Do not merge this PR label Jun 13, 2024
@Wumpf Wumpf merged commit 010ed34 into main Jun 13, 2024
72 of 76 checks passed
@Wumpf Wumpf deleted the andreas/split-depthimage-visualizer branch June 13, 2024 07:21
Wumpf added a commit that referenced this pull request Jun 13, 2024
### What

* Part of:  #5067
* Based on (for merge conflict reduction):  #6549

This will soon be handled by enabling/disabling visualizers instead.
A sideeffect of this is that the option to change the depth image
colormap also shows up in 2D views (as it should). But we're going to do
a pass over how this ui is generated soon anyways which would have also
caught this.

### 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/6550?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/6550?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/6550)
- [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`.
Wumpf added a commit that referenced this pull request Jun 13, 2024
…ed (#6551)

### What
Previously, depth meter editing worked via the legacy
`EntityProperties`, now it is a `DepthMeter` component override. Since
`EntityProperties` wasn't always applied correctly, and #6549 makes
queries to images during picking go through the blueprint layer, this
fixes picking interaction

After:

![image](https://github.com/rerun-io/rerun/assets/1220815/4ff24444-20f3-470b-8f4b-3e6ae7bb59f9)

Before, the same picking returned a different (wrong) depth value!)

![image](https://github.com/rerun-io/rerun/assets/1220815/1f9423b7-b12b-48c0-abef-5cbb22a1acee)

Part of:
*
#5067

### 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/6551?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/6551?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/6551)
- [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
include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages 🍏 primitives Relating to Rerun primitives
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants