godotengine / godot

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

Grid Map Crashes & "Ghost" Meshes #79541

Open Kajinor opened 1 year ago

Kajinor commented 1 year ago

Godot version

4.1.1.rc1

System information

macOS Ventura 13.4.1, Godot 4.1.1.rc1, Vulkan(Forward+)

Issue description

I heard that 3D Grid Maps do not receive much love it seems and are not so often used and therefore, seem to have bugs in 4.1 which makes them hard to use at the moment. There are two main issues which are connected I think:

  1. After a short while working(5-10 minutes) with grid maps, maybe after updating the meshlib with a new mesh, one or multiple "ghost" meshes will appear in the scene. Means meshes which are not part of any node and are also displayed when switching to a different tab/scene. There is no way to fix this except restarting Godot. There is also no way to select or interact with those "ghost" meshes.
  2. Shortly after 1., the Editor will crash after a short while if you continue working. Doing that will make even more "ghost" meshes appear, maybe even a duplicate of the entire grid map but with different cells might appear.

If grid maps have not that much importance than I would recommend to remove the feature maybe and just enhance the regular scene editor to make it easier placing 3D tiles without copy&paste over and over again. Maybe also with support for multi-mesh instances. But that would be a separate thing I think.

I wonder if someone else has the same issue?

Steps to reproduce

Unfortunately I haven't found a step by step guide yet to reproduce it but it happens quickly, it should only take 5-10 minutes trying to work with this. I recommend:

  1. Create a new project, create a scene where you will add several meshes and then export it as meshlib.
  2. Create another scene with a grid map and use the mesh lib try to create a level.
  3. Then inbetween go back to your meshlib, import and add some new meshes to it by dragging the files into the node tree and reexport.
  4. Also try to have some other scenes, switch between them, save, etc.

Not sure if that steps will immediately causing the bugs ,but it shouldn't long if you pretend to build a serious level and also switching between scenes, etc. If I figure out more I will update this issue.

Minimal reproduction project

N/A

Hiiamwilliam commented 1 year ago

There's an older issue about ghosts, could be related: https://github.com/godotengine/godot/issues/50323. A more recent one: https://github.com/godotengine/godot/issues/70890 In Godot 3, if you make another selection (Shift + Left mouse) then either copy or cut the ghosts should disappear.

I don't know if these can cause crashes tho.