Skip to content

Commit

Permalink
fire and pantai
Browse files Browse the repository at this point in the history
  • Loading branch information
imamsmdraa committed Aug 27, 2024
1 parent 8d56ffe commit 3739339
Show file tree
Hide file tree
Showing 53 changed files with 1,252 additions and 209 deletions.
Binary file modified asset/models/decorations/asset_Jalan_Batu_1.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Jalan_Batu_2.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Jalan_Batu_3.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Jalan_Batu_4.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Jalan_Batu_5.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pagar_1.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pagar_2.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pinus_1.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pinus_2.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pinus_3.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pinus_4.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pinus_5.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pohon_1.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pohon_2.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Pohon_3.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumah_1.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumah_2.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumah_3.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumah_4.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumah_5.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumput_1.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumput_2.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumput_3.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Rumput_4.res
Binary file not shown.
Binary file modified asset/models/decorations/asset_Sumur.res
Binary file not shown.
Binary file modified asset/models/maps/TsunamiMap.res
Binary file not shown.
20 changes: 20 additions & 0 deletions cobaspawn.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
[gd_scene load_steps=4 format=3 uid="uid://3v8e7eibusbf"]

[ext_resource type="Script" path="res://Scripts/coba.gd" id="1_axcba"]

[sub_resource type="BoxMesh" id="BoxMesh_bmx2b"]

[sub_resource type="CapsuleMesh" id="CapsuleMesh_gg5ic"]

[node name="Node3D" type="Node3D"]

[node name="MeshInstance3D" type="MeshInstance3D" parent="."]
transform = Transform3D(19.3778, 0, 0, 0, 1, 0, 0, 0, 23.1683, 0, 0, 0)
mesh = SubResource("BoxMesh_bmx2b")

[node name="SpawnPartikelonFire" type="Node3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.04189, 0)
script = ExtResource("1_axcba")

[node name="MeshInstance3D" type="MeshInstance3D" parent="SpawnPartikelonFire"]
mesh = SubResource("CapsuleMesh_gg5ic")
12 changes: 12 additions & 0 deletions nyobaspawn.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[gd_scene load_steps=3 format=3 uid="uid://c45gxeh03ac2b"]

[sub_resource type="BoxMesh" id="BoxMesh_ftemr"]

[sub_resource type="BoxShape3D" id="BoxShape3D_llie3"]

[node name="MeshInstance3D" type="MeshInstance3D"]
transform = Transform3D(38.2099, 0, 0, 0, 1, 0, 0, 0, 23.6784, 0, 0, 0)
mesh = SubResource("BoxMesh_ftemr")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
shape = SubResource("BoxShape3D_llie3")
10 changes: 10 additions & 0 deletions project.godot
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ jump={
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":32,"key_label":0,"unicode":32,"echo":false,"script":null)
]
}
spawn_flame={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":71,"key_label":0,"unicode":103,"echo":false,"script":null)
]
}
Sprint={
"deadzone": 0.5,
"events": [Object(InputEventKey,"resource_local_to_scene":false,"resource_name":"","device":-1,"window_id":0,"alt_pressed":false,"shift_pressed":false,"ctrl_pressed":false,"meta_pressed":false,"pressed":false,"keycode":0,"physical_keycode":4194325,"key_label":0,"unicode":0,"echo":false,"script":null)
]
}

[rendering]

Expand Down
110 changes: 109 additions & 1 deletion scenes/Bukit.tscn
Original file line number Diff line number Diff line change
@@ -1,8 +1,116 @@
[gd_scene load_steps=2 format=3 uid="uid://chnbt23f826lj"]
[gd_scene load_steps=23 format=3 uid="uid://chnbt23f826lj"]

