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

Dimmed splash screen on Android #91576

Closed
lazyvainglory opened this issue May 5, 2024 · 7 comments
Closed

Dimmed splash screen on Android #91576

lazyvainglory opened this issue May 5, 2024 · 7 comments

Comments

@lazyvainglory
Copy link

lazyvainglory commented May 5, 2024

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

@Alex2782
Copy link
Contributor

Alex2782 commented May 5, 2024

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

setKeepScreenOn(java.lang.Boolean.parseBoolean(GodotLib.getGlobal("display/window/energy_saving/keep_screen_on")))

@lazyvainglory
Copy link
Author

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.

@Alex2782
Copy link
Contributor

Alex2782 commented May 7, 2024

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

@Calinou
Copy link
Member

Calinou commented May 7, 2024

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.

@lazyvainglory
Copy link
Author

@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.

Godot.Splash.Screen.Image.mp4

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.

@Alex2782
Copy link
Contributor

Alex2782 commented May 8, 2024

the splash image only appears for a split second.

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

10000 ms. = 10 sec.

@Calinou
Copy link
Member

Calinou commented May 8, 2024

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 #74348, as this is the same issue.

@AThousandShips AThousandShips closed this as not planned Won't fix, can't repro, duplicate, stale May 8, 2024
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

5 participants