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

オープン
#2,134 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
48/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
cpp, javascript
領域
backend, testing

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.
主要言語
C++
スター
931
フォーク
169
平均マージ
2日 17時間
マージ済み PR(30日)
66

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

BabylonJS/BabylonNative のほかの issue

BabylonJS/BabylonNative の issue をすべて見る

似ている issue

C++ の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。