Basic hand model for the player

This commit is contained in:
Victor Turgeon 2022-10-11 11:42:57 -04:00
parent fa6f2e9a99
commit 74ecaf7475
16 changed files with 413 additions and 11370 deletions

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,10 @@
# Blender MTL File: 'protohand.blend'
# Material Count: 1
newmtl None
Ns 500
Ka 0.8 0.8 0.8
Kd 0.8 0.8 0.8
Ks 0.8 0.8 0.8
d 1
illum 2

View File

@ -0,0 +1,355 @@
# Blender v2.92.0 OBJ File: 'protohand.blend'
# www.blender.org
mtllib protohand.mtl
o Cube_Cube.002
v -0.746312 -0.242574 0.129287
v -0.805847 0.043629 0.129287
v -0.466484 -0.132035 -2.147429
v -0.525543 0.105543 -2.147429
v 0.810185 -0.226062 0.107850
v 0.849436 0.062002 0.107850
v 0.528411 -0.132035 -2.168695
v 0.567348 0.128564 -2.168695
v 0.330153 -0.132035 -2.168695
v 0.110429 -0.132035 -2.147429
v -0.090765 -0.132035 -2.147429
v -0.291959 -0.132035 -2.147429
v -0.291959 0.153243 -2.147429
v -0.090765 0.241704 -2.147429
v 0.110429 0.241704 -2.147429
v 0.369091 0.174803 -2.168695
v -0.437389 -0.178313 0.129287
v -0.148030 -0.062443 0.129287
v 0.167505 -0.062443 0.129287
v 0.499254 -0.157977 0.107850
v 0.538505 0.130087 0.107850
v 0.167505 0.229886 0.129287
v -0.148030 0.229886 0.129287
v -0.496925 0.107891 0.129287
v -0.804963 -0.212566 1.590416
v -0.847666 -0.007279 1.590416
v -0.626083 0.038814 1.590416
v -0.583379 -0.166473 1.590416
v -0.436904 -0.121464 1.988722
v -0.174692 -0.121464 1.988722
v -0.174692 0.121464 1.988722
v -0.436904 0.121464 1.988722
v -0.002421 -0.019973 2.158111
v 0.221430 -0.019973 2.158111
v 0.221430 0.187416 2.158111
v -0.002421 0.187416 2.158111
v 0.325111 -0.107885 1.913650
v 0.558009 -0.107885 1.913650
v 0.558009 0.107885 1.913650
v 0.325111 0.107885 1.913650
v 1.036896 -0.115179 1.146278
v 0.885553 -0.320439 1.146278
v 0.663998 -0.057919 1.146278
v 0.815342 0.147341 1.146278
v -0.384260 -0.139577 -1.040717
v -0.424543 0.066684 -1.040717
v 0.440485 -0.134236 -1.058489
v 0.467043 0.083643 -1.058489
v 0.302491 0.127793 -1.058489
v 0.096956 0.192088 -1.040717
v -0.070032 0.192088 -1.040717
v -0.245828 0.110296 -1.040717
v -0.230110 -0.118789 -1.040717
v -0.070032 -0.081307 -1.040717
v 0.096956 -0.081307 -1.040717
v 0.275933 -0.112211 -1.058489
v -0.407749 -0.105367 -5.702512
v -0.459700 0.090841 -5.702512
v 0.467406 -0.105367 -5.721218
v 0.501657 0.109853 -5.721218
v 0.293009 -0.105367 -5.721218
v 0.099730 -0.105367 -5.702512
v -0.077250 -0.105367 -5.702512
v -0.254229 -0.105367 -5.702512
v -0.254229 0.130235 -5.702512
v -0.077250 0.203291 -5.702512
v 0.099730 0.203291 -5.702512
v 0.327260 0.148040 -5.721218
v -0.470417 -0.123831 -9.063171
v -0.529953 0.101020 -9.063171
v 0.532497 -0.123831 -9.084607
v 0.571748 0.122807 -9.084607
v 0.332641 -0.123831 -9.084607
v 0.111145 -0.123831 -9.063171
v -0.091670 -0.123831 -9.063171
v -0.294486 -0.123831 -9.063171
v -0.294486 0.146165 -9.063171
v -0.091670 0.229886 -9.063171
v 0.111145 0.229886 -9.063171
v 0.371892 0.166570 -9.084607
vt 0.375000 0.152454
vt 0.625000 0.152454
vt 0.625000 0.250000
vt 0.375000 0.250000
vt 0.625000 0.500000
vt 0.375000 0.500000
vt 0.375000 0.500000
vt 0.625000 0.500000
vt 0.375000 0.597546
vt 0.625000 0.597546
vt 0.625000 0.750000
vt 0.375000 0.750000
vt 0.625000 0.000000
vt 0.375000 0.000000
vt 0.375000 0.000000
vt 0.625000 0.000000
vt 0.325000 0.597546
vt 0.325000 0.750000
vt 0.825000 0.597546
vt 0.875000 0.597546
vt 0.875000 0.750000
vt 0.825000 0.750000
vt 0.675000 0.597546
vt 0.675000 0.750000
vt 0.725000 0.597546
vt 0.725000 0.750000
vt 0.775000 0.597546
vt 0.775000 0.750000
vt 0.125000 0.597546
vt 0.175000 0.597546
vt 0.175000 0.750000
vt 0.125000 0.750000
vt 0.225000 0.597546
vt 0.225000 0.750000
vt 0.275000 0.597546
vt 0.275000 0.750000
vt 0.625000 0.800000
vt 0.375000 0.800000
vt 0.375000 0.800000
vt 0.625000 0.800000
vt 0.725000 0.750000
vt 0.675000 0.750000
vt 0.775000 0.750000
vt 0.725000 0.750000
vt 0.225000 0.750000
vt 0.175000 0.750000
vt 0.875000 0.500000
vt 0.825000 0.500000
vt 0.825000 0.500000
vt 0.875000 0.500000
vt 0.725000 0.500000
vt 0.675000 0.500000
vt 0.675000 0.500000
vt 0.725000 0.500000
vt 0.325000 0.500000
vt 0.325000 0.500000
vt 0.375000 0.950000
vt 0.625000 0.950000
vt 0.625000 1.000000
vt 0.375000 1.000000
vt 0.375000 0.950000
vt 0.625000 0.950000
vt 0.875000 0.750000
vt 0.825000 0.750000
vt 0.175000 0.750000
vt 0.125000 0.750000
vt 0.375000 0.900000
vt 0.625000 0.900000
vt 0.625000 0.950000
vt 0.375000 0.950000
vt 0.825000 0.750000
vt 0.775000 0.750000
vt 0.375000 0.900000
vt 0.625000 0.900000
vt 0.375000 0.850000
vt 0.625000 0.850000
vt 0.625000 0.900000
vt 0.375000 0.900000
vt 0.375000 0.850000
vt 0.625000 0.850000
vt 0.275000 0.750000
vt 0.225000 0.750000
vt 0.375000 0.800000
vt 0.625000 0.800000
vt 0.625000 0.850000
vt 0.375000 0.850000
vt 0.325000 0.750000
vt 0.275000 0.750000
vt 0.375000 0.750000
vt 0.625000 0.750000
vt 0.325000 0.750000
vt 0.675000 0.750000
vt 0.275000 0.500000
vt 0.225000 0.500000
vt 0.175000 0.500000
vt 0.125000 0.500000
vt 0.775000 0.500000
vt 0.225000 0.500000
vt 0.175000 0.500000
vt 0.175000 0.500000
vt 0.225000 0.500000
vt 0.375000 0.250000
vt 0.625000 0.250000
vt 0.625000 0.250000
vt 0.375000 0.250000
vt 0.775000 0.500000
vt 0.725000 0.500000
vt 0.775000 0.500000
vt 0.375000 0.500000
vt 0.625000 0.500000
vt 0.275000 0.500000
vt 0.275000 0.500000
vt 0.125000 0.500000
vt 0.375000 0.450000
vt 0.625000 0.450000
vt 0.625000 0.300000
vt 0.375000 0.300000
vt 0.625000 0.350000
vt 0.375000 0.350000
vt 0.625000 0.400000
vt 0.375000 0.400000
vt 0.325000 0.500000
vt 0.675000 0.500000
vt 0.125000 0.500000
vt 0.825000 0.500000
vt 0.875000 0.500000
vn -0.9730 -0.2178 0.0760
vn 0.9882 -0.1520 -0.0178
vn 0.9428 -0.1226 -0.3099
vn -0.9784 -0.2035 -0.0351
vn -0.1862 -0.9825 -0.0106
vn -0.2157 0.9753 -0.0477
vn 0.2294 0.9719 -0.0528
vn 0.2701 0.9614 -0.0519
vn 0.0000 0.9995 -0.0323
vn -0.3613 0.9302 -0.0649
vn 0.1806 -0.9833 -0.0244
vn 0.3228 -0.9462 0.0229
vn 0.0000 -0.9999 0.0161
vn -0.2389 -0.9709 0.0189
vn -0.9184 0.3548 0.1752
vn 0.1641 0.9859 0.0315
vn 0.0000 0.9998 0.0209
vn 0.2056 -0.9786 0.0009
vn -0.1946 0.9809 -0.0080
vn 0.2428 0.9700 -0.0107
vn 0.0000 -1.0000 -0.0075
vn 0.2209 0.9752 -0.0096
vn 0.0000 0.0000 1.0000
vn 0.9745 0.2027 0.0957
vn -0.2036 0.9787 0.0283
vn 0.2036 -0.9787 0.0283
vn -0.9936 -0.1118 0.0183
vn -0.1957 0.9803 0.0268
vn 0.9999 0.0000 0.0143
vn 0.9996 0.0000 -0.0266
vn 0.0000 -0.9998 0.0209
vn -0.9974 0.0000 0.0716
vn 0.9968 -0.0777 -0.0210
vn -0.1664 -0.9860 0.0113
vn -0.9961 0.0000 0.0880
vn -0.5264 -0.8479 0.0632
vn 0.5267 0.8484 -0.0524
vn 0.9203 -0.3556 -0.1630
vn -0.0744 -0.9968 0.0295
vn 0.0000 -0.9990 0.0458
vn 0.1032 -0.9944 0.0249
vn 0.0631 -0.9980 -0.0015
vn -0.4111 0.9102 0.0505
vn 0.0000 0.9990 0.0448
vn 0.2756 0.9599 0.0518
vn 0.2413 0.9687 0.0582
vn -0.2160 0.9751 0.0504
vn -0.0606 -0.9982 0.0040
vn 0.9875 -0.1352 0.0808
vn -0.9329 -0.1891 -0.3065
vn 0.0000 -1.0000 0.0055
vn -0.9665 -0.2559 0.0194
vn 0.0000 1.0000 0.0079
vn 0.9874 -0.1571 0.0200
vn -0.0007 -1.0000 -0.0075
vn -0.9686 -0.2479 -0.0174
vn -0.3928 0.9196 -0.0108
vn 0.0000 0.9999 -0.0108
vn 0.0000 0.0000 -1.0000
vn -0.0879 0.0054 -0.9961
vn 0.2366 0.9716 0.0085
vn -0.1883 0.9821 0.0069
vn 0.0005 -1.0000 0.0055
vn 0.2139 0.9768 0.0082
vn -0.3815 0.9243 0.0090
usemtl None
s off
f 45/1/1 46/2/1 4/3/1 3/4/1
f 8/5/2 7/6/2 59/7/2 60/8/2
f 47/9/3 48/10/3 6/11/3 5/12/3
f 2/13/4 1/14/4 25/15/4 26/16/4
f 56/17/5 47/9/5 5/12/5 20/18/5
f 52/19/6 46/20/6 2/21/6 24/22/6
f 48/10/7 49/23/7 21/24/7 6/11/7
f 49/23/8 50/25/8 22/26/8 21/24/8
f 50/25/9 51/27/9 23/28/9 22/26/9
f 51/27/10 52/19/10 24/22/10 23/28/10
f 45/29/11 53/30/11 17/31/11 1/32/11
f 53/30/12 54/33/12 18/34/12 17/31/12
f 54/33/13 55/35/13 19/36/13 18/34/13
f 55/35/14 56/17/14 20/18/14 19/36/14
f 21/37/15 20/38/15 43/39/15 44/40/15
f 21/24/16 22/26/16 40/41/16 39/42/16
f 22/26/17 23/28/17 36/43/17 35/44/17
f 17/31/18 18/34/18 30/45/18 29/46/18
f 4/47/19 13/48/19 65/49/19 58/50/19
f 15/51/20 16/52/20 68/53/20 67/54/20
f 7/6/21 9/55/21 61/56/21 59/7/21
f 16/52/22 8/5/22 60/8/22 68/53/22
f 28/57/23 27/58/23 26/59/23 25/60/23
f 17/61/24 24/62/24 27/58/24 28/57/24
f 24/22/25 2/21/25 26/63/25 27/64/25
f 1/32/26 17/31/26 28/65/26 25/66/26
f 30/67/23 31/68/23 32/69/23 29/70/23
f 24/62/27 17/61/27 29/70/27 32/69/27
f 23/28/28 24/22/28 32/71/28 31/72/28
f 18/73/29 23/74/29 31/68/29 30/67/29
f 34/75/23 35/76/23 36/77/23 33/78/23
f 19/79/30 22/80/30 35/76/30 34/75/30
f 18/34/31 19/36/31 34/81/31 33/82/31
f 23/74/32 18/73/32 33/78/32 36/77/32
f 38/83/23 39/84/23 40/85/23 37/86/23
f 20/38/33 21/37/33 39/84/33 38/83/33
f 19/36/34 20/18/34 38/87/34 37/88/34
f 22/80/35 19/79/35 37/86/35 40/85/35
f 42/89/23 41/90/23 44/40/23 43/39/23
f 20/18/36 5/12/36 42/89/36 43/91/36
f 6/11/37 21/24/37 44/92/37 41/90/37
f 5/12/38 6/11/38 41/90/38 42/89/38
f 10/93/39 9/55/39 56/17/39 55/35/39
f 11/94/40 10/93/40 55/35/40 54/33/40
f 12/95/41 11/94/41 54/33/41 53/30/41
f 3/96/42 12/95/42 53/30/42 45/29/42
f 14/97/43 13/48/43 52/19/43 51/27/43
f 15/51/44 14/97/44 51/27/44 50/25/44
f 16/52/45 15/51/45 50/25/45 49/23/45
f 8/5/46 16/52/46 49/23/46 48/10/46
f 13/48/47 4/47/47 46/20/47 52/19/47
f 9/55/48 7/6/48 47/9/48 56/17/48
f 7/6/49 8/5/49 48/10/49 47/9/49
f 1/14/50 2/13/50 46/2/50 45/1/50
f 63/98/51 64/99/51 76/100/51 75/101/51
f 57/102/52 58/103/52 70/104/52 69/105/52
f 66/106/53 67/54/53 79/107/53 78/108/53
f 60/8/54 59/7/54 71/109/54 72/110/54
f 62/111/51 63/98/51 75/101/51 74/112/51
f 9/55/55 10/93/55 62/111/55 61/56/55
f 3/4/56 4/3/56 58/103/56 57/102/56
f 13/48/57 14/97/57 66/106/57 65/49/57
f 10/93/21 11/94/21 63/98/21 62/111/21
f 12/95/21 3/96/21 57/113/21 64/99/21
f 14/97/58 15/51/58 67/54/58 66/106/58
f 11/94/21 12/95/21 64/99/21 63/98/21
f 73/114/59 80/115/59 72/110/59 71/109/59
f 69/105/59 70/104/59 77/116/59 76/117/59
f 76/117/59 77/116/59 78/118/59 75/119/59
f 75/119/59 78/118/59 79/120/59 74/121/59
f 74/121/60 79/120/60 80/115/60 73/114/60
f 59/7/51 61/56/51 73/122/51 71/109/51
f 67/54/61 68/53/61 80/123/61 79/107/61
f 64/99/51 57/113/51 69/124/51 76/100/51
f 58/50/62 65/49/62 77/125/62 70/126/62
f 61/56/63 62/111/63 74/112/63 73/122/63
f 68/53/64 60/8/64 72/110/64 80/123/64
f 65/49/65 66/106/65 78/108/65 77/125/65

View File

@ -0,0 +1,20 @@
[remap]
importer="wavefront_obj"
type="Mesh"
path="res://.import/protohand.obj-df2c0be9df831c7fa49462d3c0106ebf.mesh"
[deps]
files=[ "res://.import/protohand.obj-df2c0be9df831c7fa49462d3c0106ebf.mesh" ]
source_file="res://BlenderStuff/Hand/protohand.obj"
dest_files=[ "res://.import/protohand.obj-df2c0be9df831c7fa49462d3c0106ebf.mesh", "res://.import/protohand.obj-df2c0be9df831c7fa49462d3c0106ebf.mesh" ]
[params]
generate_tangents=true
scale_mesh=Vector3( 1, 1, 1 )
offset_mesh=Vector3( 0, 0, 0 )
octahedral_compression=true
optimize_mesh_flags=4286

View File

@ -1,22 +1,21 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=7 format=2]
[ext_resource path="res://Player.gd" type="Script" id=1]
[sub_resource type="CapsuleMesh" id=1]
mid_height = 3.0
[ext_resource path="res://BlenderStuff/Hand/protohand.obj" type="ArrayMesh" id=2]
[ext_resource path="res://Textures/kenney_prototype_textures/purple/texture_01.png" type="Texture" id=3]
[sub_resource type="CapsuleShape" id=2]
height = 3.0
[sub_resource type="CylinderShape" id=3]
[sub_resource type="SpatialMaterial" id=4]
albedo_texture = ExtResource( 3 )
uv1_triplanar = true
[node name="Player" type="KinematicBody"]
script = ExtResource( 1 )
[node name="MeshInstance" type="MeshInstance" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
mesh = SubResource( 1 )
[node name="CollisionShape" type="CollisionShape" parent="."]
transform = Transform( 1, 0, 0, 0, -4.37114e-08, -1, 0, 1, -4.37114e-08, 0, 0, 0 )
shape = SubResource( 2 )
@ -29,6 +28,13 @@ shape = SubResource( 3 )
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 1.84218, 0 )
[node name="Camera" type="Camera" parent="Head"]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0.343071, -0.253136 )
[node name="Hand" type="MeshInstance" parent="Head"]
transform = Transform( -0.178665, 0.385633, 0.029372, 0.386578, 0.177104, 0.0262457, 0.0115471, 0.0376592, -0.4242, 1.33036, -0.0718137, -2.73514 )
mesh = ExtResource( 2 )
skeleton = NodePath("../..")
material/0 = SubResource( 4 )
[node name="GroundCheck" type="RayCast" parent="."]
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, -2, 0 )

