Validator roadmap
Validates
This is a non-exhaustive list, please add all corner-cases as you come across them. Also update the spec/schema with cases that they do not cover.
Requirements
Architecture
tileset.json validation
- General
- tile (including spatial coherence of the tree)
- tile.content
Tile format validation
Declarative styling validation
Do this last after the tileset.json and tile formats validation.
Validator roadmap
Validates
b3dmi3dmpntsvctrcmptThis is a non-exhaustive list, please add all corner-cases as you come across them. Also update the spec/schema with cases that they do not cover.
Requirements
Architecture
tileset.json validation
geometricErrormust be<=to the parent tile'sgeometricError.root.geometricErrormust be<=the tileset'sgeometricError.boundingVolumemust be inside/overlap its parent tile'sboundingVolume(taking into account applyingtransforms).boundingVolume. See Bounding volume spatial coherence.transformand glTF node hierarchy (use gltf-pipeline). Get enough experience before tackling this one.content(because it is just used for culling), itsboundingVolumemust be completely inside its parent tile'sboundingVolume. Also update the spec with this.tile.content.boundingVolume, when defined, is completely insidetile.boundingVolume(use Cesium's functions)tile.content.urlpoints to a file that exists (and a tile/tileset that validates)tile.content.urlis an external tileset, these rules must be followed.Tile format validation
b3dm_BATCHID.batchIdattributes are in range, i.e., they exist in the Batch Table.i3dmBATCH_IDsemantic, if defined, is in range (have a generic validation function for this).NORMAL_UP/NORMAL_RIGHT(orNORMAL_UP_OCT32P/NORMAL_RIGHT_OCT32P) are defined, verify that they are orthonormal.pntsBATCH_IDsemantic, if defined, is in range (have a generic validation function for this).RGBA/RGB/CONSTANT_RGBAare in range.NORMAL/NORMAL_OCT16Pare defined, verify they are of unit length.vctrBATCH_IDsemantic, if defined, is in range (have a generic validation function for this).cmptDeclarative styling validation
Do this last after the tileset.json and tile formats validation.
undefined?