godot icon indicating copy to clipboard operation
godot copied to clipboard

Dimmed splash screen on Android

Open lazyvainglory opened this issue 1 year ago • 1 comments

Tested versions

Reproducible on Godot 4.2.1 stable.

System information

Windows 11, JDK 17(Also tried JDK 22), Android SDK Build Tools 33

Issue description

Exporting to android shows a very dimmed splash screen.

Steps to reproduce

Create a project with mobile renderer. Add your android preset in export. Enable Import ETC2 ASTC in VRAM Compression. Provide unique package name. Export the project or run a remote debug. Launch the app.

Expected Result: Bright or at least color accurate splash screen image would appear when you launch the app. Actual Result: Very dim splash screen image

Minimal reproduction project (MRP)

I believe this isn't project dependent but just in case the project below should be dim.

Dim Splash Screen.zip

lazyvainglory avatar May 05 '24 05:05 lazyvainglory

It is probably this function. I'm not sure yet whether it will be activated before the splash screen.


Bildschirmfoto 2024-05-05 um 15 01 08

https://github.com/godotengine/godot/blob/7ebc866418b075df58cbe4e31fcf8b0c3acd70a1/platform/android/java/lib/src/org/godotengine/godot/Godot.kt#L479

Alex2782 avatar May 05 '24 13:05 Alex2782

I just tested on version 4.2.2, and the issue also exists there. Someone in the forum suggested changing to gl_compatibility, but it did not work for me. I wonder if there is a temporary workaround.

lazyvainglory avatar May 07 '24 00:05 lazyvainglory

Can you also reproduce it if you override the splash screen? Use a different image file and display it for longer. For example 3000 ms, does the splash screen remain dark for 3 seconds?

Bildschirmfoto 2024-05-07 um 18 44 27

Alex2782 avatar May 07 '24 16:05 Alex2782

Are you using the default splash screen in your project or a custom splash screen image? If using a custom splash screen image, make sure it's using the Lossless compression mode in the Import dock. Other compression modes may not work correctly.

Calinou avatar May 07 '24 18:05 Calinou

@Alex2782 So I tried what you suggested, but I extended the duration to 10 seconds just to exaggerate the result. Apparently, the splash image only appears for a split second. When I slowed down the recording, it was visible only until the app became full screen. By the way, it’s also dim during the time it appeared.

https://github.com/godotengine/godot/assets/45304248/5e9043f8-b80f-4e2a-a9ed-e05e27511021

I also discovered an inconsistency with the splash image size as well. However, since it has already been discussed here, I won’t delve into it any further.

@Calinou I tried both the default and custom splash images. Additionally, I ensured that their compression is lossless, but they still appear dim.

lazyvainglory avatar May 08 '24 01:05 lazyvainglory

the splash image only appears for a split second.

@lazyvainglory is your input value 10 ms or 10000 ms?

10000 ms. = 10 sec.

Alex2782 avatar May 08 '24 11:05 Alex2782

I get what's happening now, based on the video output. The splash screen drawn by Godot is actually black all along. The image you're seeing for a split second when opening the app is Android's own placeholder image, which is a static image defined in the APK and not something drawn by Godot.

Thanks for the report! Consolidating in https://github.com/godotengine/godot/issues/74348, as this is the same issue.

Calinou avatar May 08 '24 15:05 Calinou