View File

@ -2,28 +2,30 @@
importer="texture"
type="StreamTexture"
path="res://.import/texture_01.png-d19133fc921750df94a2adffbcd07ce8.stex"
path.s3tc="res://.import/texture_01.png-d19133fc921750df94a2adffbcd07ce8.s3tc.stex"
path.etc2="res://.import/texture_01.png-d19133fc921750df94a2adffbcd07ce8.etc2.stex"
metadata={
"vram_texture": false
"imported_formats": [ "s3tc", "etc2" ],
"vram_texture": true
}
[deps]
source_file="res://Textures/kenney_prototype_textures/purple/texture_01.png"
dest_files=[ "res://.import/texture_01.png-d19133fc921750df94a2adffbcd07ce8.stex" ]
dest_files=[ "res://.import/texture_01.png-d19133fc921750df94a2adffbcd07ce8.s3tc.stex", "res://.import/texture_01.png-d19133fc921750df94a2adffbcd07ce8.etc2.stex" ]
[params]
compress/mode=0
compress/mode=2
compress/lossy_quality=0.7
compress/hdr_mode=0
compress/bptc_ldr=0
compress/normal_map=0
flags/repeat=0
flags/repeat=true
flags/filter=true
flags/mipmaps=false
flags/mipmaps=true
flags/anisotropic=false
flags/srgb=2
flags/srgb=1
process/fix_alpha_border=true
process/premult_alpha=false
process/HDR_as_SRGB=false
@ -31,5 +33,5 @@ process/invert_color=false
process/normal_map_invert_y=false
stream=false
size_limit=0
detect_3d=true
detect_3d=false
svg/scale=1.0

