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

Đang mở Phù hợp với người mới
#2,138 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ó
2/5
Thời gian dự kiến
1-3 giờ
Mức phù hợp với người mới
72/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
javascript
Lĩnh vực
desktop, testing

Hướng nghiên cứu

Bắt đầu với bản đồ workaround trong Apps/Playground/Scripts/validation_native.js, sau đó kiểm tra các bài kiểm thử đã bật tùy chọn trong Apps/Playground/Scripts/config.json và hướng dẫn kiểm thử validation trong Documentation/AddingNewValidationTests.md. Workaround chờ các mesh của scene có chứa material xuất hiện trong cache glTF TransmissionHelper trước khi cho phép khung hình đầu tiên. Hoàn tất khi các bài kiểm thử validation bị ảnh hưởng không còn gặp lỗi chập chờn về transmission khi bật workaround.

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

Mô tả

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.

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.