Solari realtime lighting ~16% darker than Pathtracer under a large textured emissive mesh

Aperta
#26,610 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

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
42/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust

Direzione di ricerca

Start by reducing the reported scene to a plane under a textured emissive dome, then compare SolariLighting and Pathtracer with the same setup. The issue points to generate_nee_candidate, generate_emissive_candidate, and reservoir_contribution as relevant shader entry points; read those paths alongside the emissive mesh sampling code. Done means identifying and reproducing the source of the roughly 16% radiance gap, with a regression case showing the estimates agree.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Bevy version

0.20.1 (bevy_solari 0.20.1), Vulkan, NVIDIA L4 (driver 580), Ubuntu 24.04.

What I did

A static scene: a small block of street (cobblestones, kerbs, walls; StandardMaterial with base colour, normal and metallic-roughness textures, no vertex colours) enclosed by an emissive sphere, 40 m in radius, 9 216 triangles, normals facing inwards, base_color black, emissive = 39 322 × an emissive_texture (Rgba16Float, 1024 × 512, equirectangular: the light seen from the middle of the block). The sphere is the only light source; the camera's EnvironmentMapLight is present, but every ray meets the sphere first (it lies within world_cache_max_gi_ray_distance).

The camera does not move. After 6 s, I compare the mean linear radiance over the floor's pixels (diffuse-dominated cobblestones), drawn with Tonemapping::None (nothing clipped), between:

  • Pathtracer (about 1 200 samples a pixel accumulated): the reference;
  • SolariLighting { restir: true, ..default() }, raw (no denoiser of any kind).

What I saw

Setting Floor, relative to Pathtracer
default, restir: true 0.84
confidence_weight_cap: 1.0 ≈ same (< 1 % change)
primary_di_samples: 32, secondary_di_samples: 16 ≈ same
max_bounces: 8 ≈ same
world_cache_position_base_cell_size: 0.05 ≈ same
restir: false darker still

(The settings rows were measured through our own temporal/à-trous denoiser, which raises the mean by about 9 %; their differences relative to the default are what matters.)

What I expected

The realtime estimate to converge, on average, to the Pathtracer's, at least for a static camera and a static, diffuse-lit scene. The gap is the same over the whole floor (not localised near edges or occluders), and none of the exposed settings moves it.

Notes

  • Reading the shaders, NEE and BRDF-sampled emissive hits use consistent MIS weights (generate_nee_candidate / generate_emissive_candidate / reservoir_contribution), and pack_resolved_light_sample's log2 + RGB9E5 encoding is not clipping here. I could not find the cause by reading.
  • The light source is one emissive mesh of 9 216 triangles with a textured emission (bright sky directions next to dark façades). I have not yet reduced this to a minimal scene; a plane under a textured emissive dome is my best guess at one. Happy to try one if useful.
Lingua principale
Rust
Stelle
49.8k
Fork
5.1k
Merge medio
3g 4h
PR unite (30g)
136

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bevyengine/bevy

Tutte le issue di bevyengine/bevy

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.