Skip to content

Commit e00e6cc

Browse files
committed
Add scene and texture data to test resources
1 parent 0ae8403 commit e00e6cc

File tree

16 files changed

+627
-5
lines changed

16 files changed

+627
-5
lines changed

tests/resources/data/data.bin

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+


tests/resources/data/data.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1234
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Box Textured
2+
## Screenshot
3+
4+
![screenshot](screenshot/screenshot.png)
5+
6+
## License Information
7+
8+
Donated by Cesium for glTF testing. Please follow the [Cesium Trademark Terms and Conditions](https://github.com/AnalyticalGraphicsInc/cesium/wiki/CesiumTrademark.pdf).
25.2 KB
Binary file not shown.

tests/resources/scenes/BoxTextured/glTF-Embedded/BoxTextured.gltf

Lines changed: 181 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 197 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,197 @@
1+
{
2+
"asset": {
3+
"generator": "COLLADA2GLTF",
4+
"version": "2.0"
5+
},
6+
"scene": 0,
7+
"scenes": [
8+
{
9+
"nodes": [
10+
0
11+
]
12+
}
13+
],
14+
"nodes": [
15+
{
16+
"children": [
17+
1
18+
],
19+
"matrix": [
20+
1.0,
21+
0.0,
22+
0.0,
23+
0.0,
24+
0.0,
25+
0.0,
26+
-1.0,
27+
0.0,
28+
0.0,
29+
1.0,
30+
0.0,
31+
0.0,
32+
0.0,
33+
0.0,
34+
0.0,
35+
1.0
36+
]
37+
},
38+
{
39+
"mesh": 0
40+
}
41+
],
42+
"meshes": [
43+
{
44+
"primitives": [
45+
{
46+
"attributes": {
47+
"NORMAL": 1,
48+
"POSITION": 2,
49+
"TEXCOORD_0": 3
50+
},
51+
"indices": 0,
52+
"mode": 4,
53+
"material": 0
54+
}
55+
],
56+
"name": "Mesh"
57+
}
58+
],
59+
"accessors": [
60+
{
61+
"bufferView": 0,
62+
"byteOffset": 0,
63+
"componentType": 5123,
64+
"count": 36,
65+
"max": [
66+
23
67+
],
68+
"min": [
69+
0
70+
],
71+
"type": "SCALAR"
72+
},
73+
{
74+
"bufferView": 1,
75+
"byteOffset": 0,
76+
"componentType": 5126,
77+
"count": 24,
78+
"max": [
79+
1.0,
80+
1.0,
81+
1.0
82+
],
83+
"min": [
84+
-1.0,
85+
-1.0,
86+
-1.0
87+
],
88+
"type": "VEC3"
89+
},
90+
{
91+
"bufferView": 1,
92+
"byteOffset": 288,
93+
"componentType": 5126,
94+
"count": 24,
95+
"max": [
96+
0.5,
97+
0.5,
98+
0.5
99+
],
100+
"min": [
101+
-0.5,
102+
-0.5,
103+
-0.5
104+
],
105+
"type": "VEC3"
106+
},
107+
{
108+
"bufferView": 2,
109+
"byteOffset": 0,
110+
"componentType": 5126,
111+
"count": 24,
112+
"max": [
113+
6.0,
114+
1.0
115+
],
116+
"min": [
117+
0.0,
118+
0.0
119+
],
120+
"type": "VEC2"
121+
}
122+
],
123+
"materials": [
124+
{
125+
"pbrMetallicRoughness": {
126+
"baseColorTexture": {
127+
"index": 0
128+
},
129+
"metallicFactor": 0.0
130+
},
131+
"extensions": {
132+
"KHR_materials_pbrSpecularGlossiness": {
133+
"diffuseTexture": {
134+
"index": 0
135+
},
136+
"specularFactor": [
137+
0.20000000298023225,
138+
0.20000000298023225,
139+
0.20000000298023225
140+
],
141+
"glossinessFactor": 1.0
142+
}
143+
},
144+
"name": "Texture"
145+
}
146+
],
147+
"textures": [
148+
{
149+
"sampler": 0,
150+
"source": 0
151+
}
152+
],
153+
"images": [
154+
{
155+
"uri": "CesiumLogoFlat.png"
156+
}
157+
],
158+
"samplers": [
159+
{
160+
"magFilter": 9729,
161+
"minFilter": 9986,
162+
"wrapS": 10497,
163+
"wrapT": 10497
164+
}
165+
],
166+
"bufferViews": [
167+
{
168+
"buffer": 0,
169+
"byteOffset": 768,
170+
"byteLength": 72,
171+
"target": 34963
172+
},
173+
{
174+
"buffer": 0,
175+
"byteOffset": 0,
176+
"byteLength": 576,
177+
"byteStride": 12,
178+
"target": 34962
179+
},
180+
{
181+
"buffer": 0,
182+
"byteOffset": 576,
183+
"byteLength": 192,
184+
"byteStride": 8,
185+
"target": 34962
186+
}
187+
],
188+
"buffers": [
189+
{
190+
"byteLength": 840,
191+
"uri": "BoxTextured0.bin"
192+
}
193+
],
194+
"extensionsUsed": [
195+
"KHR_materials_pbrSpecularGlossiness"
196+
]
197+
}
Binary file not shown.
23 KB
Loading
Lines changed: 181 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,181 @@
1+
{
2+
"asset": {
3+
"generator": "COLLADA2GLTF",
4+
"version": "2.0"
5+
},
6+
"scene": 0,
7+
"scenes": [
8+
{
9+
"nodes": [
10+
0
11+
]
12+
}
13+
],
14+
"nodes": [
15+
{
16+
"children": [
17+
1
18+
],
19+
"matrix": [
20+
1.0,
21+
0.0,
22+
0.0,
23+
0.0,
24+
0.0,
25+
0.0,
26+
-1.0,
27+
0.0,
28+
0.0,
29+
1.0,
30+
0.0,
31+
0.0,
32+
0.0,
33+
0.0,
34+
0.0,
35+
1.0
36+
]
37+
},
38+
{
39+
"mesh": 0
40+
}
41+
],
42+
"meshes": [
43+
{
44+
"primitives": [
45+
{
46+
"attributes": {
47+
"NORMAL": 1,
48+
"POSITION": 2,
49+
"TEXCOORD_0": 3
50+
},
51+
"indices": 0,
52+
"mode": 4,
53+
"material": 0
54+
}
55+
],
56+
"name": "Mesh"
57+
}
58+
],
59+
"accessors": [
60+
{
61+
"bufferView": 0,
62+
"byteOffset": 0,
63+
"componentType": 5123,
64+
"count": 36,
65+
"max": [
66+
23
67+
],
68+
"min": [
69+
0
70+
],
71+
"type": "SCALAR"
72+
},
73+
{
74+
"bufferView": 1,
75+
"byteOffset": 0,
76+
"componentType": 5126,
77+
"count": 24,
78+
"max": [
79+
1.0,
80+
1.0,
81+
1.0
82+
],
83+
"min": [
84+
-1.0,
85+
-1.0,
86+
-1.0
87+
],
88+
"type": "VEC3"
89+
},
90+
{
91+
"bufferView": 1,
92+
"byteOffset": 288,
93+
"componentType": 5126,
94+
"count": 24,
95+
"max": [
96+
0.5,
97+
0.5,
98+
0.5
99+
],
100+
"min": [
101+
-0.5,
102+
-0.5,
103+
-0.5
104+
],
105+
"type": "VEC3"
106+
},
107+
{
108+
"bufferView": 2,
109+
"byteOffset": 0,
110+
"componentType": 5126,
111+
"count": 24,
112+
"max": [
113+
6.0,
114+
1.0
115+
],
116+
"min": [
117+
0.0,
118+
0.0
119+
],
120+
"type": "VEC2"
121+
}
122+
],
123+
"materials": [
124+
{
125+
"pbrMetallicRoughness": {
126+
"baseColorTexture": {
127+
"index": 0
128+
},
129+
"metallicFactor": 0.0
130+
},
131+
"name": "Texture"
132+
}
133+
],
134+
"textures": [
135+
{
136+
"sampler": 0,
137+
"source": 0
138+
}
139+
],
140+
"images": [
141+
{
142+
"uri": "CesiumLogoFlat.png"
143+
}
144+
],
145+
"samplers": [
146+
{
147+
"magFilter": 9729,
148+
"minFilter": 9986,
149+
"wrapS": 10497,
150+
"wrapT": 10497
151+
}
152+
],
153+
"bufferViews": [
154+
{
155+
"buffer": 0,
156+
"byteOffset": 768,
157+
"byteLength": 72,
158+
"target": 34963
159+
},
160+
{
161+
"buffer": 0,
162+
"byteOffset": 0,
163+
"byteLength": 576,
164+
"byteStride": 12,
165+
"target": 34962
166+
},
167+
{
168+
"buffer": 0,
169+
"byteOffset": 576,
170+
"byteLength": 192,
171+
"byteStride": 8,
172+
"target": 34962
173+
}
174+
],
175+
"buffers": [
176+
{
177+
"byteLength": 840,
178+
"uri": "BoxTextured0.bin"
179+
}
180+
]
181+
}
840 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)