godot_heightmap_plugin icon indicating copy to clipboard operation
godot_heightmap_plugin copied to clipboard

Black screen in android

Open TomerconDevelopers opened this issue 2 years ago • 3 comments

Works fine in pc, but when i export it to apk, It shows black screen in android device image My android device supports gles2, gles3, vulkan

Environment

  • OS: [e.g. iOS]
  • Graphics card (you can find out in Godot's console log)
  • Godot version [e.g. 3.2.1]
  • Plugin version (or commit hash if you got it from Github directly)
  • Renderer used: note that GLES2 is not supported.

TomerconDevelopers avatar Oct 23 '22 09:10 TomerconDevelopers

Which Android device model are you using, and which Android version is it running?

Calinou avatar Oct 23 '22 15:10 Calinou

I can't really fix this in the plugin, I'm using only features of Godot 3 which are GLES3 features. But maybe changing the shader for your case could help. My only guesses are:

  • Your device doesnt properly supports the full extent of GLES3
  • Godot has a bug that wasn't addressed on this Android device
  • Rendering this hits your device's limits such as how many textures a shader can have (depends on how you setup your terrain). In that last point it doesnt matter if you havent actually setup textures, if the shader declares too many texture slots (uniforms) it might break. I have no control in how many slots Godot uses internally, and some amount of slots are required to render terrain. I also cannot know what the limit is (no API for this AFAIK). If it is too low, it might be that using this plugin on that model isn't feasible, even if GLES3 is claimed to be supported.

MGilleronFJ avatar Oct 24 '22 10:10 MGilleronFJ

Most likely the last point, tbh.

Zireael07 avatar Oct 24 '22 10:10 Zireael07