Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gridmap not rendering on Android with GLES2 #23616

Closed
crazychenz opened this issue Nov 9, 2018 · 7 comments
Closed

Gridmap not rendering on Android with GLES2 #23616

crazychenz opened this issue Nov 9, 2018 · 7 comments

Comments

@crazychenz
Copy link

Godot version: 3.1 alpha 2

OS/device including version: Android 7.0 / Moto G5 Plus / GPU: Adreno 506 w/ GLES2

Issue description: When using a standalone Static Mesh and a Gridmap on a very simple project, everything renders fine on the Windows 10 machine. When the exact same project is built for Android, only the Static Mesh is shown. Its as if the Gridmap's meshes or the gridmap are not rendering at all.

Steps to reproduce:

  1. Create MeshLibrary.
  2. Create Spatial scene with GridMap.
  3. Export and run for Android in GLES2 mode.
  4. No gridmap shown on Android device.

Minimal reproduction project:
sanitycheck.zip

@Zireael07
Copy link
Contributor

Do you run GLES2 or GLES3 on Windows 10?

@crazychenz
Copy link
Author

GLES2

@TIBI4
Copy link

TIBI4 commented Jan 26, 2019

Game blinks on splash screen when there is a GridMap with a Mesh Library set, and then crashes.
If GridMap's Mesh Library is [empty] it does not happen.

Android export with GLES2 and Godot 3.1 beta 2.

@akien-mga akien-mga added this to the 3.1 milestone Jan 26, 2019
@akien-mga akien-mga changed the title Gridmap Not Rendering on Android in 3.1 alpha 2 Gridmap not rendering on Android with GLES2 Jan 26, 2019
@TIBI4
Copy link

TIBI4 commented Jan 27, 2019

I want to change something about my last comment, because when my game started to crash I started searching the source of the error, and while kept trying to solve the problem, I found that is not something about Mesh Libraries, but their SpatialMaterial>Albedo>Texture. So:

  • Game blinks on splash screen when there is a GridMap with SpatialMaterial>Albedo>Texture or when I use models with SpatialMaterials>Albedo>Texture.
  • When the GridMap is using plain colors (Material>Albedo>Texture [empty]) or when I use models without their respective Material>Albedo>Texture ([empty]), Godot does not crash in Android.

Please take a moment to see these images.
Windows export: It can be used with SpatialMaterial>Albedo>Texture attached, so I used Materials>Albedo>Texture different to [empty]. (Image)
Android export: It can't be used with SpatialMaterial>Albedo>Texture attached, so I did not use them. (Image)
That's it.

If it was not understood, please just ask me for a video or a gif, I will reply as soon as possible.

Game blinks on splash screen when there is a GridMap with a Mesh Library set, and then crashes.
If GridMap's Mesh Library is [empty] it does not happen.

Android export with GLES2 and Godot 3.1 beta 2.

@akien-mga
Copy link
Member

Make sure that you are importing the textures in ETC format:

  • Enable rendering/vram_compression/import_etc
  • Delete your res://.import folder to force a reimport

@TIBI4
Copy link

TIBI4 commented Jan 27, 2019

I found this: #25365

And there, you said that we need to disable ETC2 and enable ETC. I did it, and worked!. Thanks!.

Make sure that you are importing the textures in ETC format:

  • Enable rendering/vram_compression/import_etc
  • Delete your res://.import folder to force a reimport

@akien-mga
Copy link
Member

Closing as duplicate of #23650 then. Please comment if you can still reproduce it after following these steps: #23616 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants