-
Notifications
You must be signed in to change notification settings - Fork 373
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Consistent transform visualization for all entities with transforms (#…
…2577) ### What Fixes #753. Fixes #2503. Fixes #2269 * #753 * #2503 * #2269 Adds a new scene part to visualize all transform arrows - decided to avoid the term "gizmo" since gizmos as they are used for manipulating an object (e.g. Blender, Unity3D, Unreal etc.) do have quite different properties in what they need to show and are typically *not* used to visualize the actual transform. Introduces two new properties that (like all other object properties) will need to be componetized and be part of the blueprint apis: * transform visibility: On by default iff the entity or any of its children has a pinhole transform or if the entity doesn't have any other components than `Transform3D` * transform arrow length: By default a heuristic world bounding box based scale, can be chosen freely per object. Polished the api_demo#transform_test a little bit to be able to use it as a test case for this: ![image](https://github.com/rerun-io/rerun/assets/1220815/538a8cee-36f9-4af0-a5a6-51723f6e925f) Note in particular that skew & scale works as expected: ![image](https://github.com/rerun-io/rerun/assets/1220815/4482d9b8-6e12-405a-9431-bf18ac7d413f) (this shows two transforms on the same spot, one rotated along x, one scaled along x) ![image](https://github.com/rerun-io/rerun/assets/1220815/b18d18c0-4ba6-4e84-a1e0-f125320655e8) Pinhole cameras no longer are hacked to have their private gizmo - clicking it clicks the entity with the transform now, now the pinhole camera (this _may_ be the same, see #2568): ![image](https://github.com/rerun-io/rerun/assets/1220815/ce04c4a4-0d77-4a91-abbc-1331b3b5f36e) ### 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 [demo.rerun.io](https://demo.rerun.io/pr/2577) (if applicable) - [PR Build Summary](https://build.rerun.io/pr/2577) - [Docs preview](https://rerun.io/preview/pr%3Aandreas%2Ftransform-gizmos/docs) - [Examples preview](https://rerun.io/preview/pr%3Aandreas%2Ftransform-gizmos/examples)
- Loading branch information
Showing
17 changed files
with
478 additions
and
176 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.