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 Clustered: SpotLight3D clustering artifacts with no fog or other effects #70698

Closed
PieKing1215 opened this issue Dec 29, 2022 · 4 comments · Fixed by #71832
Closed

Vulkan Clustered: SpotLight3D clustering artifacts with no fog or other effects #70698

PieKing1215 opened this issue Dec 29, 2022 · 4 comments · Fixed by #71832

Comments

@PieKing1215
Copy link

Godot version

4.0.beta10.official [d0398f6]

System information

Windows 10, Vulkan, NVIDIA GeForce RTX 2060m (31.0.15.2698)

Issue description

I'm getting some kind of clustering/blocky artifact when using spotlights, with no fog or any fancy rendering stuff whatsoever.
I've looked through a bunch of similar issues, but the only ones I could find were related to volumetric fog or other environment effects that I am not using.
Not sure if I'm just missing something, but I think I've played with every option in the spotlight and every option in a WorldEnvironment and nothing makes it go away.

The only lead I have is that the intensity of the artifact seems to be affected by the spot angle. It cycles in a sawtooth pattern every ~0.07 degrees.

image

Lmk if you need more info or need me to try anything.

Steps to reproduce

  1. New Project (Forward+)
  2. Put down some MeshInstance3Ds as a backdrop
  3. Put a SpotLight3D
  4. Raise spotlight intensity, lower spot angle, and increase range to see it better
  5. Slowly increase spot angle to see cycling effect

Minimal reproduction project

testspotlight.zip

@solek1312
Copy link

Screenshot from 2022-12-31 09-42-56
Haven't confirmed it, looks normal to me.

But I do see a similar effect when I look along a spotlight on this particular omnilight attached to a navigation agent. Doesn't happen with the other ones, might investigate.

3

@Calinou
Copy link
Member

Calinou commented Dec 31, 2022

Related to #59262 and #45469.

@solek1312 Which operating system and graphics card model are you using?

@Calinou Calinou changed the title Vulkan: SpotLight3D clustering artifacts with no fog or other effects Vulkan Clustered: SpotLight3D clustering artifacts with no fog or other effects Dec 31, 2022
@solek1312
Copy link

Related to #59262 and #45469.

@solek1312 Which operating system and graphics card model are you using?

Intel i5-1135g7 integrated card, Linux Mint 21

@Calinou
Copy link
Member

Calinou commented Jan 21, 2023

I can confirm this on 4.0.beta 621e329 (Linux, GeForce RTX 4090 with NVIDIA 525.60.11).

image

The artifacts' visibility depends on the camera's angle relative to the light and the surface.

If you increase the angle slowly, notice how the light ends up being negative or NaN at certain angles:

Warning: The video below has some flashing lights.

simplescreenrecorder-2023-01-21_02.40.42.mp4

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

Successfully merging a pull request may close this issue.

4 participants