[ext_resource type="PackedScene" uid="uid://cfda6q4u17mpq" path="res://asset/models/maps/Bukit.glb" id="1_dh35g"]
[ext_resource type="PackedScene" uid="uid://xhsrdb700uow" path="res://scenes/Forest/river.tscn" id="2_aegqr"]
[ext_resource type="PackedScene" uid="uid://cb1iwxp77nqof" path="res://scenes/characters.tscn" id="2_j0y0q"]
[ext_resource type="Texture2D" uid="uid://upx1xvrix683" path="res://scenes/Forest/Material/farm_field_puresky_2k.hdr" id="4_hkx8d"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/scatter.gd" id="5_8lf41"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/stack/modifier_stack.gd" id="6_j5ec3"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/modifiers/create_inside_random.gd" id="7_pj3oc"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/modifiers/randomize_transforms.gd" id="8_32m2u"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/modifiers/relax.gd" id="9_bc4ri"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/modifiers/project_on_geometry.gd" id="10_c4abl"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/scatter_item.gd" id="11_x5crm"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/scatter_shape.gd" id="12_uw8g4"]
[ext_resource type="Script" path="res://addons/proton_scatter/src/shapes/box_shape.gd" id="13_4ogwv"]

[sub_resource type="PanoramaSkyMaterial" id="PanoramaSkyMaterial_nsq7r"]
panorama = ExtResource("4_hkx8d")

[sub_resource type="Sky" id="Sky_5tmio"]
sky_material = SubResource("PanoramaSkyMaterial_nsq7r")

[sub_resource type="Environment" id="Environment_i1goh"]
background_mode = 2
background_energy_multiplier = 0.4
sky = SubResource("Sky_5tmio")
ambient_light_sky_contribution = 0.5
ambient_light_energy = 0.3

[sub_resource type="Resource" id="Resource_ps2gt"]
script = ExtResource("7_pj3oc")
amount = 75
enabled = true
override_global_seed = false
custom_seed = 0
restrict_height = true
reference_frame = 1

[sub_resource type="Resource" id="Resource_ll5b7"]
script = ExtResource("8_32m2u")
position = Vector3(0.15, 0.15, 0.15)
rotation = Vector3(20, 360, 20)
scale = Vector3(0.1, 0.1, 0.1)
enabled = true
override_global_seed = false
custom_seed = 0
restrict_height = false
reference_frame = 2

[sub_resource type="Resource" id="Resource_gfoi1"]
script = ExtResource("9_bc4ri")
iterations = 3
offset_step = 0.2
consecutive_step_multiplier = 0.75
use_computeshader = true
enabled = true
override_global_seed = false
custom_seed = 0
restrict_height = true
reference_frame = 0

[sub_resource type="Resource" id="Resource_2n0o2"]
script = ExtResource("10_c4abl")
ray_direction = Vector3(0, -1, 0)
ray_length = 5.0
ray_offset = 5.0
remove_points_on_miss = false
align_with_collision_normal = false
max_slope = 90.0
collision_mask = 1
exclude_mask = 0
enabled = true
override_global_seed = false
custom_seed = 0
restrict_height = false
reference_frame = 0

[sub_resource type="Resource" id="Resource_5kd2f"]
script = ExtResource("6_j5ec3")
stack = Array[Resource("res://addons/proton_scatter/src/modifiers/base_modifier.gd")]([SubResource("Resource_ps2gt"), SubResource("Resource_ll5b7"), SubResource("Resource_gfoi1"), SubResource("Resource_2n0o2")])

[sub_resource type="Resource" id="Resource_7kssd"]
script = ExtResource("13_4ogwv")
size = Vector3(153.761, 10, 50)

[node name="Bukit" instance=ExtResource("1_dh35g")]

[node name="river" parent="." index="0" instance=ExtResource("2_aegqr")]
transform = Transform3D(150, 0, 0, 0, 1, 0, 0, 0, 150, -5.72327, 1.52873, 26.6085)

[node name="CollisionShape3D" parent="Bukit/Bukit" index="0"]
transform = Transform3D(1, 0, 0, 0, 1, -2.84217e-14, 0, 2.84217e-14, 1, 0, 0, 0)
visible = false

[node name="Characters" parent="." index="2" instance=ExtResource("2_j0y0q")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -5.72327, 14.603, 26.6085)

[node name="WorldEnvironment2" type="WorldEnvironment" parent="." index="3"]
environment = SubResource("Environment_i1goh")

