Skip to content

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant