Skip to content

Commit

Permalink
Add spec data for quantized attribute handling
Browse files Browse the repository at this point in the history
  • Loading branch information
javagl committed Dec 19, 2024
1 parent e5e7136 commit 0af80b9
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 5 deletions.
16 changes: 11 additions & 5 deletions demos/tools/TilesetUpgraderDemos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,22 @@ async function upgradeTileset(
}

async function tilesetUpgraderDemos() {
await upgradeTilesetJson(
await upgradeTileset(
SPECS_DATA_BASE_DIRECTORY +
"/upgradeTileset/tilesetWithContentUrls/tileset.json",
"./output/upgradeTileset/tilesetWithContentUrls-upgraded/tileset.json"
"/upgradeTileset/tilesetWithB3dmWithGltf1/tileset.json",
"./output/upgradeTileset/tilesetWithB3dmWithGltf1-upgraded/tileset.json"
);

await upgradeTileset(
SPECS_DATA_BASE_DIRECTORY +
"/upgradeTileset/tilesetWithB3dmWithGltf1/tileset.json",
"./output/upgradeTileset/tilesetWithB3dmWithGltf1-upgraded/tileset.json"
"/upgradeTileset/tilesetWithB3dmWithGltf1WithWeb3dQuantizedAttributes/tileset.json",
"./output/upgradeTileset/tilesetWithB3dmWithGltf1WithWeb3dQuantizedAttributes-upgraded/tileset.json"
);

await upgradeTilesetJson(
SPECS_DATA_BASE_DIRECTORY +
"/upgradeTileset/tilesetWithContentUrls/tileset.json",
"./output/upgradeTileset/tilesetWithContentUrls-upgraded/tileset.json"
);

await upgradeTileset(
Expand Down
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"asset" : {
"version" : "1.1"
},
"geometricError" : 1024.0,
"root" : {
"boundingVolume" : {
"box" : [ 0.5, 0.00625, 0.5, 0.5, 0.0, 0.0, 0.00625, 0.0, 0.0, 0.0, 0.0, 0.5 ]
},
"geometricError" : 32.0,
"refine" : "ADD",
"content" : {
"uri" : "b3dmWithGltf1WithWeb3dQuantizedAttributes.b3dm"
}
}
}

0 comments on commit 0af80b9

Please sign in to comment.