Skip to content

Commit 65ea563

Browse files
authored
Merge pull request #257 from TwistedTwigleg/IK_Linux_Fix
Fixed the materials using upper case names in the IK demo.
2 parents 3344264 + 532fbb4 commit 65ea563

15 files changed

+306
-48
lines changed

3d/ik/GunMaterial.material

-857 Bytes
Binary file not shown.

3d/ik/Gun_Emission.material

-2.23 KB
Binary file not shown.

3d/ik/battle_bot_color.tres

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
[gd_resource type="SpatialMaterial" load_steps=2 format=2]
2+
3+
[ext_resource path="res://godot_battle_bot_colors.png" type="Texture" id=1]
4+
5+
[resource]
6+
7+
resource_name = "battle_bot_colors"
8+
render_priority = 0
9+
flags_transparent = false
10+
flags_unshaded = false
11+
flags_vertex_lighting = false
12+
flags_no_depth_test = false
13+
flags_use_point_size = false
14+
flags_world_triplanar = false
15+
flags_fixed_size = false
16+
flags_albedo_tex_force_srgb = false
17+
vertex_color_use_as_albedo = false
18+
vertex_color_is_srgb = false
19+
params_diffuse_mode = 0
20+
params_specular_mode = 0
21+
params_blend_mode = 0
22+
params_cull_mode = 0
23+
params_depth_draw_mode = 0
24+
params_line_width = 1.0
25+
params_point_size = 1.0
26+
params_billboard_mode = 0
27+
params_grow = false
28+
params_use_alpha_scissor = false
29+
albedo_color = Color( 1, 1, 1, 1 )
30+
albedo_texture = ExtResource( 1 )
31+
metallic = 0.5
32+
metallic_specular = 0.5
33+
metallic_texture_channel = 0
34+
roughness = 0.542695
35+
roughness_texture_channel = 0
36+
emission_enabled = false
37+
normal_enabled = false
38+
rim_enabled = false
39+
clearcoat_enabled = false
40+
anisotropy_enabled = false
41+
ao_enabled = false
42+
depth_enabled = false
43+
subsurf_scatter_enabled = false
44+
transmission_enabled = false
45+
refraction_enabled = false
46+
detail_enabled = false
47+
uv1_scale = Vector3( 1, 1, 1 )
48+
uv1_offset = Vector3( 0, 0, 0 )
49+
uv1_triplanar = false
50+
uv1_triplanar_sharpness = 1.0
51+
uv2_scale = Vector3( 1, 1, 1 )
52+
uv2_offset = Vector3( 0, 0, 0 )
53+
uv2_triplanar = false
54+
uv2_triplanar_sharpness = 1.0
55+
proximity_fade_enable = false
56+
distance_fade_enable = false
57+
_sections_unfolded = [ "Albedo" ]
58+

3d/ik/battle_bot_colors.material

-935 Bytes
Binary file not shown.

3d/ik/battle_bot_emission.material

-910 Bytes
Binary file not shown.

3d/ik/battle_bot_emission.tres

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
[gd_resource type="SpatialMaterial" format=2]
2+
3+
[resource]
4+
5+
resource_name = "battle_bot_emission"
6+
render_priority = 0
7+
flags_transparent = false
8+
flags_unshaded = false
9+
flags_vertex_lighting = false
10+
flags_no_depth_test = false
11+
flags_use_point_size = false
12+
flags_world_triplanar = false
13+
flags_fixed_size = false
14+
flags_albedo_tex_force_srgb = false
15+
vertex_color_use_as_albedo = false
16+
vertex_color_is_srgb = false
17+
params_diffuse_mode = 0
18+
params_specular_mode = 0
19+
params_blend_mode = 0
20+
params_cull_mode = 0
21+
params_depth_draw_mode = 0
22+
params_line_width = 1.0
23+
params_point_size = 1.0
24+
params_billboard_mode = 0
25+
params_grow = false
26+
params_use_alpha_scissor = false
27+
albedo_color = Color( 0.0735168, 0.6919, 0.855469, 1 )
28+
metallic = 0.5
29+
metallic_specular = 0.5
30+
metallic_texture_channel = 0
31+
roughness = 0.542695
32+
roughness_texture_channel = 0
33+
emission_enabled = true
34+
emission = Color( 0.523438, 0.900313, 1, 1 )
35+
emission_energy = 1.0
36+
emission_operator = 0
37+
emission_on_uv2 = false
38+
normal_enabled = false
39+
rim_enabled = false
40+
clearcoat_enabled = false
41+
anisotropy_enabled = false
42+
ao_enabled = false
43+
depth_enabled = false
44+
subsurf_scatter_enabled = false
45+
transmission_enabled = false
46+
refraction_enabled = false
47+
detail_enabled = false
48+
uv1_scale = Vector3( 1, 1, 1 )
49+
uv1_offset = Vector3( 0, 0, 0 )
50+
uv1_triplanar = false
51+
uv1_triplanar_sharpness = 1.0
52+
uv2_scale = Vector3( 1, 1, 1 )
53+
uv2_offset = Vector3( 0, 0, 0 )
54+
uv2_triplanar = false
55+
uv2_triplanar_sharpness = 1.0
56+
proximity_fade_enable = false
57+
distance_fade_enable = false
58+
_sections_unfolded = [ "Albedo" ]
59+

