merge test/example assets

This commit is contained in:
Nick Fisher
2025-05-29 17:58:13 +08:00
parent aab2b0b769
commit afd47f9b24
16 changed files with 1 additions and 1 deletions

BIN
examples/assets/cube.bin Normal file

Binary file not shown.

Binary file not shown.

121
examples/assets/cube.gltf Normal file
View File

@@ -0,0 +1,121 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.2.60",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cube"
}
],
"materials":[
{
"doubleSided":true,
"name":"Material",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.800000011920929,
0.800000011920929,
0.800000011920929,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"name":"Cube",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"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,
"target":34962
},
{
"buffer":0,
"byteLength":288,
"byteOffset":288,
"target":34962
},
{
"buffer":0,
"byteLength":192,
"byteOffset":576,
"target":34962
},
{
"buffer":0,
"byteLength":72,
"byteOffset":768,
"target":34963
}
],
"buffers":[
{
"byteLength":840,
"uri":"cube.bin"
}
]
}

View File

@@ -0,0 +1,181 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="600"
height="600"
viewBox="0 0 600 600"
version="1.1"
id="svg3369"
sodipodi:docname="cube_texture.svg"
inkscape:export-filename="cube_texture_512x512.png"
inkscape:export-xdpi="81.919998"
inkscape:export-ydpi="81.919998"
inkscape:version="1.2.2 (b0a84865, 2022-12-01)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs3373" />
<sodipodi:namedview
id="namedview3371"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
showgrid="false"
inkscape:zoom="0.52625"
inkscape:cx="374.34679"
inkscape:cy="290.73634"
inkscape:window-width="1390"
inkscape:window-height="940"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="0"
inkscape:current-layer="svg3369" />
<rect
width="600"
height="600"
fill="white"
id="rect3333" />
<!-- Grid -->
<g
stroke="gray"
stroke-width="0.5"
id="g3343">
<line
x1="0"
y1="200"
x2="600"
y2="200"
id="line3335" />
<line
x1="0"
y1="400"
x2="600"
y2="400"
id="line3337" />
<line
x1="200"
y1="0"
x2="200"
y2="600"
id="line3339" />
<line
x1="400"
y1="0"
x2="400"
y2="600"
id="line3341" />
</g>
<!-- Top face -->
<rect
x="200"
y="0"
width="200"
height="200"
fill="blue"
fill-opacity="0.5"
stroke="black"
id="rect3345" />
<text
x="300"
y="100"
text-anchor="middle"
dominant-baseline="middle"
fill="black"
font-size="24"
id="text3347">Top</text>
<!-- Left face -->
<rect
x="0"
y="200"
width="200"
height="200"
fill="cyan"
fill-opacity="0.5"
stroke="black"
id="rect3349" />
<text
x="100"
y="300"
text-anchor="middle"
dominant-baseline="middle"
fill="black"
font-size="24"
id="text3351">Left</text>
<!-- Front face -->
<rect
x="200"
y="200"
width="200"
height="200"
fill="red"
fill-opacity="0.5"
stroke="black"
id="rect3353" />
<text
x="300"
y="300"
text-anchor="middle"
dominant-baseline="middle"
fill="black"
font-size="24"
id="text3355">Front</text>
<!-- Right face -->
<rect
x="400"
y="200"
width="200"
height="200"
fill="purple"
fill-opacity="0.5"
stroke="black"
id="rect3357" />
<text
x="500"
y="300"
text-anchor="middle"
dominant-baseline="middle"
fill="black"
font-size="24"
id="text3359">Right</text>
<!-- Bottom face -->
<rect
x="200"
y="400"
width="200"
height="200"
fill="yellow"
fill-opacity="0.5"
stroke="black"
id="rect3361" />
<text
x="300"
y="500"
text-anchor="middle"
dominant-baseline="middle"
fill="black"
font-size="24"
id="text3363">Bottom</text>
<!-- Back face -->
<rect
x="400"
y="400"
width="200"
height="200"
fill="green"
fill-opacity="0.5"
stroke="black"
id="rect3365" />
<text
x="500"
y="500"
text-anchor="middle"
dominant-baseline="middle"
fill="black"
font-size="24"
id="text3367">Back</text>
</svg>

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@@ -0,0 +1,181 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
width="200"
height="200"
viewBox="0 0 1 1"
version="1.1"
id="svg10"
sodipodi:docname="cube_texture2.svg"
inkscape:export-filename="cube_texture2_512x512.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
inkscape:version="1.4 (e7c3feb1, 2024-10-09)"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<defs
id="defs10" />
<sodipodi:namedview
id="namedview10"
pagecolor="#ffffff"
bordercolor="#000000"
borderopacity="0.25"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#d1d1d1"
inkscape:zoom="0.536875"
inkscape:cx="-6.5192084"
inkscape:cy="390.22119"
inkscape:window-width="1200"
inkscape:window-height="964"
inkscape:window-x="0"
inkscape:window-y="25"
inkscape:window-maximized="0"
inkscape:current-layer="svg10" />
<!-- Background Grid (optional, for visual aid) -->
<rect
x="0"
y="0"
width="1"
height="1"
fill="#f0f0f0"
id="rect1" />
<line
x1="0.333"
y1="0"
x2="0.333"
y2="1"
stroke="#ccc"
stroke-width="0.005"
id="line1" />
<line
x1="0.666"
y1="0"
x2="0.666"
y2="1"
stroke="#ccc"
stroke-width="0.005"
id="line2" />
<line
y1="0.25"
x1="0"
y2="0.25"
x2="1"
stroke="#ccc"
stroke-width="0.005"
id="line3" />
<line
y1="0.5"
x1="0"
y2="0.5"
x2="1"
stroke="#ccc"
stroke-width="0.005"
id="line4" />
<line
y1="0.75"
x1="0"
y2="0.75"
x2="1"
stroke="#ccc"
stroke-width="0.005"
id="line5" />
<!-- Front Face -->
<rect
x="0.333"
y="0"
width="0.333"
height="0.25"
fill="#ff0000"
id="rect5" />
<text
x="0.5"
y="0.125"
text-anchor="middle"
dominant-baseline="middle"
font-size="0.1"
fill="white"
id="text5">Front</text>
<!-- Back Face -->
<rect
x="0.333"
y="0.5"
width="0.333"
height="0.25"
fill="#00ff00"
id="rect6" />
<text
x="0.5"
y="0.625"
text-anchor="middle"
dominant-baseline="middle"
font-size="0.1"
fill="white"
id="text6">Back</text>
<!-- Top Face -->
<rect
x="0.666"
y="0.25"
width="0.333"
height="0.25"
fill="#0000ff"
id="rect7" />
<text
x="0.833"
y="0.375"
text-anchor="middle"
dominant-baseline="middle"
font-size="0.1"
fill="white"
id="text7">Top</text>
<!-- Bottom Face -->
<rect
x="0"
y="0.25"
width="0.333"
height="0.25"
fill="#ffff00"
id="rect8" />
<text
x="0.166"
y="0.375"
text-anchor="middle"
dominant-baseline="middle"
font-size="0.1"
fill="black"
id="text8">Bottom</text>
<!-- Right Face -->
<rect
x="0.333"
y="0.25"
width="0.333"
height="0.25"
fill="#ff00ff"
id="rect9" />
<text
x="0.5"
y="0.375"
text-anchor="middle"
dominant-baseline="middle"
font-size="0.1"
fill="white"
id="text9">Right</text>
<!-- Left Face -->
<rect
x="0.333"
y="0.75"
width="0.333"
height="0.25"
fill="#00ffff"
id="rect10" />
<text
x="0.5"
y="0.875"
text-anchor="middle"
dominant-baseline="middle"
font-size="0.1"
fill="black"
id="text10">Left</text>
</svg>

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@@ -1 +0,0 @@
../../thermion_dart/test/assets/cube_with_morph_targets.glb

Binary file not shown.