replace key.glb with key.gltf

This commit is contained in:
Teatov 2025-08-06 01:34:41 +10:00
parent 564cf7c168
commit 106a8611be
5 changed files with 314 additions and 22 deletions

BIN
assets/models/key.bin (Stored with Git LFS) Normal file

Binary file not shown.

BIN
assets/models/key.glb (Stored with Git LFS)

Binary file not shown.

295
assets/models/key.gltf Normal file
View File

@ -0,0 +1,295 @@
{
"asset":{
"generator":"Khronos glTF Blender I/O v4.5.47",
"version":"2.0"
},
"scene":0,
"scenes":[
{
"name":"Collection",
"nodes":[
5,
6
]
}
],
"nodes":[
{
"name":"TopLeft",
"translation":[
-0.5,
0,
-0.5
]
},
{
"name":"BottomRight",
"translation":[
0.5,
0,
0.5
]
},
{
"name":"TopRight",
"translation":[
0.5,
0,
-0.5
]
},
{
"name":"BottomLeft",
"translation":[
-0.5,
0,
0.5
]
},
{
"mesh":0,
"name":"KeyMesh",
"skin":0
},
{
"children":[
4,
0,
1,
2,
3
],
"name":"KeyArmature"
},
{
"mesh":1,
"name":"NubMesh",
"translation":[
0,
0.25,
0.42500001192092896
]
}
],
"materials":[
{
"doubleSided":true,
"name":"key_mat",
"pbrMetallicRoughness":{
"baseColorFactor":[
0.800000011920929,
0.800000011920929,
0.800000011920929,
1
],
"metallicFactor":0,
"roughnessFactor":0.5
}
}
],
"meshes":[
{
"name":"KeyMesh",
"primitives":[
{
"attributes":{
"POSITION":0,
"NORMAL":1,
"TEXCOORD_0":2,
"JOINTS_0":3,
"WEIGHTS_0":4
},
"indices":5,
"material":0
}
]
},
{
"name":"NubMesh",
"primitives":[
{
"attributes":{
"POSITION":7,
"NORMAL":8,
"TEXCOORD_0":9
},
"indices":10,
"material":0
}
]
}
],
"skins":[
{
"inverseBindMatrices":6,
"joints":[
0,
1,
2,
3
],
"name":"KeyArmature"
}
],
"accessors":[
{
"bufferView":0,
"componentType":5126,
"count":115,
"max":[
0.5,
0.2500000596046448,
0.5
],
"min":[
-0.5,
-0.25000008940696716,
-0.5
],
"type":"VEC3"
},
{
"bufferView":1,
"componentType":5126,
"count":115,
"type":"VEC3"
},
{
"bufferView":2,
"componentType":5126,
"count":115,
"type":"VEC2"
},
{
"bufferView":3,
"componentType":5121,
"count":115,
"type":"VEC4"
},
{
"bufferView":4,
"componentType":5126,
"count":115,
"type":"VEC4"
},
{
"bufferView":5,
"componentType":5123,
"count":564,
"type":"SCALAR"
},
{
"bufferView":6,
"componentType":5126,
"count":4,
"type":"MAT4"
},
{
"bufferView":7,
"componentType":5126,
"count":25,
"max":[
0.15000000596046448,
0.03999999910593033,
0.02499999664723873
],
"min":[
-0.15000000596046448,
0,
-0.02499999664723873
],
"type":"VEC3"
},
{
"bufferView":8,
"componentType":5126,
"count":25,
"type":"VEC3"
},
{
"bufferView":9,
"componentType":5126,
"count":25,
"type":"VEC2"
},
{
"bufferView":10,
"componentType":5123,
"count":90,
"type":"SCALAR"
}
],
"bufferViews":[
{
"buffer":0,
"byteLength":1380,
"byteOffset":0,
"target":34962
},
{
"buffer":0,
"byteLength":1380,
"byteOffset":1380,
"target":34962
},
{
"buffer":0,
"byteLength":920,
"byteOffset":2760,
"target":34962
},
{
"buffer":0,
"byteLength":460,
"byteOffset":3680,
"target":34962
},
{
"buffer":0,
"byteLength":1840,
"byteOffset":4140,
"target":34962
},
{
"buffer":0,
"byteLength":1128,
"byteOffset":5980,
"target":34963
},
{
"buffer":0,
"byteLength":256,
"byteOffset":7108
},
{
"buffer":0,
"byteLength":300,
"byteOffset":7364,
"target":34962
},
{
"buffer":0,
"byteLength":300,
"byteOffset":7664,
"target":34962
},
{
"buffer":0,
"byteLength":200,
"byteOffset":7964,
"target":34962
},
{
"buffer":0,
"byteLength":180,
"byteOffset":8164,
"target":34963
}
],
"buffers":[
{
"byteLength":8344,
"uri":"key.bin"
}
]
}

