mesh both receive and cast shadow seems odd

Description of the problem

This form is for three.js bug reports and feature requests only.

This is NOT a help site. Do not ask help questions here.
If you need help, please use the forum or stackoverflow.

Describe the bug or feature request in detail.

Always include a code snippet, screenshots, and any relevant models or textures to help us understand your issue.

Please also include a live example if possible. You can start from these templates:

Three.js version
  • Dev
  • r91
Browser
  • All of them
  • Chrome
  • Firefox
  • Internet Explorer
OS
  • All of them
  • Windows
  • macOS
  • Linux
  • Android
  • iOS
Hardware Requirements (graphics card, VR Device, …)

Here is an example, export from threejs.org/editor

scene.json.zip

thanks!

Author: Fantashit

1 thought on “mesh both receive and cast shadow seems odd

  1. In short:

    Problems:

    • shadow mapping algorithm is rather simple, more complex algorithms address this issue to some degree
    • shadowmap resolution is too low in the acne region. This can be addressed by increading resolution or tightening the shadow camera frustum
    • normals on the cylinder are not “smooth”, this causes each face to be shaded as an individual surface, resulting in unpleasant artifacts when combined with shadow acne.

    I suggest you research a bit into shadowmapping – it will help you understand problems like this in the future and how to deal with them better.
    You might find a discussion here useful: #5554

Comments are closed.