-
Notifications
You must be signed in to change notification settings - Fork 156
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 #277 from CesiumGS/handle-spaces-in-i3dm-uri
Handle URI with spaces in I3DM
- Loading branch information
Showing
7 changed files
with
64 additions
and
3 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
|
||
|
||
A tileset that refers to a single I3DM file, which in turn refers to a | ||
single glTF file (the `Box` glTF sample model). | ||
|
||
The I3DM refers to the GLB using a URI, in contrast to embedding the | ||
GLB inside the GLB. | ||
|
||
The URI is `"Box.glb "`: It includes spaces, as a regression test | ||
for https://github.com/CesiumGS/3d-tiles-validator/issues/276 . | ||
|
||
The string (including spaces) consists of 11 characters. | ||
|
||
In order to achieve the alignment requirement, the payload data is | ||
padded with _additional_ `0x00` bytes to achieve a payload length | ||
of 16 bytes. This is not allowed by the specification, and should | ||
cause a WARNING during the validation. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"asset" : { | ||
"version" : "1.1" | ||
}, | ||
"geometricError" : 2.0, | ||
"root" : { | ||
"boundingVolume" : { | ||
"box" : [ | ||
0.0, 0.0, 0.0, | ||
0.5, 0.0, 0.0, | ||
0.0, 0.5, 0.0, | ||
0.0, 0.0, 0.5 ] | ||
}, | ||
"geometricError" : 1.0, | ||
"content": { | ||
"uri": "i3dmWithUri.i3dm" | ||
} | ||
} | ||
} |
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