-
-
Notifications
You must be signed in to change notification settings - Fork 32
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 #61 from qmuntal/spaces
Support whitespaces in local URIs
- Loading branch information
Showing
11 changed files
with
340 additions
and
13 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
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,102 @@ | ||
{ | ||
"scenes": [ | ||
{ | ||
"nodes": [0, 1] | ||
} | ||
], | ||
"nodes": [ | ||
{ | ||
"mesh": 0 | ||
}, | ||
{ | ||
"mesh": 0, | ||
"name": "guid", | ||
"matrix": [ | ||
2.0, | ||
0.0, | ||
0.0, | ||
0.0, | ||
0.0, | ||
0.866, | ||
0.5, | ||
0.0, | ||
0.0, | ||
-0.25, | ||
0.433, | ||
0.0, | ||
10.0, | ||
20.0, | ||
30.0, | ||
1.0 | ||
] | ||
} | ||
], | ||
|
||
"meshes": [ | ||
{ | ||
"primitives": [ | ||
{ | ||
"attributes": { | ||
"POSITION": 1, | ||
"NORMAL": 2 | ||
}, | ||
"indices": 0 | ||
} | ||
] | ||
} | ||
], | ||
|
||
"buffers": [ | ||
{ | ||
"uri": "data:application/octet-stream;base64,AAABAAIAAAAAAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAAAAAACAPwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8=", | ||
"byteLength": 80 | ||
} | ||
], | ||
"bufferViews": [ | ||
{ | ||
"buffer": 0, | ||
"byteOffset": 0, | ||
"byteLength": 6, | ||
"target": 34963 | ||
}, | ||
{ | ||
"buffer": 0, | ||
"byteOffset": 8, | ||
"byteLength": 72, | ||
"target": 34962 | ||
} | ||
], | ||
"accessors": [ | ||
{ | ||
"bufferView": 0, | ||
"byteOffset": 0, | ||
"componentType": 5123, | ||
"count": 3, | ||
"type": "SCALAR", | ||
"max": [2], | ||
"min": [0] | ||
}, | ||
{ | ||
"bufferView": 1, | ||
"byteOffset": 0, | ||
"componentType": 5126, | ||
"count": 3, | ||
"type": "VEC3", | ||
"max": [1.0, 1.0, 0.0], | ||
"min": [0.0, 0.0, 0.0] | ||
}, | ||
{ | ||
"bufferView": 1, | ||
"byteOffset": 36, | ||
"componentType": 5126, | ||
"count": 3, | ||
"type": "VEC3", | ||
"max": [0.0, 0.0, 1.0], | ||
"min": [0.0, 0.0, 1.0] | ||
} | ||
], | ||
|
||
"asset": { | ||
"version": "2.0" | ||
} | ||
} |
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 @@ | ||
# Box With Spaces | ||
|
||
## Screenshot | ||
|
||
![screenshot](screenshot/screenshot_large.png) | ||
|
||
## Description | ||
|
||
The binary file is called `Box With Spaces.bin`, testing runtime support for the presence of spaces in a URI. Three textures | ||
also have spaces in their URIs, but each space character is URI-encoded as `%20`. | ||
|
||
Client implementations are expected to URI-decode all URIs present in a glTF model, even when they represent files on a | ||
local disk. See [#1449](https://github.com/KhronosGroup/glTF/issues/1449) for additional comments. | ||
|
||
## License Information | ||
|
||
glTF™ is a trademark of the Khronos Group Inc. Follow the [Khronos Logo Usage Guidelines](https://www.khronos.org/legal/trademarks/) | ||
when reproducing the glTF™ logo. | ||
|
||
The cube model is [![CC0](http://i.creativecommons.org/p/zero/1.0/88x31.png)](http://creativecommons.org/publicdomain/zero/1.0/) | ||
To the extent possible under law, Analytical Graphics has waived all copyright and related or neighboring rights to this asset. |
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,154 @@ | ||
{ | ||
"asset" : { | ||
"copyright" : "CC0 by Ed Mackey, AGI", | ||
"generator" : "Khronos glTF Blender I/O v1.3.48", | ||
"version" : "2.0" | ||
}, | ||
"scene" : 0, | ||
"scenes" : [ | ||
{ | ||
"name" : "Scene", | ||
"nodes" : [ | ||
0 | ||
] | ||
} | ||
], | ||
"nodes" : [ | ||
{ | ||
"mesh" : 0, | ||
"name" : "Cube" | ||
} | ||
], | ||
"materials" : [ | ||
{ | ||
"emissiveFactor" : [ | ||
0, | ||
0, | ||
0 | ||
], | ||
"name" : "Material", | ||
"normalTexture" : { | ||
"index" : 0, | ||
"texCoord" : 0 | ||
}, | ||
"pbrMetallicRoughness" : { | ||
"baseColorTexture" : { | ||
"index" : 1, | ||
"texCoord" : 0 | ||
}, | ||
"metallicRoughnessTexture" : { | ||
"index" : 2, | ||
"texCoord" : 0 | ||
} | ||
} | ||
} | ||
], | ||
"meshes" : [ | ||
{ | ||
"name" : "Cube", | ||
"primitives" : [ | ||
{ | ||
"attributes" : { | ||
"POSITION" : 0, | ||
"NORMAL" : 1, | ||
"TEXCOORD_0" : 2 | ||
}, | ||
"indices" : 3, | ||
"material" : 0 | ||
} | ||
] | ||
} | ||
], | ||
"textures" : [ | ||
{ | ||
"source" : 0 | ||
}, | ||
{ | ||
"source" : 1 | ||
}, | ||
{ | ||
"source" : 2 | ||
} | ||
], | ||
"images" : [ | ||
{ | ||
"mimeType" : "image/png", | ||
"name" : "Normal Map", | ||
"uri" : "Normal%20Map.png" | ||
}, | ||
{ | ||
"mimeType" : "image/png", | ||
"name" : "glTF Logo With Spaces", | ||
"uri" : "glTF%20Logo%20With%20Spaces.png" | ||
}, | ||
{ | ||
"mimeType" : "image/png", | ||
"name" : "Roughness Metallic", | ||
"uri" : "Roughness%20Metallic.png" | ||
} | ||
], | ||
"accessors" : [ | ||
{ | ||
"bufferView" : 0, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"max" : [ | ||
1, | ||
1, | ||
1 | ||
], | ||
"min" : [ | ||
-1, | ||
-1, | ||
-1 | ||
], | ||
"type" : "VEC3" | ||
}, | ||
{ | ||
"bufferView" : 1, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC3" | ||
}, | ||
{ | ||
"bufferView" : 2, | ||
"componentType" : 5126, | ||
"count" : 24, | ||
"type" : "VEC2" | ||
}, | ||
{ | ||
"bufferView" : 3, | ||
"componentType" : 5123, | ||
"count" : 36, | ||
"type" : "SCALAR" | ||
} | ||
], | ||
"bufferViews" : [ | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 288, | ||
"byteOffset" : 0 | ||
}, | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 288, | ||
"byteOffset" : 288 | ||
}, | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 192, | ||
"byteOffset" : 576 | ||
}, | ||
{ | ||
"buffer" : 0, | ||
"byteLength" : 72, | ||
"byteOffset" : 768 | ||
} | ||
], | ||
"buffers" : [ | ||
{ | ||
"byteLength" : 840, | ||
"uri" : "Box With Spaces.bin" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.