View File

@ -3,13 +3,13 @@
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://bmswlpu3ym25i"
path="res://.godot/imported/key.glb-28a29c675eb9833cbdb70f3e33f99c5f.scn"
uid="uid://d4ffyk6iou3ns"
path="res://.godot/imported/key.gltf-680011bf56a1e8dedf6b8edbd0ccfade.scn"
[deps]
source_file="res://assets/models/key.glb"
dest_files=["res://.godot/imported/key.glb-28a29c675eb9833cbdb70f3e33f99c5f.scn"]
source_file="res://assets/models/key.gltf"
dest_files=["res://.godot/imported/key.gltf-680011bf56a1e8dedf6b8edbd0ccfade.scn"]
[params]

View File

@ -1,7 +1,6 @@
[gd_scene load_steps=20 format=3 uid="uid://bryima34hc3yp"]
[ext_resource type="Script" uid="uid://cl0asbgqd3anu" path="res://scripts/game_key.gd" id="1_sypr4"]
[ext_resource type="PackedScene" uid="uid://bmswlpu3ym25i" path="res://assets/models/key.glb" id="2_6rsff"]
[ext_resource type="AudioStream" uid="uid://bq0ikue882kg6" path="res://assets/sfx/keyboard/typing/press_01.wav" id="2_cqjrw"]
[ext_resource type="AudioStream" uid="uid://dgndsx3o21yss" path="res://assets/sfx/keyboard/typing/press_02.wav" id="3_p6qfn"]
[ext_resource type="AudioStream" uid="uid://1l34knbt0avm" path="res://assets/sfx/keyboard/typing/press_03.wav" id="4_y31qj"]
@ -16,6 +15,7 @@
[ext_resource type="AudioStream" uid="uid://dj7cpa4c8thp6" path="res://assets/sfx/keyboard/typing/release_05.wav" id="13_tj68p"]
[ext_resource type="AudioStream" uid="uid://41d8y11au44e" path="res://assets/sfx/keyboard/typing/release_06.wav" id="14_kt0yx"]
[ext_resource type="AudioStream" uid="uid://8rgf5ic4w1r3" path="res://assets/sfx/keyboard/typing/release_07.wav" id="15_w7o33"]
[ext_resource type="PackedScene" uid="uid://d4ffyk6iou3ns" path="res://assets/models/key.gltf" id="16_cqjrw"]
[sub_resource type="AudioStreamRandomizer" id="AudioStreamRandomizer_agrko"]
random_pitch = 1.1
@ -44,9 +44,9 @@ stream_6/stream = ExtResource("15_w7o33")
[node name="GameKey" type="Node3D" node_paths=PackedStringArray("player_pos_marker", "_skeleton_primary", "_skeleton_secondary", "_nub_mesh", "_upper_left_label", "_upper_right_label", "_lower_left_label", "_lower_right_label", "_center_label", "_press_light", "_adjacency_light", "_sfx_player")]
script = ExtResource("1_sypr4")
player_pos_marker = NodePath("PlayerPosMarker")
_skeleton_primary = NodePath("ModelPrimary/KeyArmature/Skeleton3D")
_skeleton_primary = NodePath("Model/KeyArmature/Skeleton3D")
_skeleton_secondary = NodePath("ModelSecondary/KeyArmature/Skeleton3D")
_nub_mesh = NodePath("ModelPrimary/NubMesh")
_nub_mesh = NodePath("Model/NubMesh")
_upper_left_label = NodePath("Labels/UpperLeftAttachment/UpperLeftLabel")
_upper_right_label = NodePath("Labels/UpperRightAttachment/UpperRightLabel")
_lower_left_label = NodePath("Labels/LowerLeftAttachment/LowerLeftLabel")
@ -58,15 +58,12 @@ _sfx_player = NodePath("SFXPlayer")
_press_sfx = SubResource("AudioStreamRandomizer_agrko")
_release_sfx = SubResource("AudioStreamRandomizer_ch32x")
[node name="ModelPrimary" parent="." instance=ExtResource("2_6rsff")]
[node name="Model" parent="." instance=ExtResource("16_cqjrw")]
[node name="KeyMesh" parent="ModelPrimary/KeyArmature/Skeleton3D" index="0"]
gi_mode = 2
[node name="ModelSecondary" parent="." instance=ExtResource("16_cqjrw")]
[node name="ModelSecondary" parent="." instance=ExtResource("2_6rsff")]
[node name="KeyMesh" parent="ModelSecondary/KeyArmature/Skeleton3D" index="0"]
gi_mode = 2
[node name="Skeleton3D" parent="ModelSecondary/KeyArmature" index="0"]
visible = false
[node name="NubMesh" parent="ModelSecondary" index="1"]
visible = false
@ -78,7 +75,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0, -0.5)
bone_name = "TopLeft"
bone_idx = 0
use_external_skeleton = true
external_skeleton = NodePath("../../ModelPrimary/KeyArmature/Skeleton3D")
external_skeleton = NodePath("../../Model/KeyArmature/Skeleton3D")
[node name="UpperLeftLabel" type="Label3D" parent="Labels/UpperLeftAttachment"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.256, 0.251, 0.264)
@ -97,7 +94,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0, -0.5)
bone_name = "TopRight"
bone_idx = 2
use_external_skeleton = true
external_skeleton = NodePath("../../ModelPrimary/KeyArmature/Skeleton3D")
external_skeleton = NodePath("../../Model/KeyArmature/Skeleton3D")
[node name="UpperRightLabel" type="Label3D" parent="Labels/UpperRightAttachment"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.256, 0.251, 0.264)
@ -116,7 +113,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.5, 0, 0.5)
bone_name = "BottomLeft"
bone_idx = 3
use_external_skeleton = true
external_skeleton = NodePath("../../ModelPrimary/KeyArmature/Skeleton3D")
external_skeleton = NodePath("../../Model/KeyArmature/Skeleton3D")
[node name="LowerLeftLabel" type="Label3D" parent="Labels/LowerLeftAttachment"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0.256, 0.251, -0.264)
@ -135,7 +132,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.5, 0, 0.5)
bone_name = "BottomRight"
bone_idx = 1
use_external_skeleton = true
external_skeleton = NodePath("../../ModelPrimary/KeyArmature/Skeleton3D")
external_skeleton = NodePath("../../Model/KeyArmature/Skeleton3D")
[node name="LowerRightLabel" type="Label3D" parent="Labels/LowerRightAttachment"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, -0.256, 0.251, -0.264)
@ -186,5 +183,5 @@ volume_db = -15.0
bus = &"SFX"
attenuation_filter_cutoff_hz = 20500.0
[editable path="ModelPrimary"]
[editable path="Model"]
[editable path="ModelSecondary"]