Naloga 3 WIP

This commit is contained in:
Gašper Dobrovoljc
2024-12-28 19:58:17 +01:00
parent 7ad330422b
commit a20a45ebd0
51 changed files with 3327 additions and 28 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

View File

@@ -0,0 +1,149 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.2.60",
"version":"2.0"
},
"extensionsUsed":[
"KHR_materials_unlit"
],
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0
]
}
],
"nodes":[
{
"mesh":0,
"name":"Cone",
"rotation":[
0,
0,
-0.7071068286895752,
0.7071068286895752
]
}
],
"materials":[
{
"doubleSided":true,
"extensions":{
"KHR_materials_unlit":{}
},
"name":"Material",
"pbrMetallicRoughness":{
"baseColorTexture":{
"index":0
},
"metallicFactor":0,
"roughnessFactor":0.9
}
}
],
"meshes":[
{
"name":"Cone",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2
},
"indices":3,
"material":0
}
]
}
],
"textures":[
{
"sampler":0,
"source":0
}
],
"images":[
{
"mimeType":"image/png",
"name":"base",
"uri":"base.png"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":128,
"max":[
1,
1,
1
],
"min":[
-1,
-1,
-1
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":128,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":128,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5123,
"count":186,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":1536,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":1536,
"byteOffset":1536,
"target":34962
},
{
"buffer":0,
"byteLength":1024,
"byteOffset":3072,
"target":34962
},
{
"buffer":0,
"byteLength":372,
"byteOffset":4096,
"target":34963
}
],
"samplers":[
{
"magFilter":9729,
"minFilter":9987
}
],
"buffers":[
{
"byteLength":4468,
"uri":"cone.bin"
}
]
}

40
naloga_3/models/cube.obj Normal file
View File

@@ -0,0 +1,40 @@
# Blender 4.2.1 LTS
# www.blender.org
mtllib cube.mtl
o Cube
v 1.000000 1.000000 -1.000000
v 1.000000 -1.000000 -1.000000
v 1.000000 1.000000 1.000000
v 1.000000 -1.000000 1.000000
v -1.000000 1.000000 -1.000000
v -1.000000 -1.000000 -1.000000
v -1.000000 1.000000 1.000000
v -1.000000 -1.000000 1.000000
vn -0.0000 1.0000 -0.0000
vn -0.0000 -0.0000 1.0000
vn -1.0000 -0.0000 -0.0000
vn -0.0000 -1.0000 -0.0000
vn 1.0000 -0.0000 -0.0000
vn -0.0000 -0.0000 -1.0000
vt 0.625000 0.500000
vt 0.875000 0.500000
vt 0.875000 0.750000
vt 0.625000 0.750000
vt 0.375000 0.750000
vt 0.625000 1.000000
vt 0.375000 1.000000
vt 0.375000 0.000000
vt 0.625000 0.000000
vt 0.625000 0.250000
vt 0.375000 0.250000
vt 0.125000 0.500000
vt 0.375000 0.500000
vt 0.125000 0.750000
s 0
usemtl Material
f 1/1/1 5/2/1 7/3/1 3/4/1
f 4/5/2 3/4/2 7/6/2 8/7/2
f 8/8/3 7/9/3 5/10/3 6/11/3
f 6/12/4 2/13/4 4/5/4 8/14/4
f 2/13/5 1/1/5 3/4/5 4/5/5
f 6/11/6 5/10/6 1/1/6 2/13/6

Binary file not shown.

After

Width:  |  Height:  |  Size: 60 KiB

Binary file not shown.

View File

@@ -0,0 +1,190 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v3.6.6",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Scene",
"nodes":[
0,
1
]
}
],
"nodes":[
{
"camera":0,
"name":"Camera",
"rotation":[
-0.20997299253940582,
0.3857799470424652,
0.09062844514846802,
0.8937962055206299
],
"translation":[
7.358891487121582,
4.958309173583984,
6.925790786743164
]
},
{
"mesh":0,
"name":"Suzanne"
}
],
"cameras":[
{
"name":"Camera",
"perspective":{
"aspectRatio":1.7777777777777777,
"yfov":0.39959652046304894,
"zfar":100,
"znear":0.10000000149011612
},
"type":"perspective"
}
],
"materials":[
{
"doubleSided":true,
"name":"Material",
"normalTexture": {
"index":1
},
"pbrMetallicRoughness":{
"baseColorTexture":{
"index":0
},
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"name":"Suzanne",
"primitives":[
{
"attributes":{
"POSITION":0,
"TEXCOORD_0":1,
"NORMAL":2,
"TANGENT":3
},
"indices":4,
"material":0
}
]
}
],
"textures":[
{
"sampler":0,
"source":0
},
{
"sampler":0,
"source":1
}
],
"images":[
{
"mimeType":"image/png",
"name":"base",
"uri":"base.png"
},
{
"mimeType":"image/webp",
"name":"normal",
"uri":"normal.webp"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":556,
"max":[
1.3671875,
0.984375,
0.8515625
],
"min":[
-1.3671875,
-0.984375,
-0.8515625
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":556,
"type":"VEC2"
},
{
"bufferView":2,
"componentType":5126,
"count":556,
"type":"VEC3"
},
{
"bufferView":3,
"componentType":5126,
"count":556,
"type":"VEC4"
},
{
"bufferView":4,
"componentType":5123,
"count":2904,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":6672,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":4448,
"byteOffset":6672,
"target":34962
},
{
"buffer":0,
"byteLength":6672,
"byteOffset":11120,
"target":34962
},
{
"buffer":0,
"byteLength":8896,
"byteOffset":17792,
"target":34962
},
{
"buffer":0,
"byteLength":5808,
"byteOffset":26688,
"target":34963
}
],
"samplers":[
{
"magFilter":9729,
"minFilter":9987
}
],
"buffers":[
{
"byteLength":32496,
"uri":"monkey.bin"
}
]
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB