CesiumGS / cesium-native

Apache License 2.0
414 stars 210 forks source link

Allow implicit subtree buffers to be padded to 8 bytes. #792

Closed kring closed 7 months ago

kring commented 7 months ago

The latest version of the 3D Tiles spec says that binary implicit tiling subtrees should have a binary buffer that is padded to 8 bytes. But cesium-native was only expecting 4-byte alignment, and considering the subtree to be invalid if it was too large. To make matters worse, the "buffer is not the expected size" error was lost and not displayed to the user. This PR fixes both problems.

As reported here: https://community.cesium.com/t/re-catching-up-cesium-scaled-foundations/29226

j9liu commented 7 months ago

Thanks @kring !