-
Notifications
You must be signed in to change notification settings - Fork 48
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 #113 from CesiumGS/fix-combine-with-external-trans…
…forms Fix combine with external transforms
- Loading branch information
Showing
11 changed files
with
209 additions
and
10 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
specs/data/combineTilesets/externalsWithTransform/README.md
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,10 @@ | ||
A test for the `combine` functionality involving external tilesets | ||
that have a root transform that is not identity. | ||
|
||
A regression test for https://github.com/CesiumGS/3d-tiles-tools/issues/112 | ||
|
||
Each external tileset refers to a unit cube (0,0,0)-(1,1,1). | ||
|
||
The `externalR` refers to a red cube and has a translation of 3 in x-direction. | ||
The `externalG` refers to a green cube and has a translation of 4 in y-direction. | ||
The `externalB` refers to a blue cube and has a translation of 5 in z-direction. |
21 changes: 21 additions & 0 deletions
21
specs/data/combineTilesets/externalsWithTransform/externalB.json
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,21 @@ | ||
{ | ||
"asset" : { | ||
"version" : "1.1" | ||
}, | ||
"geometricError" : 4.0, | ||
"root" : { | ||
"boundingVolume" : { | ||
"box" : [ 0.5,-0.5,0.5,0.5,0,0,0,-0.5,0,0,0,0.5 ] | ||
}, | ||
"geometricError" : 2.0, | ||
"content": { | ||
"uri": "unitCubeB.glb" | ||
}, | ||
"transform": [ | ||
1, 0, 0, 0, | ||
0, 1, 0, 0, | ||
0, 0, 1, 0, | ||
0, 0, 5, 1 | ||
] | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
specs/data/combineTilesets/externalsWithTransform/externalG.json
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,21 @@ | ||
{ | ||
"asset" : { | ||
"version" : "1.1" | ||
}, | ||
"geometricError" : 4.0, | ||
"root" : { | ||
"boundingVolume" : { | ||
"box" : [ 0.5,-0.5,0.5,0.5,0,0,0,-0.5,0,0,0,0.5 ] | ||
}, | ||
"geometricError" : 2.0, | ||
"content": { | ||
"uri": "unitCubeG.glb" | ||
}, | ||
"transform": [ | ||
1, 0, 0, 0, | ||
0, 1, 0, 0, | ||
0, 0, 1, 0, | ||
0, 4, 0, 1 | ||
] | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
specs/data/combineTilesets/externalsWithTransform/externalR.json
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,21 @@ | ||
{ | ||
"asset" : { | ||
"version" : "1.1" | ||
}, | ||
"geometricError" : 4.0, | ||
"root" : { | ||
"boundingVolume" : { | ||
"box" : [ 0.5,-0.5,0.5,0.5,0,0,0,-0.5,0,0,0,0.5 ] | ||
}, | ||
"geometricError" : 2.0, | ||
"content": { | ||
"uri": "unitCubeR.glb" | ||
}, | ||
"transform": [ | ||
1, 0, 0, 0, | ||
0, 1, 0, 0, | ||
0, 0, 1, 0, | ||
3, 0, 0, 1 | ||
] | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
58 changes: 58 additions & 0 deletions
58
specs/data/combineTilesets/externalsWithTransform/tileset.json
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,58 @@ | ||
{ | ||
"asset" : { | ||
"version" : "1.1" | ||
}, | ||
"geometricError" : 4.0, | ||
"root" : { | ||
"boundingVolume" : { | ||
"box" : [ | ||
2.0, 1.5, 3.0, | ||
2.0, 0, 0, | ||
0, -2.5, 0, | ||
0, 0, 3.0 | ||
] | ||
}, | ||
"geometricError" : 2.0, | ||
"children": [ | ||
{ | ||
"boundingVolume" : { | ||
"box" : [ | ||
3.5, -0.5, 0.5, | ||
0.5, 0, 0, | ||
0, -0.5, 0, | ||
0, 0, 0.5 ] | ||
}, | ||
"geometricError" : 1.0, | ||
"content": { | ||
"uri": "externalR.json" | ||
} | ||
}, | ||
{ | ||
"boundingVolume" : { | ||
"box" : [ | ||
0.5, 3.5, 0.5, | ||
0.5, 0, 0, | ||
0, -0.5, 0, | ||
0, 0, 0.5 ] | ||
}, | ||
"geometricError" : 1.0, | ||
"content": { | ||
"uri": "externalG.json" | ||
} | ||
}, | ||
{ | ||
"boundingVolume" : { | ||
"box" : [ | ||
0.5, -0.5, 5.5, | ||
0.5, 0, 0, | ||
0, -0.5, 0, | ||
0, 0, 0.5 ] | ||
}, | ||
"geometricError" : 1.0, | ||
"content": { | ||
"uri": "externalB.json" | ||
} | ||
} | ||
] | ||
} | ||
} |
Binary file not shown.
Binary file not shown.
Binary file not shown.
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
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