[node name="ProtonScatter" type="Node3D" parent="." index="4"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -41.3929, 22.2534, 16.5762)
script = ExtResource("5_8lf41")
modifier_stack = SubResource("Resource_5kd2f")
Performance/use_chunks = true
Performance/chunk_dimensions = Vector3(15, 15, 15)

[node name="ScatterItem" type="Node3D" parent="ProtonScatter" index="0"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0)
script = ExtResource("11_x5crm")
path = "res://addons/proton_scatter/demos/assets/pine_tree.tscn"

[node name="ScatterShape" type="Node3D" parent="ProtonScatter" index="1"]
transform = Transform3D(1, 0, -2.98023e-08, 2.30684e-08, 0.633123, 0.774049, 1.88685e-08, -0.774049, 0.633123, 0, -10.653, 24.3309)
script = ExtResource("12_uw8g4")
shape = SubResource("Resource_7kssd")
156 changes: 156 additions & 0 deletions scenes/Forest/Flametscn.tscn
Original file line number Diff line number Diff line change
@@ -0,0 +1,156 @@
[gd_scene load_steps=22 format=3 uid="uid://b4v3mde23oqfm"]

[ext_resource type="Shader" uid="uid://bridpgkt844f8" path="res://scenes/Forest/Shader/fireShader.tres" id="1_27vih"]
[ext_resource type="Script" path="res://Scripts/Flametscn.gd" id="1_sn0s3"]
[ext_resource type="Texture2D" uid="uid://baa3l1xiuxpva" path="res://scenes/Forest/Material/firePartikel2.png" id="2_hrm3o"]
[ext_resource type="Texture2D" uid="uid://dtqf6onf3yj5n" path="res://scenes/Forest/Material/20240826_193718.png" id="2_mvmp0"]
[ext_resource type="Shader" uid="uid://b6kdppa3vcm41" path="res://scenes/Forest/Shader/fireShader2.tres" id="4_qm6ec"]
[ext_resource type="Shader" uid="uid://kcbjhjtn4xyb" path="res://scenes/Forest/Shader/fireParticel.tres" id="5_xwqh5"]
[ext_resource type="Texture2D" uid="uid://e3yamwbg3sx0" path="res://scenes/Forest/Material/muzzle_02.png" id="6_d2lwl"]
[ext_resource type="Texture2D" uid="uid://q4715ffk8gch" path="res://scenes/Forest/Material/light_03.png" id="7_fbuce"]

[sub_resource type="GDScript" id="GDScript_w6obq"]
script/source = "extends MeshInstance3D

# Called when the node enters the scene tree for the first time.
func _ready():
pass # Replace with function body.

