Skip to content
New issue

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

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

Already on GitHub? # to your account

Use scaledDirectionToPoint in occlusion computations #74

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

malaretv
Copy link
Contributor

@malaretv malaretv commented Mar 7, 2023

WIP

I've been having issues with what seems like incorrectly culled tiles (especially at z0) so I started taking a look at the horizonOcclusionPoint values. I have no true understanding of the math involved 😅 but in comparing the implementation here with https://github.com/CesiumGS/cesium/blob/9295450e64c3077d96ad579012068ea05f97842c/packages/engine/Source/Core/EllipsoidalOccluder.js#L398
I noticed this implementation wasn't making use of scaledDirectionToPoint like in the reference implementation.

At least on my side, this change has resulted in fixing the tiles being incorrectly culled in Cesium. I should probably add tests, and validate some other things first. Putting this up early for feedback in case I'm missing something.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant