godot_heightmap_plugin
godot_heightmap_plugin copied to clipboard
Black screen in android
Works fine in pc, but when i export it to apk, It shows black screen in android device
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.
Which Android device model are you using, and which Android version is it running?
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.
Most likely the last point, tbh.