Black screen on real device and emulator
n00ner opened this issue · comments
Create a sample app with skybox, but I got black screen
Activity
https://gist.github.com/n00ner/57d52fa6b3cf0c5124f778b7aed7fef5
Cpp code
https://gist.github.com/n00ner/268944df9d7f1525bfdfe94ddd65c26a
https://gist.github.com/n00ner/978e9e6c6f94ec3544a78c36f40bcaf0
Logs:
2022-04-24 22:16:17.839 21731-21731/net.n00ner.myapplication I/Filament: FEngine (64 bits) created at 0x7700aca2c0 (threading is enabled)
2022-04-24 22:16:17.840 21731-23497/net.n00ner.myapplication D/Filament: Using ASurfaceTexture
2022-04-24 22:16:17.840 21731-23497/net.n00ner.myapplication D/Filament: FEngine resolved backend: OpenGL
2022-04-24 22:16:17.843 21731-23497/net.n00ner.myapplication V/Filament: [ARM], [Mali-G72], [OpenGL ES 3.2 v1.r26p0-01eac0.###other-sha0123456789ABCDEF0###], [OpenGL ES GLSL ES 3.20]
2022-04-24 22:16:17.843 21731-23497/net.n00ner.myapplication V/Filament: Active workarounds:
vao_doesnt_store_element_array_buffer_binding
allow_read_only_ancillary_feedback_loop
render frame called normally by choreographer, render works without issues (beginFrame return true)
In Debug all objects not nullptr
I just looked at your code: you’re not setting any projection on your camera nor are you defining the viewport on the view. For instance:
This works thanks a lot @romainguy !