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: Broken colors when baking LightmapGI #65586

Closed
Tracked by #56033
RedMser opened this issue Sep 9, 2022 · 4 comments · Fixed by #65807
Closed
Tracked by #56033

Vulkan: Broken colors when baking LightmapGI #65586

RedMser opened this issue Sep 9, 2022 · 4 comments · Fixed by #65807

Comments

@RedMser
Copy link
Contributor

RedMser commented Sep 9, 2022

Godot version

4.0.dev (ce6f284)

System information

Windows 10 64-bit, Vulkan Clustered, NVIDIA RTX 2080, Driver version 497.09

Issue description

I was trying to debug another issue related to lightmap baking. I created a simple MRP which creates a very broken bake texture:
image

Steps to reproduce

  • Create a simple .blend file for the scene - mark it for lightmap bake
  • Add directional light node to be baked
  • Create LightmapGI, set camera attributes, reduce quality to Low
  • Bake and look at the results

Minimal reproduction project

lightmap_corruption.zip

@RedMser
Copy link
Contributor Author

RedMser commented Sep 9, 2022

On the official alpha 16 build, I only manage to get a black bake result
image

The bake works as expected in alpha 11. I don't have other alpha versions available to test, but I'll take a shot into the dark and say it's due to #63751

@Calinou Calinou changed the title Broken colors when baking LightmapGI Vulkan: Broken colors when baking LightmapGI Sep 9, 2022
@Calinou Calinou added this to the 4.0 milestone Sep 9, 2022
@Calinou
Copy link
Member

Calinou commented Sep 9, 2022

I can confirm this on 4.0.alpha ce6f284 (Linux, NVIDIA 515.65.01).

I get a different result though:

image

Setting LightmapGI's environment mode to Scene gives me this:

image

@RedMser Which graphics card model and driver version are you using?

@RedMser
Copy link
Contributor Author

RedMser commented Sep 9, 2022

Updated the original post with specs. Since 516.94 is latest, I'll need to check after an update, but since you seem to have issues as well it might be unrelated.

@clayjohn
Copy link
Member

The bake works as expected in alpha 11. I don't have other alpha versions available to test, but I'll take a shot into the dark and say it's due to #63751

You have good intuition. I just tried building immediately before and after #63751 and can confirm that it introduced the issue. Fix coming in shortly.

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

Successfully merging a pull request may close this issue.

3 participants