Skip to content

Commit

Permalink
Merge pull request #316 from CesiumGS/gpm-support
Browse files Browse the repository at this point in the history
Add `NGA_gpm_local` validation
  • Loading branch information
lilleyse authored Nov 21, 2024
2 parents 85b3550 + 838d432 commit a7c8c52
Show file tree
Hide file tree
Showing 117 changed files with 8,066 additions and 123 deletions.
69 changes: 69 additions & 0 deletions specs/data/gltfExtensions/gpmLocal/ValidGltfGpmLocal.gltf
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 specs/data/gltfExtensions/gpmLocal/ValidMeshPrimitiveGpmLocal.gltf
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"]
}
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
]
}
}
}
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
]
}
}
}
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
]
}
}
}
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
]
}
}
}
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
]
}
}
}
Loading

0 comments on commit a7c8c52

Please sign in to comment.