Compare commits
1 Commits
Author | SHA1 | Date | |
---|---|---|---|
78909089ab |
2
NOTES.md
2
NOTES.md
@ -28,4 +28,4 @@ venkovního úhlu. Protože reálně jsem od něj mega daleko, takže portálov
|
|||||||
- **Fejkování světel** (OmniLight) by možná šlo!!! S rendering layerama bys nastavil aby některé světla byly vidět JEN skrz portály a NE tou kamerou co má hráč na sobě.
|
- **Fejkování světel** (OmniLight) by možná šlo!!! S rendering layerama bys nastavil aby některé světla byly vidět JEN skrz portály a NE tou kamerou co má hráč na sobě.
|
||||||
- Tohle platí hlavně u ~~free-standing~~ portálů na které jde koukat z obou stran. *Bylo by divné kdyby byl zezadu portálu ve vzduchu light source jenom proto, že na druhé straně portálu (bůh ví kde) takový source někde je*
|
- Tohle platí hlavně u ~~free-standing~~ portálů na které jde koukat z obou stran. *Bylo by divné kdyby byl zezadu portálu ve vzduchu light source jenom proto, že na druhé straně portálu (bůh ví kde) takový source někde je*
|
||||||
- Free-standing portál neni uplně dobrý příklad, protože by to světlo mělo házet _výseč_ ven. To ničím fajné, to jsme zpátky u raytracingu. Leda by to člověk oblbnul nějakým shadow meshem nebo něco.. hm. Velmi specifické. Ale u těch dveří jako v semaforovém levelu by to fungovalo asi v pohodě, protože kolem futer je stěna.
|
- Free-standing portál neni uplně dobrý příklad, protože by to světlo mělo házet _výseč_ ven. To ničím fajné, to jsme zpátky u raytracingu. Leda by to člověk oblbnul nějakým shadow meshem nebo něco.. hm. Velmi specifické. Ale u těch dveří jako v semaforovém levelu by to fungovalo asi v pohodě, protože kolem futer je stěna.
|
||||||
- Spotlight..?
|
- Spotlight..?
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=12 format=3 uid="uid://27pb62xwsqd8"]
|
[gd_scene load_steps=14 format=3 uid="uid://27pb62xwsqd8"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="1_mmt1i"]
|
[ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="1_mmt1i"]
|
||||||
[ext_resource type="MeshLibrary" uid="uid://bedqgubx1g1uf" path="res://prototypes.tres" id="2_vdsn8"]
|
[ext_resource type="MeshLibrary" uid="uid://bedqgubx1g1uf" path="res://prototypes.tres" id="2_vdsn8"]
|
||||||
@ -25,6 +25,20 @@ glow_enabled = true
|
|||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_cgnft"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_cgnft"]
|
||||||
size = Vector3(2, 2, 0.5)
|
size = Vector3(2, 2, 0.5)
|
||||||
|
|
||||||
|
[sub_resource type="BoxMesh" id="BoxMesh_mmt1i"]
|
||||||
|
|
||||||
|
[sub_resource type="GDScript" id="GDScript_vdsn8"]
|
||||||
|
script/source = "extends VisibleOnScreenNotifier3D
|
||||||
|
|
||||||
|
|
||||||
|
func _on_screen_entered() -> void:
|
||||||
|
print(\"enter\")
|
||||||
|
|
||||||
|
|
||||||
|
func _on_screen_exited() -> void:
|
||||||
|
print(\"exit\")
|
||||||
|
"
|
||||||
|
|
||||||
[node name="level_3rooms" type="Node3D"]
|
[node name="level_3rooms" type="Node3D"]
|
||||||
|
|
||||||
[node name="HUD" parent="." instance=ExtResource("1_mmt1i")]
|
[node name="HUD" parent="." instance=ExtResource("1_mmt1i")]
|
||||||
@ -52,6 +66,7 @@ disable_viewport_distance = 32.0
|
|||||||
fade_out_distance_max = 30.0
|
fade_out_distance_max = 30.0
|
||||||
fade_out_distance_min = 28.0
|
fade_out_distance_min = 28.0
|
||||||
fade_out_color = Color(0, 0, 0, 1)
|
fade_out_color = Color(0, 0, 0, 1)
|
||||||
|
exit_cull_mask = 1048567
|
||||||
exit_portal = NodePath("../Portal_orange")
|
exit_portal = NodePath("../Portal_orange")
|
||||||
|
|
||||||
[node name="Teleport" type="Area3D" parent="Portal_red"]
|
[node name="Teleport" type="Area3D" parent="Portal_red"]
|
||||||
@ -71,6 +86,7 @@ disable_viewport_distance = 32.0
|
|||||||
fade_out_distance_max = 30.0
|
fade_out_distance_max = 30.0
|
||||||
fade_out_distance_min = 28.0
|
fade_out_distance_min = 28.0
|
||||||
fade_out_color = Color(0, 0, 0, 1)
|
fade_out_color = Color(0, 0, 0, 1)
|
||||||
|
exit_cull_mask = 1048567
|
||||||
exit_portal = NodePath("../Portal_red")
|
exit_portal = NodePath("../Portal_red")
|
||||||
|
|
||||||
[node name="Teleport" type="Area3D" parent="Portal_orange"]
|
[node name="Teleport" type="Area3D" parent="Portal_orange"]
|
||||||
@ -104,3 +120,15 @@ omni_range = 4.0
|
|||||||
[node name="PortalEnvironmentAdapter" type="Node" parent="." node_paths=PackedStringArray("base")]
|
[node name="PortalEnvironmentAdapter" type="Node" parent="." node_paths=PackedStringArray("base")]
|
||||||
script = ExtResource("7_2gewm")
|
script = ExtResource("7_2gewm")
|
||||||
base = NodePath("../WorldEnvironment")
|
base = NodePath("../WorldEnvironment")
|
||||||
|
|
||||||
|
[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -4.13581, 2.27608, -5.31256)
|
||||||
|
layers = 8
|
||||||
|
mesh = SubResource("BoxMesh_mmt1i")
|
||||||
|
|
||||||
|
[node name="VisibleOnScreenNotifier3D" type="VisibleOnScreenNotifier3D" parent="MeshInstance3D"]
|
||||||
|
aabb = AABB(-0.5, -0.5, -0.5, 1, 1, 1)
|
||||||
|
script = SubResource("GDScript_vdsn8")
|
||||||
|
|
||||||
|
[connection signal="screen_entered" from="MeshInstance3D/VisibleOnScreenNotifier3D" to="MeshInstance3D/VisibleOnScreenNotifier3D" method="_on_screen_entered"]
|
||||||
|
[connection signal="screen_exited" from="MeshInstance3D/VisibleOnScreenNotifier3D" to="MeshInstance3D/VisibleOnScreenNotifier3D" method="_on_screen_exited"]
|
||||||
|
File diff suppressed because one or more lines are too long
@ -1,4 +1,4 @@
|
|||||||
[gd_scene load_steps=13 format=3 uid="uid://c0uk51mh24sl6"]
|
[gd_scene load_steps=16 format=3 uid="uid://c0uk51mh24sl6"]
|
||||||
|
|
||||||
[ext_resource type="PackedScene" uid="uid://cgdlowfuuorvi" path="res://player.tscn" id="1_wmc81"]
|
[ext_resource type="PackedScene" uid="uid://cgdlowfuuorvi" path="res://player.tscn" id="1_wmc81"]
|
||||||
[ext_resource type="PackedScene" uid="uid://cjd40tsurltut" path="res://addons/platformer-assets/block-grass-large.glb" id="2_6nhbe"]
|
[ext_resource type="PackedScene" uid="uid://cjd40tsurltut" path="res://addons/platformer-assets/block-grass-large.glb" id="2_6nhbe"]
|
||||||
@ -10,9 +10,18 @@
|
|||||||
[ext_resource type="Script" uid="uid://bkv7t4hw21byg" path="res://addons/simple-portal-system/scripts/simple_portal_teleport.gd" id="8_kco3g"]
|
[ext_resource type="Script" uid="uid://bkv7t4hw21byg" path="res://addons/simple-portal-system/scripts/simple_portal_teleport.gd" id="8_kco3g"]
|
||||||
[ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="9_afarl"]
|
[ext_resource type="PackedScene" uid="uid://b5x7fmpwck335" path="res://hud.tscn" id="9_afarl"]
|
||||||
|
|
||||||
|
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_wmc81"]
|
||||||
|
sky_top_color = Color(0.258811, 0.450027, 0.718675, 1)
|
||||||
|
sky_horizon_color = Color(0.547352, 0.669607, 0.794345, 1)
|
||||||
|
ground_bottom_color = Color(0.27, 0.27, 0.27, 1)
|
||||||
|
|
||||||
|
[sub_resource type="Sky" id="Sky_6nhbe"]
|
||||||
|
sky_material = SubResource("ProceduralSkyMaterial_wmc81")
|
||||||
|
|
||||||
[sub_resource type="Environment" id="Environment_7knre"]
|
[sub_resource type="Environment" id="Environment_7knre"]
|
||||||
background_mode = 1
|
background_mode = 2
|
||||||
background_color = Color(0.590126, 0.615058, 0.699408, 1)
|
background_color = Color(0.590126, 0.615058, 0.699408, 1)
|
||||||
|
sky = SubResource("Sky_6nhbe")
|
||||||
glow_enabled = true
|
glow_enabled = true
|
||||||
|
|
||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_1wwjl"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_1wwjl"]
|
||||||
@ -21,6 +30,9 @@ size = Vector3(2, 1, 2)
|
|||||||
[sub_resource type="BoxShape3D" id="BoxShape3D_2wcgd"]
|
[sub_resource type="BoxShape3D" id="BoxShape3D_2wcgd"]
|
||||||
size = Vector3(2, 2.5, 8.79824)
|
size = Vector3(2, 2.5, 8.79824)
|
||||||
|
|
||||||
|
[sub_resource type="BoxShape3D" id="BoxShape3D_wmc81"]
|
||||||
|
size = Vector3(2, 2, 0.5)
|
||||||
|
|
||||||
[node name="Main" type="Node3D"]
|
[node name="Main" type="Node3D"]
|
||||||
|
|
||||||
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="."]
|
||||||
@ -264,7 +276,7 @@ transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -3.44316, 1, 0.59875)
|
|||||||
transform = Transform3D(-0.896199, 0, 3.34466, 0, 3.46265, 0, -3.34466, 0, -0.896199, -3.34096, 1, -5.4095)
|
transform = Transform3D(-0.896199, 0, 3.34466, 0, 3.46265, 0, -3.34466, 0, -0.896199, -3.34096, 1, -5.4095)
|
||||||
|
|
||||||
[node name="P_bottom" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")]
|
[node name="P_bottom" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")]
|
||||||
transform = Transform3D(-20, -1.74846e-06, -3.82137e-15, 0, -8.74228e-07, 1, -1.74846e-06, 20, 4.37114e-08, 0, -15, 0)
|
transform = Transform3D(-20, -1.74846e-06, -3.82137e-15, 0, -8.74228e-07, 1, -1.74846e-06, 20, 4.37114e-08, 0, -4.28944, 0)
|
||||||
layers = 2
|
layers = 2
|
||||||
cast_shadow = 0
|
cast_shadow = 0
|
||||||
mesh = ExtResource("6_21xnk")
|
mesh = ExtResource("6_21xnk")
|
||||||
@ -286,7 +298,7 @@ transform = Transform3D(1, 0, 0, 0, 1, -2.88658e-14, 0, 7.16227e-12, 1, 0, -3.55
|
|||||||
shape = SubResource("BoxShape3D_2wcgd")
|
shape = SubResource("BoxShape3D_2wcgd")
|
||||||
|
|
||||||
[node name="P_top" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")]
|
[node name="P_top" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")]
|
||||||
transform = Transform3D(20, 0, 0, 0, -8.74228e-07, -1.1, 0, 20, -4.80825e-08, 0, 15, 0)
|
transform = Transform3D(20, 0, 0, 0, -8.74228e-07, -1.1, 0, 20, -4.80825e-08, 0, 10.7101, 0)
|
||||||
layers = 2
|
layers = 2
|
||||||
cast_shadow = 0
|
cast_shadow = 0
|
||||||
mesh = ExtResource("6_21xnk")
|
mesh = ExtResource("6_21xnk")
|
||||||
@ -294,10 +306,52 @@ script = ExtResource("7_8mrlp")
|
|||||||
vertical_viewport_resolution = 1080
|
vertical_viewport_resolution = 1080
|
||||||
disable_viewport_distance = 55.0
|
disable_viewport_distance = 55.0
|
||||||
destroy_disabled_viewport = false
|
destroy_disabled_viewport = false
|
||||||
fade_out_distance_max = 50.0
|
fade_out_distance_max = 2000.0
|
||||||
fade_out_distance_min = 40.0
|
fade_out_distance_min = 500.0
|
||||||
fade_out_color = Color(0.590126, 0.615058, 0.699408, 1)
|
fade_out_color = Color(0.590126, 0.615058, 0.699408, 1)
|
||||||
exit_cull_mask = 1048573
|
exit_cull_mask = 1048573
|
||||||
exit_portal = NodePath("../P_bottom")
|
exit_portal = NodePath("../P_bottom")
|
||||||
|
|
||||||
[node name="HUD" parent="." instance=ExtResource("9_afarl")]
|
[node name="HUD" parent="." instance=ExtResource("9_afarl")]
|
||||||
|
|
||||||
|
[node name="Portal_red" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")]
|
||||||
|
transform = Transform3D(-1, 0, 8.74228e-08, 0, 1, 0, -8.74228e-08, 0, -1, 1.7273, 2, 4.21386)
|
||||||
|
cast_shadow = 0
|
||||||
|
mesh = ExtResource("6_21xnk")
|
||||||
|
skeleton = NodePath("")
|
||||||
|
script = ExtResource("7_8mrlp")
|
||||||
|
vertical_viewport_resolution = 1080
|
||||||
|
disable_viewport_distance = 32.0
|
||||||
|
fade_out_distance_max = 30.0
|
||||||
|
fade_out_distance_min = 28.0
|
||||||
|
fade_out_color = Color(0, 0, 0, 1)
|
||||||
|
exit_cull_mask = 1048567
|
||||||
|
exit_portal = NodePath("../Portal_orange")
|
||||||
|
|
||||||
|
[node name="Teleport" type="Area3D" parent="Portal_red"]
|
||||||
|
script = ExtResource("8_kco3g")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Portal_red/Teleport"]
|
||||||
|
transform = Transform3D(1, 0, 4.72511e-13, 0, 1, 0, -4.72511e-13, 0, 1, 0, 0, -0.250244)
|
||||||
|
shape = SubResource("BoxShape3D_wmc81")
|
||||||
|
|
||||||
|
[node name="Portal_orange" type="MeshInstance3D" parent="." node_paths=PackedStringArray("exit_portal")]
|
||||||
|
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 1.22028, 2, -4.15372)
|
||||||
|
cast_shadow = 0
|
||||||
|
mesh = ExtResource("6_21xnk")
|
||||||
|
skeleton = NodePath("")
|
||||||
|
script = ExtResource("7_8mrlp")
|
||||||
|
vertical_viewport_resolution = 1080
|
||||||
|
disable_viewport_distance = 32.0
|
||||||
|
fade_out_distance_max = 30.0
|
||||||
|
fade_out_distance_min = 28.0
|
||||||
|
fade_out_color = Color(0, 0, 0, 1)
|
||||||
|
exit_cull_mask = 1048567
|
||||||
|
exit_portal = NodePath("../Portal_red")
|
||||||
|
|
||||||
|
[node name="Teleport" type="Area3D" parent="Portal_orange"]
|
||||||
|
script = ExtResource("8_kco3g")
|
||||||
|
|
||||||
|
[node name="CollisionShape3D" type="CollisionShape3D" parent="Portal_orange/Teleport"]
|
||||||
|
transform = Transform3D(1, 0, 4.72511e-13, 0, 1, 0, -4.72511e-13, 0, 1, 0, 0, -0.250244)
|
||||||
|
shape = SubResource("BoxShape3D_wmc81")
|
||||||
|
@ -49,3 +49,7 @@ move_back={
|
|||||||
3d_render/layer_2="Portals"
|
3d_render/layer_2="Portals"
|
||||||
3d_render/layer_3="Visible only in portals"
|
3d_render/layer_3="Visible only in portals"
|
||||||
3d_render/layer_4="Visible only in person"
|
3d_render/layer_4="Visible only in person"
|
||||||
|
|
||||||
|
[rendering]
|
||||||
|
|
||||||
|
anti_aliasing/quality/msaa_3d=2
|
||||||
|
Loading…
Reference in New Issue
Block a user