AR: add hoodies
This commit is contained in:
parent
614105558b
commit
7f2568be0f
BIN
assets/models/ar_hoodie.bin
Normal file
BIN
assets/models/ar_hoodie.bin
Normal file
Binary file not shown.
153
assets/models/ar_hoodie.gltf
Normal file
153
assets/models/ar_hoodie.gltf
Normal file
|
@ -0,0 +1,153 @@
|
|||
{
|
||||
"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",
|
||||
"rotation":[
|
||||
0.26658907532691956,
|
||||
0,
|
||||
0,
|
||||
0.963810384273529
|
||||
],
|
||||
"scale":[
|
||||
0.29374659061431885,
|
||||
0.29374659061431885,
|
||||
0.15712739527225494
|
||||
],
|
||||
"translation":[
|
||||
0.004196017049252987,
|
||||
0.3071044087409973,
|
||||
-0.12259834259748459
|
||||
]
|
||||
}
|
||||
],
|
||||
"materials":[
|
||||
{
|
||||
"doubleSided":true,
|
||||
"name":"Denim",
|
||||
"pbrMetallicRoughness":{
|
||||
"baseColorTexture":{
|
||||
"index":0
|
||||
},
|
||||
"metallicFactor":0.5158730149269104,
|
||||
"roughnessFactor":0.841269850730896
|
||||
}
|
||||
}
|
||||
],
|
||||
"meshes":[
|
||||
{
|
||||
"name":"Mesh",
|
||||
"primitives":[
|
||||
{
|
||||
"attributes":{
|
||||
"POSITION":0,
|
||||
"NORMAL":1,
|
||||
"TEXCOORD_0":2
|
||||
},
|
||||
"indices":3,
|
||||
"material":0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"textures":[
|
||||
{
|
||||
"sampler":0,
|
||||
"source":0
|
||||
}
|
||||
],
|
||||
"images":[
|
||||
{
|
||||
"mimeType":"image/jpeg",
|
||||
"name":"denim",
|
||||
"uri":"textures/denim.jpg"
|
||||
}
|
||||
],
|
||||
"accessors":[
|
||||
{
|
||||
"bufferView":0,
|
||||
"componentType":5126,
|
||||
"count":1756,
|
||||
"max":[
|
||||
1.1458876132965088,
|
||||
1.3344918489456177,
|
||||
1.3661909103393555
|
||||
],
|
||||
"min":[
|
||||
-1.1843910217285156,
|
||||
-1.4032416343688965,
|
||||
-2.3344597816467285
|
||||
],
|
||||
"type":"VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView":1,
|
||||
"componentType":5126,
|
||||
"count":1756,
|
||||
"type":"VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView":2,
|
||||
"componentType":5126,
|
||||
"count":1756,
|
||||
"type":"VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView":3,
|
||||
"componentType":5123,
|
||||
"count":8448,
|
||||
"type":"SCALAR"
|
||||
}
|
||||
],
|
||||
"bufferViews":[
|
||||
{
|
||||
"buffer":0,
|
||||
"byteLength":21072,
|
||||
"byteOffset":0,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteLength":21072,
|
||||
"byteOffset":21072,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteLength":14048,
|
||||
"byteOffset":42144,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteLength":16896,
|
||||
"byteOffset":56192,
|
||||
"target":34963
|
||||
}
|
||||
],
|
||||
"samplers":[
|
||||
{
|
||||
"magFilter":9729,
|
||||
"minFilter":9987
|
||||
}
|
||||
],
|
||||
"buffers":[
|
||||
{
|
||||
"byteLength":73088,
|
||||
"uri":"ar_hoodie.bin"
|
||||
}
|
||||
]
|
||||
}
|
BIN
assets/models/ar_hoodie_up.bin
Normal file
BIN
assets/models/ar_hoodie_up.bin
Normal file
Binary file not shown.
153
assets/models/ar_hoodie_up.gltf
Normal file
153
assets/models/ar_hoodie_up.gltf
Normal file
|
@ -0,0 +1,153 @@
|
|||
{
|
||||
"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",
|
||||
"rotation":[
|
||||
0.26658907532691956,
|
||||
0,
|
||||
0,
|
||||
0.963810384273529
|
||||
],
|
||||
"scale":[
|
||||
0.29374659061431885,
|
||||
0.29374659061431885,
|
||||
0.15712739527225494
|
||||
],
|
||||
"translation":[
|
||||
0.004196017049252987,
|
||||
0.3071044087409973,
|
||||
-0.12259834259748459
|
||||
]
|
||||
}
|
||||
],
|
||||
"materials":[
|
||||
{
|
||||
"doubleSided":true,
|
||||
"name":"Denim",
|
||||
"pbrMetallicRoughness":{
|
||||
"baseColorTexture":{
|
||||
"index":0
|
||||
},
|
||||
"metallicFactor":0.5158730149269104,
|
||||
"roughnessFactor":0.841269850730896
|
||||
}
|
||||
}
|
||||
],
|
||||
"meshes":[
|
||||
{
|
||||
"name":"Mesh",
|
||||
"primitives":[
|
||||
{
|
||||
"attributes":{
|
||||
"POSITION":0,
|
||||
"NORMAL":1,
|
||||
"TEXCOORD_0":2
|
||||
},
|
||||
"indices":3,
|
||||
"material":0
|
||||
}
|
||||
]
|
||||
}
|
||||
],
|
||||
"textures":[
|
||||
{
|
||||
"sampler":0,
|
||||
"source":0
|
||||
}
|
||||
],
|
||||
"images":[
|
||||
{
|
||||
"mimeType":"image/jpeg",
|
||||
"name":"denim",
|
||||
"uri":"textures/denim.jpg"
|
||||
}
|
||||
],
|
||||
"accessors":[
|
||||
{
|
||||
"bufferView":0,
|
||||
"componentType":5126,
|
||||
"count":1952,
|
||||
"max":[
|
||||
1.2060117721557617,
|
||||
2.471405267715454,
|
||||
1.5074689388275146
|
||||
],
|
||||
"min":[
|
||||
-1.22959566116333,
|
||||
-1.5390512943267822,
|
||||
-1.6484941244125366
|
||||
],
|
||||
"type":"VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView":1,
|
||||
"componentType":5126,
|
||||
"count":1952,
|
||||
"type":"VEC3"
|
||||
},
|
||||
{
|
||||
"bufferView":2,
|
||||
"componentType":5126,
|
||||
"count":1952,
|
||||
"type":"VEC2"
|
||||
},
|
||||
{
|
||||
"bufferView":3,
|
||||
"componentType":5123,
|
||||
"count":9408,
|
||||
"type":"SCALAR"
|
||||
}
|
||||
],
|
||||
"bufferViews":[
|
||||
{
|
||||
"buffer":0,
|
||||
"byteLength":23424,
|
||||
"byteOffset":0,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteLength":23424,
|
||||
"byteOffset":23424,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteLength":15616,
|
||||
"byteOffset":46848,
|
||||
"target":34962
|
||||
},
|
||||
{
|
||||
"buffer":0,
|
||||
"byteLength":18816,
|
||||
"byteOffset":62464,
|
||||
"target":34963
|
||||
}
|
||||
],
|
||||
"samplers":[
|
||||
{
|
||||
"magFilter":9729,
|
||||
"minFilter":9987
|
||||
}
|
||||
],
|
||||
"buffers":[
|
||||
{
|
||||
"byteLength":81280,
|
||||
"uri":"ar_hoodie_up.bin"
|
||||
}
|
||||
]
|
||||
}
|
BIN
src/blender/ar_hoodie.blend
Normal file
BIN
src/blender/ar_hoodie.blend
Normal file
Binary file not shown.
BIN
src/blender/ar_hoodie_up.blend
Normal file
BIN
src/blender/ar_hoodie_up.blend
Normal file
Binary file not shown.
|
@ -375,6 +375,7 @@ actor -55e3 31e3 0 suitv2
|
|||
name "Yuni"
|
||||
chatid Yuni
|
||||
armodel suit_ar_skirt
|
||||
armodel_secondary suit_ar_hoodie
|
||||
rotationx 180
|
||||
rotationy 90
|
||||
wants matchvelocitywith thebe
|
||||
|
|
|
@ -46,6 +46,8 @@ pub const DASHBOARD_DEF: &[(Dashboard, &str)] = &[
|
|||
pub const PLAYER_AR_AVATARS: &[(Avatar, &str, f32, &str)] = &[
|
||||
(Avatar::None, "", 1.0, "No Avatar"),
|
||||
(Avatar::ChefHat, "suit_ar_chefhat", 1.0, "Chef Hat"),
|
||||
(Avatar::Hoodie, "suit_ar_hoodie", 1.0, "Hoodie"),
|
||||
(Avatar::HoodieUp, "suit_ar_hoodie_up", 1.0, "Hoodie Up"),
|
||||
(Avatar::Skirt, "suit_ar_skirt", 1.0, "Skirt"),
|
||||
(Avatar::Nekomimi, "suit_ar_nekomimi", 1.0, "Cat Ears"),
|
||||
(Avatar::Wings, "suit_ar_wings", 1.0, "Wings"),
|
||||
|
@ -179,6 +181,8 @@ pub enum Avatar {
|
|||
None,
|
||||
ChefHat,
|
||||
Nekomimi,
|
||||
Hoodie,
|
||||
HoodieUp,
|
||||
Skirt,
|
||||
Wings,
|
||||
Asteroid,
|
||||
|
|
|
@ -31,6 +31,8 @@ pub fn asset_name_to_path(name: &str) -> &'static str {
|
|||
"suitv2" => "models/suit_v2.gltf#Scene0",
|
||||
"suit_ar_chefhat" => "models/suit_v2/ar_chefhat.glb#Scene0",
|
||||
"suit_ar_nekomimi" => "models/ar_nekomimi.gltf#Scene0",
|
||||
"suit_ar_hoodie" => "models/ar_hoodie.gltf#Scene0",
|
||||
"suit_ar_hoodie_up" => "models/ar_hoodie_up.gltf#Scene0",
|
||||
"suit_ar_skirt" => "models/ar_skirt.gltf#Scene0",
|
||||
"suit_ar_wings" => "models/suit_v2/ar_wings.glb#Scene0",
|
||||
"sus" => "models/sus.glb#Scene0",
|
||||
|
|
Loading…
Reference in a new issue