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

Volumetric Fog stops working when enabling shadows for positional lights until 3D buffers are recreated #83685

Open
Tracked by #69579
Jamsers opened this issue Oct 20, 2023 · 3 comments

Comments

@Jamsers
Copy link

Jamsers commented Oct 20, 2023

Godot version

v4.2.beta2.official [f8818f8]

System information

Godot v4.2.beta2 - Windows 11 22H2 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 3060 Laptop GPU (NVIDIA; 31.0.15.4584) - AMD Ryzen 5 5600H with Radeon Graphics (12 Threads)

Issue description

In Bistro-Demo-Tweaked/4.2-dev, changing the "Quality Scaling" to High enables shadows for the lamppost Omnilights.

This happens:

Huh.mp4

But, as you can see, changing the render scaling in-game makes the issue go away?

Steps to reproduce

Reproduction steps as detailed at Bistro-Demo-Tweaked's #16:

  • Set the Density in the FogMaterial in the FogVolume to 0.2 (makes the issue much easier to see)
  • Run the demo
  • Set the Time Of Day to Night
  • Switch Quality Scaling between Normal and High

Changing Render Resolution in-game makes the issue go away.

Minimal reproduction project

I haven't been able to isolate a minimal reproduction project yet, I'll upload one as soon as I've found a root set of circumstances.

Issue can currently be reproduced at Bistro-Demo-Tweaked/4.2-dev.

@atirut-w
Copy link
Contributor

I made a small MRP for easier testing: volumetric_shadows.zip

When shadow is enabled, only a very small area of volumetric fog is lit up. A huge concern is that this issue is also reproducible on v4.1.2.stable.official [399c9dc] and that it also affect spot lights.

@Jamsers
Copy link
Author

Jamsers commented Oct 23, 2023

Oh nice, thank you! I actually tried creating an MRP but couldn't quite isolate the issue in a separate project. I'll check out your MRP instead. 👍

@jss2a98aj
Copy link

I have been encountering this as well in a large project, but was never able to reproduce it outside of it. Resizing the window should also fix the fog when this occurs.

@akien-mga akien-mga added this to the 4.x milestone Oct 30, 2023
@Calinou Calinou changed the title Volumetric Fog stops working when enabling shadows for omnilights Volumetric Fog stops working when enabling shadows for positional lights until 3D buffers are recreated Feb 12, 2024
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

6 participants