Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Show depth buffer#491

Closed
almarklein wants to merge 1 commit intomainpygfx/pygfx:mainfrom
depthpygfx/pygfx:depthCopy head branch name to clipboard
Closed

Show depth buffer#491
almarklein wants to merge 1 commit intomainpygfx/pygfx:mainfrom
depthpygfx/pygfx:depthCopy head branch name to clipboard

Conversation

@almarklein
Copy link
Copy Markdown
Member

@almarklein almarklein commented Mar 28, 2023

This is a bit of an experiment to what we'd need to make the values of the depth buffer available (for users, via an API, and for post-processing). It also contains a few tweaks to the blender code to avoid resetting the depth buffer in transparent passes.

For most examples, this nicely shows the depth:
image

Some observations:

  • Transparent fragments do not have a depth value, unless the blend_mode is "opaque" or "ordered1".
  • For subplots, only the last drawn plot has a depth, because the full depth buffer is reset for each subplot.
  • Similarly, for overlays, only the depth of the final pass is visible.

@almarklein
Copy link
Copy Markdown
Member Author

Closing to clean up. I left it open primarily to be able to find back the code to use when tackling #492.

@almarklein almarklein closed this Aug 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Morty Proxy This is a proxified and sanitized view of the page, visit original site.