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.36k stars 1.84k forks source link

sample-hello-camera sometimes black on first run #2346

Open prideout opened 4 years ago

prideout commented 4 years ago

This Android sample often shows a black camera image on the very first run after a fresh install. The first run is the only run that shows a permission dialog, which might be related. I'm probably doing something wrong in my usage of the Camera2 API.

prideout commented 3 years ago

I see this same issue with the PreviewView that's used in https://github.com/google/filament/pull/3599