godotengine / godot

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

`CollisionShape3D` size gizmos disappear as soon as refraction is activated on a material behind the shape #93547

Open Klaim opened 4 months ago

Klaim commented 4 months ago

Tested versions

System information

Godot v4.3.beta2 - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3080 Ti (NVIDIA; 31.0.15.5222) - AMD Ryzen 9 5900X 12-Core Processor (24 Threads)

Issue description

CollisionShape3D size gizmos disappear as soon as refraction is activated on a material behind the shape:

image

This does not affect CSG size gizmos: image

Steps to reproduce

  1. In a 3D scene, create a CSGBox3D
  2. Add a StandardMaterial3D material to that box and enable Refraction in that material
  3. In a different position, create either an Area3D or RigidBody3D
  4. Add a child node of type CollisionShape3D and set it's shape to BoxShape3D or any other shape really
  5. Align the editor's camera so that the collision box is in front of the csgbox
  6. Select the collision shape -> size gizmos are not visible over the csgbox

Minimal reproduction project (MRP)

godot-repro_case-collisionshape3d_gizmo.zip

jsjtxietian commented 4 months ago

Not only CSGBox, but also many others, like raycast:

image

Klaim commented 4 months ago

Indeed, it's easier to see on 3D volumes and you might not notice depending on the shape and surrounding graphics.