google / filament

Filament is a real-time physically based rendering engine for Android, iOS, Windows, Linux, macOS, and WebGL2
https://google.github.io/filament/
Apache License 2.0
17.35k stars 1.83k forks source link

Pick api not picking entity with BLEND alphaMode #7950

Closed mbalajee closed 2 days ago

mbalajee commented 3 days ago

⚠️ Issues not using this template will be systematically closed.

Describe the bug Am loading a gltf model. Pick API is not picking the node with alphaMode = BLEND in its material. On selecting this node fragCoords.z is 1 and depth is 0. Issue exists in all platforms and in all filament backends

To Reproduce Steps to reproduce the behavior: Load a gltf/glb model with a node having alphaMode = BLEND set in materials

Expected behavior Node should be selected

Screenshots

mbalajee commented 3 days ago

Found similar issues discussed previously, https://github.com/google/filament/discussions/3827#discussioncomment-4549217 https://github.com/google/filament/discussions/7140

I understand this is a limitation cz pick API is based on pixel picking so nodes with alphaMode = BLEND won't work. Is there a plan to add this support to filament, or the expectation is to let the users implement it ?

pixelflinger commented 2 days ago

this is a duplicate of #6614