godotengine / godot

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

GridMap remains visible if parent is set to not visible #41374

Closed tcoxon closed 3 years ago

tcoxon commented 4 years ago

Godot version: 3.2.2

OS/device including version: Ubuntu Linux 16.04, 64-bit GeForce GTX 970 with NVIDIA 384.130 driver GLES3 backend

Issue description: GridMaps remain visible in the editor and at runtime while parent spatial nodes are set to invisible.

Steps to reproduce:

  1. Create a GridMap node in a 3D scene
  2. Set the scene root to invisible
  3. Notice the GridMap remains visible while the rest of the scene is hidden.

Minimal reproduction project: GridMap-Visible.zip

If you run the project you can press space to toggle the visibility of the scene. Note that the DirectionalLight and the Sprite3D correctly hide while the GridMap remains on the screen.

Calinou commented 4 years ago

This was reported a long time ago in https://github.com/godotengine/godot/issues/907 (closed in 2017), but it seems the bug appeared again according to https://github.com/godotengine/godot/issues/10418#issuecomment-597557161.

Blizbor commented 4 years ago

Hi,

I just entered github to report same issue but found that existing report. I can confirm problem exist - same version (3.2.2 official binaries) on Windows 10, backend GLES3.

Anyway - amazing work guys, I like GODOT so much.

Cheers,

jamesdkay commented 3 years ago

Does anyone know if this issue is related to #40245, and if this solution will resolve that issue too?