godotengine / godot

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

CSG flicker / missing triangles / holes in the geometry at certain translations #43755

Open golddotasksquestions opened 3 years ago

golddotasksquestions commented 3 years ago

Godot version: Godot 3.2.3 stable, Godot 3.2.4 beta2

OS/device including version: Win 64, Nvidea

Issue description: CSG geometry does not seem stable, flickers at certain translations, generating holes in the geometry.

csg_flicker_3 2 4beta2

Previous related issue: https://github.com/godotengine/godot/issues/33121

There is also a very noticeable reduction in Editor framerate with only 10 CSG boxes in the scene.

Steps to reproduce:

  1. Create a new 3D scene,
  2. Add CSGCombiner node as child of the Spacial,
  3. Add CSGBox as child of the Combiner (floor), resize,
  4. Add another CSGBox as child of the Combiner (wall), resize and move,
  5. duplicate and move the wall a few times.

Minimal reproduction project: csg_flicker.zip

Calinou commented 1 year ago

Duplicate of https://github.com/godotengine/godot/issues/58637 (same cause – it's caused by coplanar faces).

akien-mga commented 1 year ago

Duplicate of #58637 (same cause – it's caused by coplanar faces).

74771 fixed #58637, but in my tests it didn't seem to fix the MRP in this issue, nor the one from #75862.

I don't know what's the difference but let's reopen this one for keeping track of the cases which aren't solved yet (as of the upcoming 4.1 dev 2). Confirmed reproducible as of 240ed28291ae87f06f7bcaa66e3d08530f210bf2.

MRP from #75862: HoleMissing.zip

The very old MRP from https://github.com/godotengine/godot/issues/22988#issuecomment-444313388 also still exhibits a missing triangle (see screenshot in https://github.com/godotengine/godot/pull/74771#issuecomment-1525515911).

fire commented 6 months ago

Testing some csg improvements.

image