Support useNDCHalfZRange (half-range NDC depth) so Babylon.js half-range depth visual tests can run

Aperta
#2,134 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à
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
cpp, javascript
Ambito
backend, testing

Direzione di ricerca

Start by reading NativeEngine and the Playground validation runner, then inspect the seven half-range depth entries in Apps/Playground/Scripts/config.json. Determine whether Native should support useNDCHalfZRange and how the runner can create the requested engine; done means either the tests exercise half-range depth and are enabled, or the unsupported entries are removed with that decision.

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

Descrizione

Babylon.js 9.38.0 added an opt-in useNDCHalfZRange engine option (WebGL clip control, BabylonJS/Babylon.js#19209), plus visual tests that create their engine with it:

  • WebGL2 half-range depth - fluid particle occlusion
  • WebGL2 half-range depth - volumetric lighting occlusion
  • WebGL2 half-range depth - right-handed fluid particle occlusion
  • WebGL2 half-range depth - right-handed fluid particle occlusion with reversed Z
  • WebGL2 half-range depth - volumetric lighting occlusion with reversed Z
  • WebGL2 half-range depth - infinite-far fluid rendering with fixed thickness
  • WebGL2 half-range depth - infinite-far fluid rendering with variable thickness

Native has no equivalent. NativeEngine doesn't take useNDCHalfZRange, and the Playground validation runner can't create a per-test engine with it. With the exclusion removed, "WebGL2 half-range depth - fluid particle occlusion" passes on D3D11, but only because the playground sees useNDCHalfZRange unset and renders the standard depth range. It isn't testing half-range depth at all.

The Babylon.js 9.38.1 update adds these tests to Apps/Playground/Scripts/config.json with excludeFromAutomaticTesting and a reason pointing here.

To close this issue, either:

  • support half-range NDC depth in NativeEngine (bgfx already uses a [0, 1] depth range on D3D, Metal, Vulkan and WebGPU) and let the runner create the engine the test asks for, then enable the tests; or
  • decide Native won't support the option, and remove the entries.
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.