-
Notifications
You must be signed in to change notification settings - Fork 241
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
Invalid byte stride computed for certain assets #577
Comments
Can confirm this is a problem, not a problem with Some older 3D Tilesets used Or maybe the issue can be fixed in https://github.com/CesiumGS/3d-tiles-validator/blob/2.0-tools/tools/lib/upgradeTileset.js by converting batch ids from |
That's another dimension of the difficulty. On the one hand, it's good to know that Further fragments of my mental model:
Updated: I checked the input asset as well, and the validator says
So it already contains an error, which, via the So we could call this a case of GIGO, unless there's a trick to fix these batch IDs, as you mentioned... |
According to the specification, the
byteStride
must always be>=4
. This does not match the result ofgetAccessorByteStride
inaddDefaults
.I think that the following test, to be added in
addDefaultsSpec
, should pass:with the critcial line being
Can someone confirm this?
(Of course, just changing the function to return
Math.max(4, originalResult)
causes everything else to break down - if this really is an issue, fixing it might not be trivial, so I wanted to ask someone to confirm before sinking more time into that...)The text was updated successfully, but these errors were encountered: