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

Introduce (2D) Draw order component #2056

Merged
merged 8 commits into from
May 9, 2023
Merged

Introduce (2D) Draw order component #2056

merged 8 commits into from
May 9, 2023

Conversation

Wumpf
Copy link
Member

@Wumpf Wumpf commented May 5, 2023

Only Rust api implemented so far. To solve

we'll also need a python api ofc.

As discussed, the draw order internally maps to a the renderer's depth offset.

Adjusted the heuristic for images to put everything with explicit depth offset into the same space view (otherwise we only do so when two images have the same size).
Furthermore, layered images are now only transparent if they have the dame draw order (default or otherwise).

Added a simple example to demonstrate layering to api_demo plenty of room for improvement there both for esthetics & functionality ;) (TODO)

image

Checklist

PR Build Summary: https://build.rerun.io/pr/2056

@Wumpf Wumpf added enhancement New feature or request 🦀 Rust API Rust logging API 📺 re_viewer affects re_viewer itself labels May 5, 2023
@Wumpf Wumpf marked this pull request as draft May 5, 2023 15:49
Base automatically changed from andreas/re_renderer/depth-offset to main May 8, 2023 17:39
@Wumpf Wumpf marked this pull request as ready for review May 8, 2023 17:44
@teh-cmc
Copy link
Member

teh-cmc commented May 9, 2023

Can confirm that cherry-picking #2059 on top fixes the splat-related crash.

@teh-cmc teh-cmc self-requested a review May 9, 2023 08:05
@Wumpf Wumpf merged commit 4dbd4bb into main May 9, 2023
15 checks passed
@Wumpf Wumpf deleted the andreas/2d-draw-order branch May 9, 2023 10:57
jprochazk pushed a commit that referenced this pull request May 11, 2023
* create depth offset from draw order and patch it through

* transparent layers now know about depth offset - only images on the same layer will be made transparent

* add some points to layering demo

* comments and renames on draw order constants

* doc & sample details

* images with a shared root & an explicit draw order all go to the same space view now

* formatting
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request 📺 re_viewer affects re_viewer itself 🦀 Rust API Rust logging API
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants