-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Update web demo exports for Godot 4.3 #1127
Conversation
592e9b3
to
9417ff3
Compare
This comes with other improvements: - Demos now work on desktop and mobile browsers, as ETC2 import is now automatically enabled before exporting each demo. - Progressive web app is available for each project. - Can be added to the home screen on a device for a closer-to-native experience. - Cross-origin isolation headers are automatically added, so that the export works with threads enabled despite being hosted on GitHub Pages (which doesn't send these headers). Several demos will need further tweaks to look better when using the Compatibility rendering method. Currently, many 3D demos appear too bright due to lights with shadows enabled using sRGB blending. Also, many demos will need to be modified to indicate which parts of them are not supported when running on the web platform, or when using the Compatibility rendering method.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I randomly selected a few to test the web demos and they seemed to run on macos firefox.
Did not test support on the phones but need help.
The builds play so cross origin is working.
@Calinou Do you think we should yolo merge it or test each by each with a matrix?
I think |
Compatibility is always used on the web platform, as web browsers don't support Vulkan. Godot doesn't support WebGPU yet, which would be required to support Forward+/Mobile on the web platform. If the demo takes a long time to load on a mobile device, it's likely because the demo is quite demanding on top of running on a slow device with significant overhead from WebAssembly. The PCK's filesize is almost 100 MB after all due to all the panorama images, even after being downsized to ~67% on each axis. |
This comes with other improvements:
Several demos will need further tweaks to look better when using the Compatibility rendering method. Currently, many 3D demos appear too bright due to lights with shadows enabled using sRGB blending.
Also, many demos will need to be modified to indicate which parts of them are not supported when running on the web platform, or when using the Compatibility rendering method. I'll open a separate PR to handle this.
Try the demos with this link: https://calinou.github.io/godot-demo-projects/