-
Notifications
You must be signed in to change notification settings - Fork 155
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #316 from CesiumGS/gpm-support
Add `NGA_gpm_local` validation
- Loading branch information
Showing
117 changed files
with
8,066 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
{ | ||
"asset" : { | ||
"version" : "2.0" | ||
}, | ||
"extensionsUsed" : [ | ||
"NGA_gpm_local" | ||
], | ||
"extensions" : { | ||
"NGA_gpm_local" : { | ||
"storageType" : "Indirect", | ||
"anchorPointsIndirect" : [ | ||
{ | ||
"position" : [ | ||
12.34, | ||
23.45, | ||
34.56 | ||
], | ||
"adjustmentParams" : [ | ||
0.1, | ||
0.2, | ||
0.3 | ||
], | ||
"covarianceMatrix" : [ | ||
0.1833647900304413, | ||
-0.093582914309524, | ||
0.4550734755685732, | ||
0.0572007221435672, | ||
-0.18392374133036396, | ||
0.27486040919852534 | ||
] | ||
} | ||
], | ||
"intraTileCorrelationGroups" : [ | ||
{ | ||
"groupFlags" : [ | ||
true, | ||
true, | ||
true | ||
], | ||
"rotationThetas" : [ | ||
0.1, | ||
0.2, | ||
0.3 | ||
], | ||
"params" : [ | ||
{ | ||
"A" : 1.0, | ||
"alpha" : 0.99, | ||
"beta" : 0.0, | ||
"T" : 10000.0 | ||
}, | ||
{ | ||
"A" : 1.0, | ||
"alpha" : 0.99, | ||
"beta" : 0.0, | ||
"T" : 10000.0 | ||
}, | ||
{ | ||
"A" : 1.0, | ||
"alpha" : 0.99, | ||
"beta" : 0.0, | ||
"T" : 10000.0 | ||
} | ||
] | ||
} | ||
] | ||
} | ||
} | ||
} |
131 changes: 131 additions & 0 deletions
131
specs/data/gltfExtensions/gpmLocal/ValidMeshPrimitiveGpmLocal.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,131 @@ | ||
{ | ||
"accessors": [ | ||
{ | ||
"bufferView": 0, | ||
"byteOffset": 0, | ||
"componentType": 5123, | ||
"count": 6, | ||
"type": "SCALAR", | ||
"max": [3], | ||
"min": [0] | ||
}, | ||
{ | ||
"bufferView": 1, | ||
"byteOffset": 0, | ||
"componentType": 5126, | ||
"count": 4, | ||
"type": "VEC3", | ||
"max": [1.0, 1.0, 0.0], | ||
"min": [0.0, 0.0, 0.0] | ||
}, | ||
{ | ||
"bufferView": 1, | ||
"byteOffset": 48, | ||
"componentType": 5126, | ||
"count": 4, | ||
"type": "VEC3", | ||
"max": [0.0, 0.0, 1.0], | ||
"min": [0.0, 0.0, 1.0] | ||
}, | ||
{ | ||
"bufferView": 1, | ||
"byteOffset": 96, | ||
"componentType": 5126, | ||
"count": 4, | ||
"type": "VEC2", | ||
"max": [1.0, 1.0], | ||
"min": [0.0, 0.0] | ||
} | ||
], | ||
"asset": { | ||
"generator": "JglTF from https://github.com/javagl/JglTF", | ||
"version": "2.0" | ||
}, | ||
"buffers": [ | ||
{ | ||
"uri": "data:application/gltf-buffer;base64,AAABAAIAAQADAAIAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAgD8AAAAAAACAPwAAgD8AAAAAAAAAAAAAAAAAAAAAAACAPwAAAAAAAAAA", | ||
"byteLength": 156 | ||
} | ||
], | ||
"bufferViews": [ | ||
{ | ||
"buffer": 0, | ||
"byteOffset": 0, | ||
"byteLength": 12, | ||
"target": 34963 | ||
}, | ||
{ | ||
"buffer": 0, | ||
"byteOffset": 12, | ||
"byteLength": 144, | ||
"byteStride": 12, | ||
"target": 34962 | ||
} | ||
], | ||
"images": [ | ||
{ | ||
"uri": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABs0lEQVR42hXMUwCWBwBA0b8Wlo1lLHNt2a4tLZtbrdZatm1jWcu2bSxrtWq1Zds438O5jzcUCoU+hSEsXxCO8EQgIl8SichEISrRiE4MQjElFrGJQ1ziEZ8EJOQrEpGYJCQlGcmDQQpJSSpS8zVpSEs60pOBjGQiM1nISrZgkF2+IQff8h05yUVu8pCXfOSnAAUpROFgUESKUozilKAkpShNGcryPT9QjvJUoGIwqCQ/UpkqVKUa1alBTWpRmzrUpR71aRAMGkojGtOEn/iZpjTjF5rTgl9pyW+04vdg0Fra0JZ2tKcDHelEZ7rQlW50pwc96RUMeksf+tKP/gxgIIMYzBCGMozhjGAko4LBaBnDWMYxnglMZBJ/MJkpTGUa05nBzGAwS2Yzh7n8yTzms4CFLGIxS1jKMpazIhislFWsZg1rWcd6NrCRTWxmC1vZxnZ2BIOdsovd7GEv+9jPAQ5yiMMc4Sh/cYzjweCEnOQUpznDWc5xngv8zUUu8Q+XucLVYPCvXOM6//E/N7jJLW5zh7vc4z4PeMijYPBYnvCUZzznBS95xWve8JZ3vOcDH/nEZ7gvfpBCxLDKAAAAAElFTkSuQmCC", | ||
"mimeType": "image/png" | ||
} | ||
], | ||
"meshes": [ | ||
{ | ||
"primitives": [ | ||
{ | ||
"attributes": { | ||
"POSITION": 1, | ||
"NORMAL": 2, | ||
"TEXCOORD_0": 3 | ||
}, | ||
"indices": 0, | ||
"mode": 4, | ||
|
||
"extensions": { | ||
"NGA_gpm_local": { | ||
"ppeTextures": [ | ||
{ | ||
"traits": { | ||
"source": "SIGZ", | ||
"min": 0.0, | ||
"max": 16.0 | ||
}, | ||
"index": 0, | ||
"noData": 255, | ||
"offset": 0.0, | ||
"scale": 0.06274509803921569, | ||
"texCoord": 0 | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} | ||
], | ||
"nodes": [ | ||
{ | ||
"mesh": 0 | ||
} | ||
], | ||
"samplers": [ | ||
{ | ||
"magFilter": 9728, | ||
"minFilter": 9728, | ||
"wrapS": 33071, | ||
"wrapT": 33071 | ||
} | ||
], | ||
"scene": 0, | ||
"scenes": [ | ||
{ | ||
"nodes": [0] | ||
} | ||
], | ||
"textures": [ | ||
{ | ||
"sampler": 0, | ||
"source": 0 | ||
} | ||
], | ||
"extensionsUsed": ["NGA_gpm_local"] | ||
} |
35 changes: 35 additions & 0 deletions
35
specs/data/gltfExtensions/gpmLocal/anchorPointDirectAdjustmentParamsInvalidElementType.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
{ | ||
"asset" : { | ||
"version" : "2.0" | ||
}, | ||
"extensionsUsed" : [ | ||
"NGA_gpm_local" | ||
], | ||
"extensions" : { | ||
"NGA_gpm_local" : { | ||
"storageType" : "Direct", | ||
"anchorPointsDirect" : [ | ||
{ | ||
"position" : [ | ||
12.34, | ||
23.45, | ||
34.56 | ||
], | ||
"adjustmentParams" : [ | ||
0.1, | ||
"Not a number", | ||
0.3 | ||
] | ||
} | ||
], | ||
"covarianceDirectUpperTriangle" : [ | ||
0.1833647900304413, | ||
-0.093582914309524, | ||
0.4550734755685732, | ||
0.0572007221435672, | ||
-0.18392374133036396, | ||
0.27486040919852534 | ||
] | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
specs/data/gltfExtensions/gpmLocal/anchorPointDirectAdjustmentParamsInvalidLength.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"asset" : { | ||
"version" : "2.0" | ||
}, | ||
"extensionsUsed" : [ | ||
"NGA_gpm_local" | ||
], | ||
"extensions" : { | ||
"NGA_gpm_local" : { | ||
"storageType" : "Direct", | ||
"anchorPointsDirect" : [ | ||
{ | ||
"position" : [ | ||
12.34, | ||
23.45, | ||
34.56 | ||
], | ||
"adjustmentParams" : [ | ||
0.1, | ||
0.3 | ||
] | ||
} | ||
], | ||
"covarianceDirectUpperTriangle" : [ | ||
0.1833647900304413, | ||
-0.093582914309524, | ||
0.4550734755685732, | ||
0.0572007221435672, | ||
-0.18392374133036396, | ||
0.27486040919852534 | ||
] | ||
} | ||
} | ||
} |
31 changes: 31 additions & 0 deletions
31
specs/data/gltfExtensions/gpmLocal/anchorPointDirectAdjustmentParamsInvalidType.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"asset" : { | ||
"version" : "2.0" | ||
}, | ||
"extensionsUsed" : [ | ||
"NGA_gpm_local" | ||
], | ||
"extensions" : { | ||
"NGA_gpm_local" : { | ||
"storageType" : "Direct", | ||
"anchorPointsDirect" : [ | ||
{ | ||
"position" : [ | ||
12.34, | ||
23.45, | ||
34.56 | ||
], | ||
"adjustmentParams" : "Not an array" | ||
} | ||
], | ||
"covarianceDirectUpperTriangle" : [ | ||
0.1833647900304413, | ||
-0.093582914309524, | ||
0.4550734755685732, | ||
0.0572007221435672, | ||
-0.18392374133036396, | ||
0.27486040919852534 | ||
] | ||
} | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
specs/data/gltfExtensions/gpmLocal/anchorPointDirectAdjustmentParamsMissing.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
{ | ||
"asset" : { | ||
"version" : "2.0" | ||
}, | ||
"extensionsUsed" : [ | ||
"NGA_gpm_local" | ||
], | ||
"extensions" : { | ||
"NGA_gpm_local" : { | ||
"storageType" : "Direct", | ||
"anchorPointsDirect" : [ | ||
{ | ||
"position" : [ | ||
12.34, | ||
23.45, | ||
34.56 | ||
] | ||
} | ||
], | ||
"covarianceDirectUpperTriangle" : [ | ||
0.1833647900304413, | ||
-0.093582914309524, | ||
0.4550734755685732, | ||
0.0572007221435672, | ||
-0.18392374133036396, | ||
0.27486040919852534 | ||
] | ||
} | ||
} | ||
} |
34 changes: 34 additions & 0 deletions
34
specs/data/gltfExtensions/gpmLocal/anchorPointDirectPositionInvalidLength.gltf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
{ | ||
"asset" : { | ||
"version" : "2.0" | ||
}, | ||
"extensionsUsed" : [ | ||
"NGA_gpm_local" | ||
], | ||
"extensions" : { | ||
"NGA_gpm_local" : { | ||
"storageType" : "Direct", | ||
"anchorPointsDirect" : [ | ||
{ | ||
"position" : [ | ||
12.34, | ||
34.56 | ||
], | ||
"adjustmentParams" : [ | ||
0.1, | ||
0.2, | ||
0.3 | ||
] | ||
} | ||
], | ||
"covarianceDirectUpperTriangle" : [ | ||
0.1833647900304413, | ||
-0.093582914309524, | ||
0.4550734755685732, | ||
0.0572007221435672, | ||
-0.18392374133036396, | ||
0.27486040919852534 | ||
] | ||
} | ||
} | ||
} |
Oops, something went wrong.