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

OmniLight3D Won't Cast Shadows Past a Distance of ~171 Units #96361

Closed
The-Raphie opened this issue Aug 31, 2024 · 4 comments · Fixed by #100319
Closed

OmniLight3D Won't Cast Shadows Past a Distance of ~171 Units #96361

The-Raphie opened this issue Aug 31, 2024 · 4 comments · Fixed by #100319

Comments

@The-Raphie
Copy link

Tested versions

  • Tested in and reproducible in: v4.3.stable.official [77dcf97], v4.2.stable.official [46dc277], v4.1.stable.official [9704596]

System information

Godot v4.3.stable - EndeavourOS #1 SMP PREEMPT_DYNAMIC Thu, 15 Aug 2024 00:25:30 +0000 - X11 - Vulkan (Forward+) - dedicated NVIDIA GeForce GTX 1660 Ti (nvidia; 555.58.02) - Intel(R) Core(TM) i7-10750H CPU @ 2.60GHz (12 Threads)

Issue description

When casting a shadow with an OmniLight3D with a distance more than ~171 units from the object being casted on, and an omni_attenuation of 0, the shadow becomes too unclear to the point of it not being able to be seen. With an omni_attenuation greater than 0, the shadow becomes unclear with an even shorter distance from the object.
image

Steps to reproduce

  1. Create a 3D scene.
  2. Add a MeshInstance3D node as a child of root with its mesh being a PlaneMesh.
  3. Add another MeshInstance3D node as a child of root with its position being (0,1,0), and its mesh being a BoxMesh.
  4. Add an OmniLight3D node as a child of root with its omni_range being 300, its omni_attenuation being 0, its position being (0,171,0), and its shadow_enabled property toggled on.
  5. Toggle off preview sunlight in the scene.

Minimal reproduction project (MRP)

godot-issue.zip

@passivestar
Copy link
Contributor

Related: #92551

@The-Raphie
Copy link
Author

Which version should this bug be patched by?

@AThousandShips
Copy link
Member

We don't know what's wrong yet and haven't identified a solution so we don't know yet

@The-Raphie
Copy link
Author

The-Raphie commented Sep 16, 2024

Wait, could it have anything to do with the limited size of shadow maps? If so, what could be possible solution without having to crank up rendering/lights_and_shadows/positional_shadow/atlas_size to a crazy high amount?

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

Successfully merging a pull request may close this issue.

3 participants