Closed j9liu closed 4 days ago
This is resulting from the Plane
trying to construct from a NaN normal and distance. I looked up into the stack trace and it turns out the bounding region of one child has a west / east value of inf
, which is not great. The child tile ID also looks really big for some reason?
Part of me wonders if this code is infinitely creating children until it hits a point where the math doesn't work out -- in that case, it's happening because it keeps going down createLatentChildrenIfNecessary
. Since the EllipsoidTilesetLoader
is procedural, it makes sense that it can technically keep producing children, but maybe we need to mark an explicit point where it stops trying to recurse.
Unfortunately I don't think we tested this on our side when we merged #908. When I do
SampleHeightMostDetailed
in Unity it crashes with this stack trace:You can test this from Cesium for Unity by following the
SampleHeightTerrainDetailed
example in https://github.com/CesiumGS/cesium-unity/pull/507#issuecomment-2380048726.