question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shadow problem with logarithmic depth buffer

See original GitHub issue

use the logarithmicDepthBuffer cause shadow problem, use threejs r108dev this is the example link https://raw.githack.com/1147079942/three.js/dev/examples/webgl_shadowmap_viewer.html

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:29 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
WestLangleycommented, Sep 20, 2019

I am not able to reproduce the artifacts, either.

@1147079942 I suggest you avoid using logarithmic depth buffer.

1reaction
1147079942commented, Sep 20, 2019

will you fix this compatibility of this problem?

If it’s a hardware or driver issue, there is in general not much we can do. The problem is that I and the others can’t reproduce the issue. That makes any kind of investigation more complicated.

may i get some article or explain about this problem, thanks.

TBH, I have no idea what’s going wrong. Does it work if you update the macOS version to the latest on (10.14.6)? Update the OS also updates system drivers.

I test so many personal computer, many windows system has the same problem, I don’t think update the system or hardware can solve this very well.I afraid I need learn more about the shader now, wish me luck.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Log / Linear Z-Buffer shadow map - Stack Overflow
The problem is that artifacts appear in the shadows at a great distance. I want to try to make a logarithmic depth buffer, ......
Read more >
Logarithmic Perspective Shadow Maps - GAMMA
The shadow map algorithm [Williams 1978] is a popular approach for hard shadow computation in interactive applications. It uses a depth buffer rendered...
Read more >
Issue with depth buffer and shadow mapping : r/opengl - Reddit
Hello everyone! I've been following LearnOpenGL's tutorial on shadow mapping, and while I can usually sort problems out myself over time, this ...
Read more >
Logarithmic depth buffer optimizations & fixes - Outerra
An updated logarithmic depth equation (vertex shader): ... depth buffer optimizations that may pose problems in scenes with high overdraw.
Read more >
Logarithmic Perspective Shadow Maps - CiteSeerX
tive shadow maps (LogPSMs) and analyze the error for each type. Compared with competing algorithms, ... It uses a depth buffer rendered from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found