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

Đang mở
#2,134 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
48/100
Loại issue
Tính năng
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cpp, javascript
Lĩnh vực
backend, testing

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.
Ngôn ngữ chính
C++
Star
931
Fork
169
Merge trung bình
2 ngày 17 giờ
Pull request đã merge (30 ngày)
66

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của BabylonJS/BabylonNative

Tất cả issue của BabylonJS/BabylonNative

Issue tương tự

Thêm issue về C++

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.