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

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

Merged
merged 1 commit into from
Jan 22, 2024

Conversation

kring
Copy link
Member

@kring kring commented Jan 16, 2024

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

Comment on lines +225 to +230
// tell client to retry later
return TileLoadResult::createRetryLaterResult(nullptr);
} else {
// Subtree load failed, so this tile fails, too.
return TileLoadResult::createFailedResult(nullptr);
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change (and the similar one below) ensures that invalid subtrees are not loaded repeatedly, spamming an error to the log each time.

@j9liu
Copy link
Contributor

j9liu commented Jan 22, 2024

Thanks @kring !

@j9liu j9liu merged commit 65aaa77 into main Jan 22, 2024
14 checks passed
@j9liu j9liu deleted the implicit-tiling-padding branch January 22, 2024 16:55
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.

2 participants