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

Abierto
#2,134 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
48/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
cpp, javascript
Área
backend, testing

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.
Lenguaje dominante
C++
Estrellas
931
Forks
169
Merge medio
2 d 17 h
PR fusionados (30 d)
66

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de BabylonJS/BabylonNative

Todos los issues de BabylonJS/BabylonNative

Issues similares

Más issues de C++

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.