filament icon indicating copy to clipboard operation
filament copied to clipboard

Picking transparent renderables

Open grassydragon opened this issue 2 years ago • 3 comments

Is your feature request related to a problem? Please describe. Filament only supports picking opaque renderables, however, it may be helpful to pick transparent renderables, for example, a glass Stanford dragon or an Android View renderable in SceneView.

Describe the solution you'd like It's possible to move picking to a separate pass so that transparent renderables can participate in picking without affecting the structure buffer. I've already created a patch that implements that. It may be also useful to support excluding materials from picking.

Describe alternatives you've considered Using AABB picking instead of Filament picking in SceneView, however, picking transparent renderables can be useful in other frameworks and applications.

OS and backend The feature isn't OS or backend specific.

grassydragon avatar Mar 05 '23 14:03 grassydragon

Hi @pixelflinger! May I open a pull request?

grassydragon avatar Mar 07 '23 06:03 grassydragon

Hi @pixelflinger! May I open a pull request?

Yes. I'm not guaranteeing I won't have lots of comments :⁠-⁠)

pixelflinger avatar Mar 07 '23 06:03 pixelflinger

Yes. I'm not guaranteeing I won't have lots of comments :⁠-⁠)

Thank you! It'll take some time since my work laptop failed yesterday and I need to recreate my changes :sweat_smile:

grassydragon avatar Mar 07 '23 06:03 grassydragon