Hall of Mirrors effect on multi-camera with atmosphere.

Open
#26,332 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 2 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
55/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
rust

Research direction

Start with the linked reproduction branch, which modifies Bevy’s atmosphere example, and compare its multi-camera setup with the normal clear-color case described in the issue. Trace how the order-0 camera renders the atmosphere alongside higher-order cameras; done means the atmosphere background no longer shows hall-of-mirrors artifacts.

Written by the indexing model from the issue text.

Description

A-Rendering C-Bug S-Needs-Investigation

Bevy version and features

  • 0.20

Rendering info:

`AdapterInfo { name: "AMD Radeon RX 7900 XTX (RADV NAVI31)", vendor: 4098, device: 29772, device_type: DiscreteGpu, device_pci_bus_id: "0000:03:00.0", driver: "radv", driver_info: "Mesa 26.2.0", backend: Vulkan, subgroup_min_size: 32, subgroup_max_size: 64, transient_saves_memory: Some(false), limit_bucket: None }`

What you did

Trying to make a game with multiple cameras, where the order: 0 camera has an atmosphere instead of a clear color.

I also made a branch that alters bevy's atmosphere example to demonstrate this, which is where this screenshot is from, linked below.

What went wrong

Hall of mirrors effect artifacts of whatever the higher-order cameras are rendering are drawn onto the atmosphere background.

Additional information

Screenshot:
Image

It seems to be specific to the addition of the atmosphere, no hall of mirrors effect artifacts when using multi-camera with a normal clear color background.

Reproduction of this in the bevy atmosphere example can be found here: https://github.com/Trouv/bevy/tree/bug/atmosphere-hall-of-mirrors

Dominant language
Rust
Stars
49.8k
Forks
5.1k
Avg merge
3d 4h
Merged PRs (30d)
136

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from bevyengine/bevy

All issues in bevyengine/bevy

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.