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

Android exports with Vulkan even in compatibility mode #79269

Closed
theromis opened this issue Jul 10, 2023 · 14 comments
Closed

Android exports with Vulkan even in compatibility mode #79269

theromis opened this issue Jul 10, 2023 · 14 comments

Comments

@theromis
Copy link
Contributor

Godot version

4.1

System information

Macos - godot 4.1 - compatibility mode

Issue description

Can switch GL compatibility mode for android

Steps to reproduce

Export project (it have glow enabled) which should not work in GL compatibility mode but on android it still glowing

Minimal reproduction project

AndroidTest.zip

@clayjohn
Copy link
Member

I can't reproduce this issue. I have tested using the example project in 4.0.3 and 4.1-stable. In both cases the project runs on Android without glow.

Notably however, the MRP doesn't contain an export preset, have you overridden any export options locally that may be affecting this?

@theromis
Copy link
Contributor Author

Doublechecked on other test project, in my case seems like problem not in choosing platform but if initially project was exported for mobile and later I'm switching it into compatibility mode and vise versa it not switching it by some reason.

PS: I'm exporting using gradle build

@theromis
Copy link
Contributor Author

theromis commented Jul 10, 2023

checked without gradle build - same issue

@clayjohn
Copy link
Member

Are you sure that you are actually installing the new version then? Perhaps something is going wrong in your installation process and you are just running the same executable over and over?

@theromis
Copy link
Contributor Author

theromis commented Jul 10, 2023

@clayjohn doing uninstall on android every time and running adb install test.apk, also removing test.apk before every export

@akien-mga
Copy link
Member

Can you reproduce the issue with the reproduction project that you attached? It's configured to use gl_compatibility for all platforms (default, and .mobile override), so it would never show glow on any platform.

If you only reproduce it in another project, can you show how the rendering_method setting and its overrides are configured there?

@theromis
Copy link
Contributor Author

@akien-mga
Attached project with removed keys and andoird folder but with .godot/export_credentials.cfg.
AndroidTest2.zip
right now it set to rendering_method set to Mobile and it "glowing"
but it not works on android.

@clayjohn
Copy link
Member

right now it set to rendering_method set to Mobile and it "glowing"
but it not works on android.

What do you mean it doesn't work on Android?

When I test this new MRP, it still uses the GLES3 renderer on Android, as it should

@theromis
Copy link
Contributor Author

theromis commented Jul 10, 2023

please correct me if I'm wrong
rendering_method = Mobile (vulkan on, GLES3 off and glow works)
rendering_method = Compatibility (vulkan off, GLES3 on and glow not works)
in the last attached project rendering_method = Mobile meaning to me vulkan should be on and glow should work
but glow not works

@clayjohn
Copy link
Member

please correct me if I'm wrong rendering_method = Mobile (vulkan on, GLES3 off and glow works) rendering_method = Compatibility (vulkan off, GLES3 on and glow not works) in the last attached project rendering_method = Mobile meaning to me vulkan should be on and glow should work but glow not works

The second MRP had

rendering_method = Mobile (Vulkan on, Glow works; used when exporting to desktop)
rendering_method.mobile = GL_Compatibility (GLES3 on, Glow does not work; used when exporting to Android/iOS)

When I tested, glow was working when viewing the scene in the editor on desktop, but there was no glow when exporting to Android, as expected

@theromis
Copy link
Contributor Author

just found
Screenshot 2023-07-10 at 8 23 45 AM

renderer/rendering_method="mobile"
renderer/rendering_method.mobile="gl_compatibility"

this is my problem, have to do extra switch for it
thank you for helping me

@clayjohn
Copy link
Member

Do you still have an issue with the first MRP? Your original post said that you were still getting glow when you set the rendering_method to gl_compatibility.

Or is your main scene set to?

rendering_method = GL_Compatibility
rendering_method.mobile =  Mobile 

@theromis
Copy link
Contributor Author

renderer/rendering_method="mobile"
renderer/rendering_method.mobile="mobile"

tested, now it glowing

maybe for easier future development better to switch both of this parameters on top right menu change, because it confusing

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

4 participants