Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vulkan: LightmapGI generates completely black output and probes on macOS (Intel driver bug) #80154

Open
Tracked by #56033
m-decoster opened this issue Aug 2, 2023 · 9 comments

Comments

@m-decoster
Copy link

Godot version

v4.1.1.stable.official [bd6af8e]

System information

macOS Big Sur, Macbook Pro Mid 2014 (Intel Iris Pro 1536 MB)

Issue description

Baking lightmap data results in a completely black scene filled with black lightmap probes.

The directional light's bake mode is set to static and all meshes in the scene have UV2 (confirmed visually with "View UV2").

Screenshot 2023-08-02 at 10 01 55

Steps to reproduce

  1. Create a new scene with a Node3D.
  2. Add some MeshInstances with primitive meshes.
  3. For every mesh, click "Add UV2".
  4. Add a DirectionalLight3D to the scene and set its Bake Mode to "Static".
  5. Add a LightmapGI node to the scene and click "Bake Lightmaps".

Minimal reproduction project

Archive.zip

@clayjohn
Copy link
Member

clayjohn commented Aug 2, 2023

Here is the result from opening your test scene and clicking "bake lightmaps" using PopOS and intel integrated graphics
image

Accordingly, I'm guessing that this is a macOS-only issue

@clayjohn clayjohn added this to the 4.x milestone Aug 2, 2023
@Calinou Calinou changed the title LightmapGI generates completely black output and probes Vulkan: LightmapGI generates completely black output and probes Aug 2, 2023
@Calinou Calinou changed the title Vulkan: LightmapGI generates completely black output and probes Vulkan: LightmapGI generates completely black output and probes on macOS Aug 2, 2023
@mibu-games
Copy link

I have the same on Linux with Intel UHD Graphics 620.
It doesn't work on most scenes and drops plenty of errors like these:

drivers/vulkan/vulkan_context.cpp:2796 - Condition "err" is true.
drivers/vulkan/vulkan_context.cpp:2803 - Condition "!ld->waiting" is true.
Vulkan: Device lost!

@Calinou
Copy link
Member

Calinou commented Mar 13, 2024

I can't reproduce this on 4.3.dev 9b94c80 (Linux, GeForce RTX 4090 with NVIDIA 550.54.14).

@mibu-games
Copy link

On 4.3.dev4 I get black lightmap and hundreds of errors:

drivers/vulkan/rendering_device_driver_vulkan.cpp:2014 - Condition "err != VK_SUCCESS" is true. Returning: FAILED

@passivestar
Copy link
Contributor

Can't reproduce

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

image

@Calinou Calinou changed the title Vulkan: LightmapGI generates completely black output and probes on macOS Vulkan: LightmapGI generates completely black output and probes on macOS (Intel driver bug) Apr 3, 2024
@aprats1
Copy link

aprats1 commented May 8, 2024

I have the same problem with Ubuntu 24.04 and Godot version 4.2.2 on a laptop with a fairly basic, not very powerful graphics card, Nvidia GeForce MX250. Theoretically, my graphics card is compatible with Vulkan...

I don't know, let's see if we can solve this.

@mibu-games
Copy link

I noticed that it works only when resulting textures are very tiny, up to 256x256 - Fedora 40, Intel UHD Graphics 620, 24GB RAM.

@unaiLarra
Copy link

Same error here with Intel UHD Graphics 620 graphics, 16GB running Pop!_Os and godot 4.2.2

@Calinou
Copy link
Member

Calinou commented Jul 26, 2024

@mibu-games @unaiLarra This is an unrelated issue (OP is on macOS but you're on Linux), so please open a separate issue for that instead. Also, did you reproduce this issue with the minimal reproduction project uploaded by OP? If not, please upload your own MRP where you reproduced the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

7 participants