godot icon indicating copy to clipboard operation
godot copied to clipboard

[WebGL] - GL_INVALID_OPERATION: Insufficient buffer size due to automatic mesh LOD

Open Henrique-Henrique opened this issue 2 years ago • 3 comments

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: example

Scene running on Desktop - OpenGL example pc

Error: image

Steps to reproduce

  1. Create project
  2. Add .glb to Scene
  3. Add Camera3D
  4. Play on Web

Minimal reproduction project

RenderExample.zip

Henrique-Henrique avatar Mar 02 '23 00:03 Henrique-Henrique

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.

Calinou avatar Mar 02 '23 23:03 Calinou

This works, thanks

Henrique-Henrique avatar Mar 05 '23 03:03 Henrique-Henrique

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.

fire avatar Mar 06 '23 16:03 fire