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

[Web] Terrain3D Fails to Render the Ground Shader in a Browser on iPhones #623

Open
FeralBytes opened this issue Feb 16, 2025 · 3 comments

Comments

@FeralBytes
Copy link

Terrain3D version

v1.0.0-dev

System information

Godot 4.4.beta3 Compatibility WebGL, both Safarri & Chrome tested on iPhone 15 iOS 18.3.1 & iPhone 13 iOS 17.5.1

Is the issue reproducable in the demo?

Yes

Issue description

The terrain does not render the mesh material. Collisions are working though.
These are screen shots from an iPhone 15:
Image

Image
The Terrain should look like this:
Image
The above image was captured on a Linux Mint computer running Firefox.
The image below is from my Samsung S21 Android device running Firefox:
Image
The S21 is also able to run the game in Chrome too with the same nice looking results.

The image below is from a iPhone 13 running the demo:
Image
The demo is also missing the terrain material, though physics is working.

Logs

I do not own these devices personally. So unfortunately I can not provide logs. As such I do not expect you to take any action on it. If I am able to acquire logs in the future then I will post back when I have more details. Thank you again for your help and your awesome terrain.

@TokisanGames
Copy link
Owner

Safarri & Chrome tested on iPhone 15 iOS 18.3.1 & iPhone 13 iOS 17.5.1

Neither safari nor chrome on the iphones rendered? Which browser versions? The browser is doing the rendering, so if it's old, it won't support Webgl.

We can't do anything to fix browser support for webgl. That's between OS, GPU drivers, browsers, and godot.

We can provide a webgl compatible shader, which we have done.

@FeralBytes
Copy link
Author

FeralBytes commented Feb 17, 2025

@TokisanGames I will get the browser versions from the 2 devices. Per the pictures the devices were rendering some of the games in WebGL, they just were not rendering the terrain. But I also agree this could just be an area in which Apple devices are lacking as they have historically done.

Edit: iPhone 15 browser details: Safari is the same as the iOS version # 18.3.1 and Google version 133.0.6943.84 which looks pretty close to Stable LTS according to Googles Blog.

@TokisanGames
Copy link
Owner

A lot of systems don't implement the full opengl spec and lack features such as texture arrays. Including Godot. E.g D3D12 is not supported because Godot hasn't finished implementing TAs.

IOS and macos have poor support for 3D.

Latest chrome supports everything on desktop which suggests the lack is in the OS, driver, or Godot.

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

No branches or pull requests

2 participants