godot
godot copied to clipboard
[WebGL] - GL_INVALID_OPERATION: Insufficient buffer size due to automatic mesh LOD
Godot version
4.0.stable
System information
WebGL, Windows 11
Issue description
Some .glb (.fbx and .dae too) mesh don't show after a certain distance
Scene on web - WebGL:

Scene running on Desktop - OpenGL

Error:

Steps to reproduce
- Create project
- Add .glb to Scene
- Add Camera3D
- Play on Web
Minimal reproduction project
This is an issue with automatic mesh LOD rendering. OBJ meshes don't have those generated, so the issue doesn't affect them.
As a workaround, select the glTF scene in the FileSystem dock and disable Generate Lods in the Import dock.
This works, thanks
I think there needs to be a global disable for lod and be set on by default for the web.
Alternatively we can debug why.