File diff suppressed because it is too large Load Diff

View File

@ -1,30 +0,0 @@
--Guide--
If you want to use the character rig.
V
V
--Object Mode--
If you're in object mode, click "rig" then go in to pose mode (top left where it says Object Mode).
--Edit Mode--
Same for edit mode. Go to Object Mode (top left again where it says Edit Mode), then click "rig" then go in to pose mode. (top left AGAIN)
--Pose Mode--
You should automatically be in Pose Mode but check the others if not.
--Controlling--
The colored handles do different things. The yellow box moves the upper-body, the red handles on the hands move the hands. To move these parts, select them then press G. If you want to rotate them, press R. Some handles do nothing but I would advise you not to mess around with them because it could cause something. Same with name-changing. I don't know if changing names does anything long-term because I'm too lazy to test out if using every single modifier after re-naming the knee to cheese does anything bad. Just try it out for yourself, and if something unexpected happens after re-naming but doesn't when you don't, please notify me so I can warn others before they all start rioting in my house because they can't add decimate.
--Extra Info--
Here's a helpful video link if you're stuck: https://www.youtube.com/watch?v=DS885Sk1gSs. Begin watching at 13:05 for the tutorial.
Triangles-528
Edges-722 <-- I don't know why you would need this but have it anyway.
Vertices-266
--Credit--
TyronicGames
You don't have to credit but it would be appreciated ☜(゚ヮ゚☜)
--Rules--
Do whatever you want with it.