3d/ik/fabrik_ik.tscn

Lines changed: 30 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
[gd_scene load_steps=15 format=2]
1+
[gd_scene load_steps=17 format=2]
22

33
[ext_resource path="res://addons/sade/editor_gizmo_texture.png" type="Texture" id=1]
44
[ext_resource path="res://godot_battle_bot.dae" type="PackedScene" id=2]
5-
[ext_resource path="res://target_from_mousepos.gd" type="Script" id=3]
6-
[ext_resource path="res://addons/sade/ik_look_at.gd" type="Script" id=4]
7-
[ext_resource path="res://addons/sade/ik_look_at.png" type="Texture" id=5]
8-
[ext_resource path="res://addons/sade/ik_fabrik.gd" type="Script" id=6]
9-
[ext_resource path="res://addons/sade/ik_fabrik.png" type="Texture" id=7]
10-
[ext_resource path="res://button_change_scene.gd" type="Script" id=8]
5+
[ext_resource path="res://battle_bot_color.tres" type="Material" id=3]
6+
[ext_resource path="res://battle_bot_emission.tres" type="Material" id=4]
7+
[ext_resource path="res://target_from_mousepos.gd" type="Script" id=5]
8+
[ext_resource path="res://addons/sade/ik_look_at.gd" type="Script" id=6]
9+
[ext_resource path="res://addons/sade/ik_look_at.png" type="Texture" id=7]
10+
[ext_resource path="res://addons/sade/ik_fabrik.gd" type="Script" id=8]
11+
[ext_resource path="res://addons/sade/ik_fabrik.png" type="Texture" id=9]
12+
[ext_resource path="res://button_change_scene.gd" type="Script" id=10]
1113

1214
[sub_resource type="PlaneMesh" id=1]
1315

@@ -227,7 +229,7 @@ proximity_fade_enable = false
227229
distance_fade_enable = false
228230
_sections_unfolded = [ "Albedo" ]
229231

230-
[node name="FABRIK_IK" type="Spatial"]
232+
[node name="FABRIK_IK" type="Spatial" index="0"]
231233

232234
[node name="Floor_plane" type="MeshInstance" parent="." index="0"]
233235

@@ -278,10 +280,15 @@ environment = SubResource( 4 )
278280

279281
[node name="BattleBot" parent="." index="3" instance=ExtResource( 2 )]
280282

281-
editor/display_folded = true
283+
[node name="godot_battle_bot" parent="BattleBot/Armature/Skeleton" index="0"]
284+
285+
material/0 = ExtResource( 3 )
286+
material/1 = ExtResource( 4 )
287+
_sections_unfolded = [ "material" ]
282288

283289
[node name="Camera" type="Camera" parent="." index="4"]
284290

291+
editor/display_folded = true
285292
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 11.5014, 8.81922 )
286293
keep_aspect = 1
287294
cull_mask = 1048575
@@ -295,7 +302,7 @@ fov = 70.0
295302
size = 1.0
296303
near = 0.05
297304
far = 100.0
298-
script = ExtResource( 3 )
305+
script = ExtResource( 5 )
299306
MOVEMENT_SPEED = -6.0
300307
flip_axis = true
301308

@@ -305,10 +312,10 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, -5.41814 )
305312

