godotengine / godot

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

Rendering issues on mac #97980

Open chancemcdonaldsims opened 3 weeks ago

chancemcdonaldsims commented 3 weeks ago

Tested versions

I only testing with godot 4.3

System information

mac os 15.0.1 Godot 4.3

Issue description

Some materials cause graphics issue that are hard to work around. image

Steps to reproduce

the issues have happed when things involve transparency. In the photo included it is created with CSG volumes. When working with one the graphics issues happen. The artifacts are high frequency and hard to work with.

Minimal reproduction project (MRP)

issue.zip Rotating around scene shows graphic issues. Could be around z fighting issues.

AThousandShips commented 3 weeks ago

Please provide more system information, you can copy this information to your clipboard by using Help > Copy System Info at the top of the editor window.

bruvzg commented 3 weeks ago

Reproducible on both macOS and Windows. There's some visible Z-fighting between selected CGSBox and resulting shape.

The interference pattern is different (squares on M1 Mac, stripes on NVIDIA/Windows), but this is the same effect.

Screenshot 2024-10-08 200549
chancemcdonaldsims commented 3 weeks ago

Reproducible on both macOS and Windows. There's some visible Z-fighting between selected CGSBox and resulting shape.

The interference pattern is different (squares on M1 Mac, stripes on NVIDIA/Windows), but this is the same effect. Screenshot 2024-10-08 200549

Please provide more system information, you can copy this information to your clipboard by using Help > Copy System Info at the top of the editor window.

Godot v4.3.stable - macOS 15.0.0 - Vulkan (Forward+) - integrated Apple M1 Max - Apple M1 Max (10 Threads)

chancemcdonaldsims commented 3 weeks ago

Reproducible on both macOS and Windows. There's some visible Z-fighting between selected CGSBox and resulting shape.

The interference pattern is different (squares on M1 Mac, stripes on NVIDIA/Windows), but this is the same effect. Screenshot 2024-10-08 200549

@bruvzg So is it a bug or not? I don't know if this is avoidable but I don't recall any issues with CSG in past. I also had similar rendering issues with skinned meshes in Godot 4.3 when the meshes had transparency enabled.

chancemcdonaldsims commented 3 weeks ago

https://github.com/user-attachments/assets/5abdf3d7-f699-4c2b-9a9b-0f5c15e6c2bb

Just to provide more context this video provide more information on experience. It is actually sickening to watch this effect for me. I have a large monitor 43" and it produces a flashing effect that may effect people with disabilities more (like epilepsy). I actually having to switch to Blender to prototype because I can't endure effect anymore.

https://github.com/user-attachments/assets/45c102e6-2c04-49a5-8064-3a390059fca3

This is an imported model from mixamo. It has a similar effect so I think this is more than z fighting.

bruvzg commented 2 weeks ago

So is it a bug or not?

Yes, I would consider it a bug (just not a macOS specific).

This is an imported model from mixamo. It has a similar effect so I think this is more than z fighting.

This might be something completely different, in case of CGSBox it's likely cause by selection and shape having face in the same plane (both are generated from the same data, so this is expected, we probably should add some offset to the selection), there's no obvious reason for the model case (and seems like no transparency involved), not sure what's going on.