Skip to content
This repository has been archived by the owner on Mar 8, 2023. It is now read-only.

Shadows show obvious jitter when shadows are turned on #2238

Closed
datouzhan opened this issue Jul 20, 2021 · 7 comments
Closed

Shadows show obvious jitter when shadows are turned on #2238

datouzhan opened this issue Jul 20, 2021 · 7 comments

Comments

@datouzhan
Copy link

Describe the bug
Shadows show obvious jitter when shadows are turned on, but there is no such phenomenon in Threejs.The same phenomenon occurred in the extruded buildings added to mapanchor.
https://user-images.githubusercontent.com/20176393/126254069-3ba96545-fc41-4b9b-bfbd-dadbfbcb281f.mp4

@nzjony
Copy link
Member

nzjony commented Jul 20, 2021

@datouzhan , try increasing the resolution of the shadow map.

I changed the example with the shadows to change it at run time, see: #2239

That should show you how to change it at runtime.

@datouzhan
Copy link
Author

I set 4096.This is the perfect solution to my problem.

@nzjony
Copy link
Member

nzjony commented Jul 20, 2021

thanks @datouzhan

Note, a 4K shadow texture is going to eat up your memory if you are restricted

@datouzhan
Copy link
Author

It may also be a good thing to exchange a certain amount of memory for the clarity of the scene.

@nzjony
Copy link
Member

nzjony commented Jul 21, 2021

@datouzhan yes! Look forward to see your final product!

@datouzhan
Copy link
Author

I can show you some of the results so far.
image
image

@nzjony
Copy link
Member

nzjony commented Jul 21, 2021

@datouzhan Wow! Very cool! Thanks for sharing.

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

No branches or pull requests

2 participants