File diff suppressed because it is too large Load Diff

View File

@ -1,20 +0,0 @@
[remap]
importer="wavefront_obj"
type="Mesh"
path="res://.import/Choose This.obj-bdbee1adee69c2dc49fa6481965eec5e.mesh"
[deps]
files=[ "res://.import/Choose This.obj-bdbee1adee69c2dc49fa6481965eec5e.mesh" ]
source_file="res://assets/LowPolyBomhomme/OBJ/Choose This.obj"
dest_files=[ "res://.import/Choose This.obj-bdbee1adee69c2dc49fa6481965eec5e.mesh", "res://.import/Choose This.obj-bdbee1adee69c2dc49fa6481965eec5e.mesh" ]
[params]
generate_tangents=true
scale_mesh=Vector3( 1, 1, 1 )
offset_mesh=Vector3( 0, 0, 0 )
octahedral_compression=true
optimize_mesh_flags=4286

View File

@ -1,12 +0,0 @@
# Blender MTL File: 'LowPolyCharacter.blend'
# Material Count: 1
newmtl Material.004
Ns 506.250000
Ka 1.000000 1.000000 1.000000
Kd 0.800000 0.800000 0.800000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2

View File

@ -14,6 +14,10 @@ config/name="Slap"
run/main_scene="res://Test_Scene.tscn"
config/icon="res://icon.png"
[display]
window/stretch/aspect="keep"
[gui]
common/drop_mouse_on_gui_input_disabled=true