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

the render layers: they are broken #16867

Open
brandon-reinhart opened this issue Dec 17, 2024 · 2 comments
Open

the render layers: they are broken #16867

brandon-reinhart opened this issue Dec 17, 2024 · 2 comments
Assignees
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Needs-Investigation This issue requires detective work to figure out what's going wrong
Milestone

Comments

@brandon-reinhart
Copy link
Contributor

Bevy version

0.15

What you did

  1. I rendered a bird into RenderLayers 0 and another into RenderLayers 0 and 1.
  2. Camera A has RenderLayers 0
  3. Camera B has RenderLayers 1 and a RenderTarget Image.

What went wrong

We expect to see both birds on Camera A and only one bird on Camera B, which is drawn as an ImageNode to display the RenderTarget contents.

Instead we see... a random combination of birds on both cameras. ?!?

Example code is here: https://github.com/dead-money/bevy_render_layers_broken

Every few seconds the example despawns everything and recreates the scene. You'll see arbitrary results.

@brandon-reinhart brandon-reinhart added C-Bug An unexpected or incorrect behavior S-Needs-Triage This issue needs to be labelled labels Dec 17, 2024
@alice-i-cecile alice-i-cecile added this to the 0.15.1 milestone Dec 17, 2024
@alice-i-cecile alice-i-cecile added A-Rendering Drawing game state to the screen S-Needs-Investigation This issue requires detective work to figure out what's going wrong and removed S-Needs-Triage This issue needs to be labelled labels Dec 17, 2024
@NthTensor
Copy link
Contributor

@tychedelia Any ideas? This looks like your area.

@tychedelia
Copy link
Contributor

Yeah, happy to look into this later this week. Thanks for providing a repro @brandon-reinhart.

@tychedelia tychedelia self-assigned this Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior S-Needs-Investigation This issue requires detective work to figure out what's going wrong
Projects
None yet
Development

No branches or pull requests

4 participants