visgl / visgl/deck.gl

[Bug] Shadows degrade with increase in camera pitch

Open
#9,446 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
14.6k
Forks
2.3k
Avg merge
2d 9h
Merged PRs (30d)
42

Description

Description

Hi, I have noticed that the quality of shadows tend to get worse with the increase in camera pitch. It looks like the size of shadow map is getting altered with camera pitch. At higher pitch, it just completely turns black. Also, not sure but looks like the shadows are getting obstructed by camera plane?

Image

Image

Image
Flavors
  • Script tag
  • React
  • Python/Jupyter notebook
  • MapboxOverlay
  • GoogleMapsOverlay
  • CARTO
  • ArcGIS
Expected Behavior

I would expect the shadows to remain consistent at all angles.

Steps to Reproduce

I have setup a quick demo over here

Environment
Logs

No errors

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by running the linked StackBlitz demo in src/lib/Map.svelte and vary the camera pitch to reproduce the shadow degradation. Trace the shadow-map or camera-plane behavior responsible for the change, then verify that shadows remain consistent across the reported angles without errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.