[Bug] Shadows degrade with increase in camera pitch
Nobody has claimed this yet.
- 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?
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
- Framework version: deck.gl@9.1.2
- Browser: Brave (Version 1.74.50 Chromium: 132.0.6834.111 (Official Build) (arm64))
- OS: macOS Sonoma (14.7.4)
Logs
No errors
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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