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

Add Scale3D component #6892

Merged
merged 18 commits into from
Jul 16, 2024
Merged

Add Scale3D component #6892

merged 18 commits into from
Jul 16, 2024

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented Jul 15, 2024

What

Introduces a new Scale3D component that lives directly on the Transform3D archetype.
The Scale3D datatype which is part of TranslationRotationScale3D is still around, but will be removed in a subsequent PR.

Additionally, reversed order of how transform components. Rationale: "translation, rotation, scale" is a common way of expressing a simple transform. What is meant is that we first scale an object, then rotate it and then translate it.

Commit by commit review possible.

Checklist

  • pass main ci
  • 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!
  • If have noted any breaking changes to the log API in CHANGELOG.md and the migration guide

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

@Wumpf Wumpf added do-not-merge Do not merge this PR 🚜 refactor Change the code, not the functionality 🍏 primitives Relating to Rerun primitives include in changelog 🪵 Log & send APIs Affects the user-facing API for all languages labels Jul 15, 2024
Copy link

github-actions bot commented Jul 15, 2024

Deployed docs

Commit Link
03dbcb8 https://landing-ghyex5ypf-rerun.vercel.app/docs

@emilk emilk self-requested a review July 15, 2024 17:41
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 looks like it was painful

Wumpf added a commit that referenced this pull request Jul 16, 2024
### What

* Part of #6831
* Followed by #6892

Starts the process of splitting up `Transform3D` into several
components.
Far from done overall, but establishes a lot of the new documentation &
test patterns for this effort.

This PR fully replaces the `TranslationAndMat3x3` variant & datatype and
puts `Translation3D` & `TransformMat3x3` into existence and to work.
It does not touch on anything directly related to out of tree transforms
and does not do away from the `Transform3D` component yet.

I added a new component edit/view ui for consistency:
<img width="532" alt="image"
src="https://github.com/rerun-io/rerun/assets/1220815/1e7122f0-bf27-4f50-bc23-2824c2607ab2">


<img width="552" alt="image"
src="https://github.com/rerun-io/rerun/assets/1220815/1b30af25-905f-49ed-952b-961350dfab1f">
Unfortunately, transform hierarchy doesn't get affected by overrides yet
(see #6743), which is why I had
to turn off editing itself for the moment. Also, we don't yet show
multiline on hover, so matrix3x3 inspection regressed a little bit for
the moment (part of the only partially solved
#6661)


### Checklist
* [x] pass `main` ci checks
* [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/6866?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/6866?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)!
* [x] If have noted any breaking changes to the log API in
`CHANGELOG.md` and the migration guide

- [PR Build Summary](https://build.rerun.io/pr/6866)
- [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`.
Base automatically changed from andreas/translation-and-transformmat3-components to main July 16, 2024 08:01
An error occurred while trying to automatically change base from andreas/translation-and-transformmat3-components to main July 16, 2024 08:01
@Wumpf Wumpf force-pushed the andreas/scale3d-component branch from fa8b90d to 3cf3d83 Compare July 16, 2024 08:47
@Wumpf Wumpf force-pushed the andreas/scale3d-component branch from 31293b6 to 490b853 Compare July 16, 2024 09:40
@Wumpf Wumpf removed the do-not-merge Do not merge this PR label Jul 16, 2024
@Wumpf
Copy link
Member Author

Wumpf commented Jul 16, 2024

@rerun-bot full-check

Copy link

@Wumpf
Copy link
Member Author

Wumpf commented Jul 16, 2024

all test failed with a known issue, otherwise green.

@Wumpf Wumpf merged commit 369f97c into main Jul 16, 2024
72 of 74 checks passed
@Wumpf Wumpf deleted the andreas/scale3d-component branch July 16, 2024 13:17
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 🚜 refactor Change the code, not the functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants