Meshlets software raster is flickering pixels when camera moves
I maintainer di solito rispondono entro 2 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Attiva
- Stack tecnologico
- rust
- Ambito
- computer-graphics
Direzione di ricerca
The flicker comes from the software-raster threshold in crates/bevy_pbr/src/meshlet/cull_clusters.wesl, around lines 74-78, where sw_raster is set from project_aabb and a 64-pixel size check. Start by running cargo run --release --example meshlet --features meshlet,https,free_camera and moving the camera to the distance where pixels flicker. Done means the artifact is gone without disabling software raster globally, with the threshold or the projection logic explained.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Bevy version and features
commit 76295a0d268e5a72079e4c2d7ba7db18bcf259ff (grafted, HEAD -> main, origin/main, origin/HEAD)
Relevant system information
AdapterInfo { name: "NVIDIA GeForce RTX 3080", vendor: 4318, device: 8710, device_type: DiscreteGpu, device_pci_bus_id: "0000:01:00.0", driver: "NVIDIA", driver_info: "610.88", backend: Vulkan, subgroup_min_size: 32, subgroup_max_size: 32, transient_saves_memory: Some(false), limit_bucket: None }
What you did
I've launched a meshlet example
cargo run --release --example meshlet --features meshlet,https,free_camera
What went wrong
I've observed flickering pixels at a certain distance.
Out of curiosity, I asked Claude what usually could be the cause.
After that i found out about software rasterization and tried to disable it.
https://github.com/bevyengine/bevy/blob/main/crates/bevy_pbr/src/meshlet/cull_clusters.wesl#L74-L78
var sw_raster = project_aabb(clip_from_local, near, aabb, &screen_aabb);
sw_raster = false; // Disabled Software render
if sw_raster {
let aabb_size = (screen_aabb.max.xy - screen_aabb.min.xy) * view.viewport.zw;
sw_raster = all(aabb_size <= vec2<f32>(64.0));
}
It resolved the issue but I tried
sw_raster = all(aabb_size <= vec2<f32>(16.0));
It also helped.
Additional information
better to watch fullscreen
https://github.com/user-attachments/assets/3503905b-15df-443c-8039-4178fc703af8
- Lingua principale
- Rust
- Stelle
- 49.7k
- Fork
- 5k
- Merge medio
- 3g 19h
- PR unite (30g)
- 134
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di bevyengine/bevy
-
C-Bug S-Needs-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bevyengine/bevy#26536 ·
I maintainer di solito rispondono entro 2 giorni
-
Placeholder has no defaultForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaC-Feature S-Needs-Triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
bevyengine/bevy#26532 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
C-Feature S-Needs-Triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
bevyengine/bevy#26500 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
C-Feature S-Needs-Triage
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
bevyengine/bevy#26499 ·
I maintainer di solito rispondono entro 2 giorni
-
`compute_histogram` in auto exposure writes past the end of the 64-bin histogramForse già presa @dev-matru l’ha presa 3 giorni fa. ApertaA-Rendering C-Bug D-Straightforward S-Ready-For-Implementation X-Uncontroversial
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
bevyengine/bevy#26479 ·
I maintainer di solito rispondono entro 2 giorni
Tutte le issue di bevyengine/bevy
Issue simili
-
bug UI
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
wardian-app/Wardian#1746 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
jlcodes99/cockpit-tools#3125 ·
I maintainer di solito rispondono entro 2 giorni
-
bug user-sprint
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
Vondor/KassenSturz#967 ·
I maintainer di solito rispondono entro 1 giorno
-
area/ci
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
[BUG] Incremental sync warns "no stored highest_uid" on every round for folders with no new mailApertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
rustmailer/bichon#411 ·