Skip to content

Commit

Permalink
Merge pull request #117 from CesiumGS/upgrade-cmpt
Browse files Browse the repository at this point in the history
Try to upgrade CMPT to GLB when target version is 1.1
  • Loading branch information
lilleyse authored May 13, 2024
2 parents 82a191b + b8bad9e commit de7c496
Show file tree
Hide file tree
Showing 29 changed files with 4,514 additions and 166 deletions.
13 changes: 9 additions & 4 deletions specs/data/migration/TileFormatsMigrationTestSandcastle.js
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ async function recreateTileset() {
currentTileset.style = new Cesium.Cesium3DTileStyle({
pointSize: "10"
});

// Special handling for tilesets that are "at the origin":
// Move them to a certain position on the globe
let distance = 500;
Expand All @@ -43,7 +43,7 @@ async function recreateTileset() {
currentTileset.modelMatrix = modelMatrix;
distance = 10;
}

if (doZoom) {
const offset = new Cesium.HeadingPitchRange(
Cesium.Math.toRadians(-22.5),
Expand Down Expand Up @@ -156,7 +156,7 @@ function createOptions() {
createOption("InstancedAxes/InstancedAxesSimple"),
createOption("InstancedAxes/InstancedAxesRotated"),
createOption("InstancedAxes/InstancedAxesScaled"),

createOption("Instanced/InstancedAnimated"),
createOption("Instanced/InstancedGltfExternal"),
createOption("Instanced/InstancedOct32POrientation"),
Expand Down Expand Up @@ -216,7 +216,12 @@ function createOptions() {
createOption("Batched/BatchedWithTransformBox"),
createOption("Batched/BatchedWithTransformRegion"),
createOption("Batched/BatchedWithTransformSphere"),
createOption("Batched/BatchedWithVertexColors")
createOption("Batched/BatchedWithVertexColors"),

createOption("Composite/Composite"),
createOption("Composite/CompositeOfComposite"),
createOption("Composite/CompositeOfInstanced")

];
return options;
}
Expand Down
Loading

0 comments on commit de7c496

Please sign in to comment.