godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
89.74k stars 20.85k forks source link

Vulkan: Faces on objects with several surfaces disappear under some angles #70759

Open solek1312 opened 1 year ago

solek1312 commented 1 year ago

Godot version

4.0 Beta 10

System information

Linux Mint 21, Vulkan, Intel Iris Xe (Intel i5-1135G7)

Issue description

Faces disappear under certain angles on some imported glTF meshes, both in editor, and in built projects. Issue seems to be worse on lower target resolutions, and on larger meshes. It's visible on large meshes with many surfaces, once you delete some of them, issue disappears. Issue doesn't exist when the same meshes are viewed through other glTF viewer apps.

1 2

Steps to reproduce

  1. Create a large mesh with several surfaces in Blender
  2. Import it
  3. View in editor or build project

Minimal reproduction project

test_surfaces.zip

clayjohn commented 1 year ago

This is an issue with the automatic LOD generation. If you increase the MeshInstance3Ds lod_bias it will fix the mesh for now.