Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PSSM Shadow Clipping Issue #2928

Open
blitzcoder opened this issue Aug 24, 2023 · 7 comments
Open

PSSM Shadow Clipping Issue #2928

blitzcoder opened this issue Aug 24, 2023 · 7 comments
Labels
Known Issues easy workaround exists or too intrusive to fix right away wontfix the fix would make the software much more complex and much less maintainable

Comments

@blitzcoder
Copy link

recently, I just had a second look on the Ogre 14 terrain sample and got this PSSM receiver clipping issue:

pssm1

and on different angle

pssm2

@paroj
Copy link
Member

paroj commented Aug 24, 2023

the issue is that we only consider the caster bbox for focusing the shadow camera:
shadow

we could also add the receiver bbox, but that would drastically decrease shadow resolution.

I would suggest adding fake casters to increase the bbox size for now

@paroj paroj added the wontfix the fix would make the software much more complex and much less maintainable label Aug 24, 2023
@blitzcoder
Copy link
Author

Here's another look below which is a more common angle for 1st or 3rd person cam.

comparing it to the same angle with Ogre 1.7 (2nd screenshot) and issue is not present.

Ogre 1.14
Untitled

Ogre 1.7
Untitled2

@paroj
Copy link
Member

paroj commented Aug 25, 2023

mTerrainGlobals->setCastsDynamicShadows(true);

for 1.7 behaviour

@blitzcoder

This comment was marked as off-topic.

@paroj

This comment was marked as off-topic.

@blitzcoder

This comment was marked as off-topic.

@paroj paroj added the Known Issues easy workaround exists or too intrusive to fix right away label Aug 27, 2023
@paroj

This comment was marked as off-topic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Known Issues easy workaround exists or too intrusive to fix right away wontfix the fix would make the software much more complex and much less maintainable
Projects
None yet
Development

No branches or pull requests

2 participants