306313
[node name="IK_LookAt_Head" type="Spatial" parent="Camera/targets" index="0"]
307314

308-
script = ExtResource( 4 )
315+
script = ExtResource( 6 )
309316
_sections_unfolded = [ "Transform" ]
310317
__meta__ = {
311-
"_editor_icon": ExtResource( 5 )
318+
"_editor_icon": ExtResource( 7 )
312319
}
313320
skeleton_path = NodePath("../../../BattleBot/Armature/Skeleton")
314321
bone_name = "Head"
@@ -324,9 +331,9 @@ debug_messages = false
324331
[node name="IK_FABRIK_Left_Arm" type="Spatial" parent="Camera/targets" index="1"]
325332

326333
editor/display_folded = true
327-
script = ExtResource( 6 )
334+
script = ExtResource( 8 )
328335
__meta__ = {
329-
"_editor_icon": ExtResource( 7 )
336+
"_editor_icon": ExtResource( 9 )
330337
}
331338
skeleton_path = NodePath("../../../BattleBot/Armature/Skeleton")
332339
bones_in_chain = PoolStringArray( "Left_UpperArm", "Left_LowerArm" )
@@ -345,9 +352,9 @@ transform = Transform( 0.518503, 0, -0.855076, 0, 1, 0, 0.855076, 0, 0.518503, 1
345352
[node name="IK_LookAt_LH" type="Spatial" parent="Camera/targets/IK_FABRIK_Left_Arm/target" index="0"]
346353

347354
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.343393, -0.133381, 0.836605 )
348-
script = ExtResource( 4 )
355+
script = ExtResource( 6 )
349356
__meta__ = {
350-
"_editor_icon": ExtResource( 5 )
357+
"_editor_icon": ExtResource( 7 )
351358
}
352359
skeleton_path = NodePath("../../../../../BattleBot/Armature/Skeleton")
353360
bone_name = "Left_Hand"
@@ -375,9 +382,9 @@ transform = Transform( -0.773622, -0.022882, 0.633234, 1.49012e-08, 0.999348, 0.
375382
[node name="IK_FABRIK_Right_Arm" type="Spatial" parent="Camera/targets" index="2"]
376383

377384
editor/display_folded = true
378-
script = ExtResource( 6 )
385+
script = ExtResource( 8 )
379386
__meta__ = {
380-
"_editor_icon": ExtResource( 7 )
387+
"_editor_icon": ExtResource( 9 )
381388
}
382389
skeleton_path = NodePath("../../../BattleBot/Armature/Skeleton")
383390
bones_in_chain = PoolStringArray( "Right_UpperArm", "Right_LowerArm", "Right_Hand" )
@@ -396,9 +403,9 @@ transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, -0.229958, 0, 0.929313 )
396403
[node name="IK_LookAt_RH" type="Spatial" parent="Camera/targets/IK_FABRIK_Right_Arm/target" index="0"]
397404

