Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions Models/UriTest/README.body.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
## Screenshots

![Screenshot from three.js](screenshot/screenshot.png)
![Screenshot from three.js](screenshot/screenshot2.png)

## Description

This asset demonstrates allowed usage of URIs in glTF.

- URIs using percent encoding
- URIs using JSON-string escaping
- URIs using utf8 paths
- URIs pointing at child folders
- URIs pointing at parent folders

According to the glTF spec, these URI types MAY be supported:
- http:// or https:// URIs pointing at absolute paths
- Non-normalized URIs

See [glTF-2.0#uris](https://registry.khronos.org/glTF/specs/2.0/glTF-2.0.html#uris) for more information.

## Creation Details

The asset was created using [UnityGLTF](https://github.com/KhronosGroup/UnityGLTF), and the files were edited in [Visual Studio Code](https://code.visualstudio.com/) with [glTF Tools](https://github.com/AnalyticalGraphicsInc/gltf-vscode#gltf-tools-extension-for-visual-studio-code).
Original file line number Diff line number Diff line change
@@ -0,0 +1,206 @@
{
"asset": {
"generator": "UnityGLTF",
"version": "2.0"
},
"scene": 0,
"scenes": [
{
"nodes": [
0
],
"name": "RelativeResourcePaths"
}
],
"accessors": [
{
"bufferView": 0,
"componentType": 5126,
"count": 515,
"type": "VEC3",
"max": [
0.5,
0.5,
0.5
],
"min": [
-0.5,
-0.5,
-0.5
]
},
{
"bufferView": 1,
"componentType": 5126,
"count": 515,
"type": "VEC3",
"max": [
0.99997496604919434,
1.0,
0.9999769926071167
],
"min": [
-0.99997496604919434,
-1.0,
-0.99997353553771973
]
},
{
"bufferView": 2,
"componentType": 5126,
"count": 515,
"type": "VEC4",
"max": [
1.0,
0.056131001561880112,
1.0,
1.0
],
"min": [
-1.0,
-0.065983392298221588,
-1.0,
-1.0
]
},
{
"bufferView": 3,
"componentType": 5126,
"count": 515,
"type": "VEC2",
"max": [
0.99833369255065918,
0.98237103223800659
],
"min": [
-0.00092136859893798828,
0.024108767509460449
]
},
{
"bufferView": 4,
"componentType": 5126,
"count": 515,
"type": "VEC2",
"max": [
1.0000003576278687,
1.0
],
"min": [
0.0,
0.34614646434783936
]
},
{
"bufferView": 5,
"componentType": 5123,
"count": 2304,
"type": "SCALAR",
"max": [
514.0
],
"min": [
0.0
]
}
],
"buffers": [
{
"uri": "buffer.bin",
"byteLength": 33448
}
],
"bufferViews": [
{
"buffer": 0,
"byteLength": 6180,
"byteStride": 12,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 6180,
"byteLength": 6180,
"byteStride": 12,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 12360,
"byteLength": 8240,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 20600,
"byteLength": 4120,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 24720,
"byteLength": 4120,
"target": 34962
},
{
"buffer": 0,
"byteOffset": 28840,
"byteLength": 4608,
"target": 34963
}
],
"images": [
{
"uri": "childFolder/texture/ChildFolder.jpg",
"name": "ChildFolder"
}
],
"materials": [
{
"pbrMetallicRoughness": {
"baseColorTexture": {
"index": 0
},
"metallicFactor": 0.0,
"roughnessFactor": 0.5
},
"name": "ChildFolder"
}
],
"meshes": [
{
"primitives": [
{
"attributes": {
"POSITION": 0,
"NORMAL": 1,
"TANGENT": 2,
"TEXCOORD_0": 3,
"TEXCOORD_1": 4
},
"indices": 5,
"material": 0
}
],
"name": "RelativeResourcePaths"
}
],
"nodes": [
{
"mesh": 0,
"name": "RelativeResourcePaths"
}
],
"samplers": [
{
"minFilter": 9987
}
],
"textures": [
{
"sampler": 0,
"source": 0,
"name": "ChildFolder 你好,世界"
}
]
}
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading