Validation workaround `wait-for-transmission-helper`: glTF TransmissionHelper classifies meshes after scene readiness

Aperta Adatta ai principianti
#2,138 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
2/5
Tempo stimato
1-3 ore
Idoneità per principianti
72/100
Tipo di issue
Bug
Chiarezza
Specificata chiaramente
Stato di attività
Attiva
Stack tecnologico
javascript
Ambito
desktop, testing

Direzione di ricerca

Inizia dalla mappa delle soluzioni alternative in Apps/Playground/Scripts/validation_native.js, poi controlla i test che hanno abilitato questa opzione in Apps/Playground/Scripts/config.json e le indicazioni per i test di validazione in Documentation/AddingNewValidationTests.md. La soluzione alternativa attende che le mesh della scena che contengono materiali compaiano nella cache glTF di TransmissionHelper prima di consentire il primo frame. Il lavoro è terminato quando i test di validazione interessati non mostrano più il problema intermittente della trasmissione con la soluzione alternativa abilitata.

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

Descrizione

Affected tests (40)

  • FrameGraph convolution post process
  • GLTF Extension KHR_materials_volume
  • GLTF Extension KHR_materials_volume with analytic light
  • GLTF Extension KHR_materials_volume with attenuation
  • glTF Loader - PBRMaterial Scatter Color Density
  • glTF Loader - PBRMaterial Scatter Strength Thin-Walled
  • KHR diffuse transmission
  • OpenPBR Geometry Opacity
  • OpenPBR glTF Surface Tinting
  • OpenPBR IBL Furnace Test for Thin Film Transparency
  • OpenPBR Subsurface Color Scaling - IBL
  • OpenPBR Subsurface Dense Scattering - Analytic Lights
  • OpenPBR Subsurface Dense Scattering - IBL
  • OpenPBR Subsurface Dense Scattering - Realtime IBL
  • OpenPBR Subsurface Scatter Anisotropy - glTF
  • OpenPBR Subsurface Scatter Color Density - glTF
  • OpenPBR Subsurface Scatter Strength - glTF
  • OpenPBR Subsurface Scatter Strength Thin-Walled - glTF
  • OpenPBR Subsurface SSS Frame Graph - Analytic Lights
  • OpenPBR Subsurface SSS Frame Graph - Shadows - Combination Lights
  • OpenPBR Subsurface SSS Frame Graph - Shadows - IBL
  • OpenPBR Subsurface Transmission Blending - Analytic Lights
  • OpenPBR Subsurface Transmission Blending - IBL
  • OpenPBR Subsurface Transmission Thin-walled Blending with Textures
  • OpenPBR Subsurface Transmission Volume Blending with Textures
  • OpenPBR Thin Walled Subsurface Anisotropy - IBL
  • OpenPBR Thin Walled Subsurface Anisotropy - Realtime IBL
  • OpenPBR Thin Walled Subsurface Transmission Blending - IBL
  • OpenPBR Thin Walled Transmission IOR vs Roughness - Analytic Lights
  • OpenPBR Thin Walled Transmission IOR vs Roughness - IBL
  • OpenPBR Transmission Color glTF - Analytic Lights
  • OpenPBR Transmission Color glTF - IBL
  • OpenPBR Transmission Dense Scattering - IBL
  • OpenPBR Transmission Dense Scattering - SH
  • OpenPBR Transmission Dispersion glTF - IBL
  • OpenPBR Transmission Roughness glTF - Analytic Lights
  • OpenPBR Transmission Roughness glTF - Combination Lights
  • OpenPBR Transmission Roughness glTF - IBL
  • PBR in mirror
  • Test code inlining

What the workaround does

Skips frames before the first one until every scene mesh with a material is in the glTF TransmissionHelper's opaque or transparent cache (60 s limit). The helper classifies a new mesh two SetImmediate (1 ms timer) ticks after it is added (Scene.addMesh defers onNewMeshAddedObservable, then the helper defers the classification), and scene.isReady() doesn't wait for it. When the timers fire after the first frame, the opaque render target misses the mesh and refraction shows only the background. This is the OpenPBR transmission flake on Win32_x64_NativeWebGPU. Introduced in #2139.

Recommended fix

Fix in Babylon.js: BabylonJS/Babylon.js#19307 keeps the scene not ready until every mesh is classified. Once Babylon Native uses a Babylon.js release that includes it, remove the workaround.


Workaround implementations live in Apps/Playground/Scripts/validation_native.js (WORKAROUNDS map); tests opt in via the workarounds array in Apps/Playground/Scripts/config.json. See Documentation/AddingNewValidationTests.md.

Lingua principale
C++
Stelle
931
Fork
169
Merge medio
2g 17h
PR unite (30g)
66

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 BabylonJS/BabylonNative

Tutte le issue di BabylonJS/BabylonNative

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.