398405
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0544824, -0.133381, 0.332403 )
399-
script = ExtResource( 4 )
406+
script = ExtResource( 6 )
400407
__meta__ = {
401-
"_editor_icon": ExtResource( 5 )
408+
"_editor_icon": ExtResource( 7 )
402409
}
403410
skeleton_path = NodePath("../../../../../BattleBot/Armature/Skeleton")
404411
bone_name = "Right_Hand"
@@ -425,7 +432,7 @@ transform = Transform( -0.792023, 0.0165762, -0.610266, 0, 0.999631, 0.0271522,
425432

426433
[node name="Right_Hand" type="Spatial" parent="Camera/targets/IK_FABRIK_Right_Arm" index="4"]
427434

428-
transform = Transform( -0.678313, 0.00695222, -0.73474, 9.31323e-10, 0.999955, 0.00946173, 0.734773, 0.00641802, -0.678282, -1.0791, 0.0200329, 0.0379918 )
435+
transform = Transform( -0.678334, 0.00700453, -0.73472, 1.39698e-09, 0.999955, 0.00953316, 0.734753, 0.00646667, -0.678303, -1.07909, 0.0201073, 0.0379558 )
429436

430437
[node name="MeshInstance" type="MeshInstance" parent="Camera/targets" index="3"]
431438

@@ -595,7 +602,7 @@ group = null
595602
text = "Next scene"
596603
flat = false
597604
align = 1
598-
script = ExtResource( 8 )
605+
script = ExtResource( 10 )
599606
scene_to_change_to = "res://fps_example.tscn"
600607

601608
[node name="Button_Previous" type="Button" parent="Control" index="2"]
@@ -622,7 +629,7 @@ group = null
622629
text = "Previous scene"
623630
flat = false
624631
align = 1
625-
script = ExtResource( 8 )
632+
script = ExtResource( 10 )
626633
scene_to_change_to = "res://look_at_ik.tscn"
627634

628635

3d/ik/fps_example.tscn

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
[gd_scene load_steps=24 format=2]
1+
[gd_scene load_steps=28 format=2]
22

33
[ext_resource path="res://addons/sade/editor_gizmo_texture.png" type="Texture" id=1]
44
[ext_resource path="res://button_change_scene.gd" type="Script" id=2]
@@ -8,7 +8,11 @@
88
[ext_resource path="res://addons/sade/ik_fabrik.gd" type="Script" id=6]
99
[ext_resource path="res://addons/sade/ik_fabrik.png" type="Texture" id=7]
1010
[ext_resource path="res://weapon_pistol.dae" type="PackedScene" id=8]
11-
[ext_resource path="res://godot_battle_bot.dae" type="PackedScene" id=9]
11+
[ext_resource path="res://gun_color.tres" type="Material" id=9]
12+
[ext_resource path="res://gun_emission.tres" type="Material" id=10]
13+
[ext_resource path="res://godot_battle_bot.dae" type="PackedScene" id=11]
14+
[ext_resource path="res://battle_bot_color.tres" type="Material" id=12]
15+
[ext_resource path="res://battle_bot_emission.tres" type="Material" id=13]
1216

1317
[sub_resource type="PlaneMesh" id=1]
1418

@@ -1586,13 +1590,23 @@ transform = Transform( 0.999391, 0, -0.0348995, 0, 1, 0, 0.0348995, 0, 0.999391,
15861590
[node name="Pistol_textured" parent="KinematicBody/CameraHolder/Weapon/Pistol" index="0"]
15871591

15881592
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0 )
1589-
_sections_unfolded = [ "Transform" ]
1593+
material/0 = ExtResource( 9 )
1594+
material/1 = ExtResource( 10 )
1595+
_sections_unfolded = [ "Transform", "material" ]
15901596

15911597
[node name="Pistol_end" type="Spatial" parent="KinematicBody/CameraHolder/Weapon/Pistol" index="1"]
15921598

15931599
transform = Transform( 1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0161836, 0.315914, 1.41329 )
15941600

1595-
[node name="BattleBot" parent="KinematicBody" index="2" instance=ExtResource( 9 )]
1601+
[node name="BattleBot" parent="KinematicBody" index="2" instance=ExtResource( 11 )]
1602+
1603+
editor/display_folded = true
1604+
1605+
[node name="godot_battle_bot" parent="KinematicBody/BattleBot/Armature/Skeleton" index="0"]
1606+
1607+
material/0 = ExtResource( 12 )
1608+
material/1 = ExtResource( 13 )
1609+
_sections_unfolded = [ "material" ]
15961610

15971611

15981612
[editable path="KinematicBody/CameraHolder/Weapon/Pistol"]

3d/ik/godot_battle_bot.dae.import

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ source_file="res://godot_battle_bot.dae"
1010
source_md5="6921b921d8668c6bb39ab8c5745b70fa"
1111

1212
dest_files=[ "res://.import/godot_battle_bot.dae-eca9fb346b160636fd03ddf258af136e.scn" ]
13-
dest_md5="d92ca022336b0f6d352865a05d12af5a"
13+
dest_md5="6b801deb70bc8b910f2dacf8ff26eb26"
1414

1515
[params]
1616

@@ -19,8 +19,8 @@ nodes/root_name="Scene Root"
1919
nodes/root_scale=1.0
2020
nodes/custom_script=""
2121
nodes/storage=0
22-
materials/location=1
23-
materials/storage=1
22+
materials/location=0
23+
materials/storage=0
2424
materials/keep_on_reimport=true
2525
meshes/compress=true
2626
meshes/ensure_tangents=true

3d/ik/gun_color.material

-855 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)