godotengine / godot

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

GODOT 4.1.1 Simple 3d gridmap causes some gaps during movement/ on certain cordinates #82787

Closed atsd34 closed 1 year ago

atsd34 commented 1 year ago

Godot version

Godot_v4.1.1-stable_mono_win64

System information

Godot v4.1.1.stable.mono - Windows 10.0.19045 - Vulkan (Compatibility) - NVIDIA GeForce GTX 1660 Ti with Max-Q Design (NVIDIA; 31.0.15.3734) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 Threads)

Issue description

On a simple character movement+ 3d grid with repeating tiles; there are some weird black lines during movement.

When character moves sometimes black/gray/white (depending on setup) lines appear when you slightly move it disappears again. image

Steps to reproduce

1- Create a 3d scene 2- add gridmap I have tried grid size as 1, 0.99, 0.9,0.5 nothing works 3- fill with same tile 4- add a character 5- during run

Minimal reproduction project

bleed.zip

bitsawer commented 1 year ago

Thanks for the report. Looks like a duplicate of https://github.com/godotengine/godot/issues/16337, https://github.com/godotengine/godot/issues/79081 and https://github.com/godotengine/godot/issues/35067 (issues apply to Godot 4.x too). It's not really a bug with GridMap, it's a fundamental problem when rendering almost overlapping surfaces. Linked issues discuss several options and workarounds that might work for you.