#
## Called every frame. 'delta' is the elapsed time since the previous frame.
#func _process(delta):
#pass
func spawn():
var spawned_scene = load(\"res://cobaspawn.tscn\")
var spawned_scene_copy = spawned_scene.instance()
spawned_scene_copy.translation.x = randi() % 5
add_child(spawned_scene_copy)


func _process(delta):
pass
if Input.is_action_just_pressed(\"spawn_flame\"):
spawn()
"
[sub_resource type="ShaderMaterial" id="ShaderMaterial_21mdp"]
render_priority = 0
shader = ExtResource("1_27vih")
shader_parameter/Dissolvetilling = Vector2(0.575, 0.425)
shader_parameter/DissolveSpeed = Vector2(0.01, 0.15)
shader_parameter/DissolveAmmount = 0.703
shader_parameter/Texture2DParameter = ExtResource("2_mvmp0")
shader_parameter/DissolveTexture = ExtResource("2_hrm3o")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_fjhy3"]
gravity = Vector3(0, 0, 0)
scale_min = 100.0
scale_max = 125.0
color = Color(64.247, 1.5, 0, 1)
[sub_resource type="QuadMesh" id="QuadMesh_outog"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_ty245"]
render_priority = 0
shader = ExtResource("4_qm6ec")
shader_parameter/Dissolvetilling = Vector2(1, 1)
shader_parameter/DissolveSpeed = Vector2(0, 0)
shader_parameter/DissolveAmmount = 0.0
shader_parameter/Texture2DParameter = ExtResource("6_d2lwl")
shader_parameter/DissolveTexture = ExtResource("2_hrm3o")
[sub_resource type="Curve" id="Curve_rjnxv"]
_data = [Vector2(0.00773196, 0), 0.0, 0.0, 0, 0, Vector2(0.156504, 1), 0.0, 0.0, 0, 0, Vector2(1, 0), -1.18148, 0.0, 0, 0]
point_count = 3
[sub_resource type="CurveTexture" id="CurveTexture_qb35q"]
curve = SubResource("Curve_rjnxv")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_b4sjh"]
emission_shape = 1
emission_sphere_radius = 0.2
angle_min = 360.0
angle_max = 360.0
gravity = Vector3(0, 5, 0)
damping_min = 0.5
damping_max = 1.0
scale_min = 100.0
scale_max = 125.0
scale_curve = SubResource("CurveTexture_qb35q")
color = Color(64.247, 1.5, 0, 1)
[sub_resource type="QuadMesh" id="QuadMesh_4x8an"]
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_hhqma"]
resource_local_to_scene = true
emission_shape = 1
emission_sphere_radius = 0.2
angle_min = 360.0
angle_max = 360.0
gravity = Vector3(0, 12, 0)
damping_min = 0.5
damping_max = 1.0
scale_min = 100.0
scale_max = 200.0
scale_curve = SubResource("CurveTexture_qb35q")
color = Color(0.560955, 0.560955, 0.560955, 1)
[sub_resource type="ShaderMaterial" id="ShaderMaterial_v5f63"]
render_priority = 0
shader = ExtResource("5_xwqh5")
shader_parameter/Texture2DParameter = ExtResource("7_fbuce")
[sub_resource type="ParticleProcessMaterial" id="ParticleProcessMaterial_k4c6l"]
emission_shape = 1
emission_sphere_radius = 0.6
gravity = Vector3(0, 5, 0)
scale_min = 10.0
scale_max = 12.0
color = Color(64.247, 1.5, 0, 1)
turbulence_enabled = true
turbulence_noise_strength = 2.0
turbulence_noise_scale = 5.0
[sub_resource type="QuadMesh" id="QuadMesh_vidp8"]
[node name="Node3D" type="Node3D"]
script = ExtResource("1_sn0s3")
[node name="MeshInstance3D2" type="MeshInstance3D" parent="."]
script = SubResource("GDScript_w6obq")
[node name="GPUParticles3D" type="GPUParticles3D" parent="MeshInstance3D2"]
[node name="Flame" type="GPUParticles3D" parent="MeshInstance3D2/GPUParticles3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.59834, 0)
material_override = SubResource("ShaderMaterial_21mdp")
amount = 1
lifetime = 5.0
process_material = SubResource("ParticleProcessMaterial_fjhy3")
draw_pass_1 = SubResource("QuadMesh_outog")
[node name="Flames1" type="GPUParticles3D" parent="MeshInstance3D2/GPUParticles3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0780703, 5.57316, 0)
material_override = SubResource("ShaderMaterial_ty245")
amount = 20
lifetime = 1.2
process_material = SubResource("ParticleProcessMaterial_b4sjh")
draw_pass_1 = SubResource("QuadMesh_4x8an")
[node name="Smoke" type="GPUParticles3D" parent="MeshInstance3D2/GPUParticles3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -0.0780703, 5.57316, 0)
sorting_offset = -1.0
material_override = SubResource("ShaderMaterial_ty245")
amount = 20
lifetime = 1.2
process_material = SubResource("ParticleProcessMaterial_hhqma")
draw_pass_1 = SubResource("QuadMesh_4x8an")
[node name="Particel" type="GPUParticles3D" parent="MeshInstance3D2/GPUParticles3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 5.53042, 0)
sorting_offset = 1.0
material_override = SubResource("ShaderMaterial_v5f63")
amount = 50
lifetime = 2.0
process_material = SubResource("ParticleProcessMaterial_k4c6l")
draw_pass_1 = SubResource("QuadMesh_vidp8")
Loading

0 comments on commit 3739339

Please sign in to comment.