-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5d8121f
commit 9ee79f4
Showing
21 changed files
with
432 additions
and
74 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
[remap] | ||
|
||
importer="scene" | ||
importer_version=1 | ||
type="PackedScene" | ||
uid="uid://ca4jop6a75ijt" | ||
path="res://.godot/imported/Rock1.glb-51229319df652e1ff6363984e49111d9.scn" | ||
|
||
[deps] | ||
|
||
source_file="res://Assets/Models/Rock1.glb" | ||
dest_files=["res://.godot/imported/Rock1.glb-51229319df652e1ff6363984e49111d9.scn"] | ||
|
||
[params] | ||
|
||
nodes/root_type="" | ||
nodes/root_name="" | ||
nodes/apply_root_scale=true | ||
nodes/root_scale=1.0 | ||
meshes/ensure_tangents=true | ||
meshes/generate_lods=true | ||
meshes/create_shadow_meshes=true | ||
meshes/light_baking=1 | ||
meshes/lightmap_texel_size=0.2 | ||
meshes/force_disable_compression=false | ||
skins/use_named_skins=true | ||
animation/import=true | ||
animation/fps=30 | ||
animation/trimming=false | ||
animation/remove_immutable_tracks=true | ||
import_script/path="" | ||
_subresources={ | ||
"meshes": { | ||
"Rock1_Cube": { | ||
"generate/lightmap_uv": 0, | ||
"generate/lods": 0, | ||
"generate/shadow_meshes": 0, | ||
"lods/normal_merge_angle": 60.0, | ||
"lods/normal_split_angle": 25.0, | ||
"save_to_file/enabled": true, | ||
"save_to_file/make_streamable": "", | ||
"save_to_file/path": "res://Assets/Models/Rock1.res" | ||
} | ||
} | ||
} | ||
gltf/naming_version=1 | ||
gltf/embedded_image_handling=1 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[remap] | ||
|
||
importer="scene" | ||
importer_version=1 | ||
type="PackedScene" | ||
uid="uid://by5gdtlcl17vc" | ||
path="res://.godot/imported/Tree2FIXEDagain.glb-8d6053b40e9f8b8faa5948df16f936c7.scn" | ||
|
||
[deps] | ||
|
||
source_file="res://Assets/Models/Tree2FIXEDagain.glb" | ||
dest_files=["res://.godot/imported/Tree2FIXEDagain.glb-8d6053b40e9f8b8faa5948df16f936c7.scn"] | ||
|
||
[params] | ||
|
||
nodes/root_type="" | ||
nodes/root_name="" | ||
nodes/apply_root_scale=true | ||
nodes/root_scale=1.0 | ||
meshes/ensure_tangents=true | ||
meshes/generate_lods=true | ||
meshes/create_shadow_meshes=true | ||
meshes/light_baking=1 | ||
meshes/lightmap_texel_size=0.2 | ||
meshes/force_disable_compression=false | ||
skins/use_named_skins=true | ||
animation/import=true | ||
animation/fps=30 | ||
animation/trimming=false | ||
animation/remove_immutable_tracks=true | ||
import_script/path="" | ||
_subresources={} | ||
gltf/naming_version=1 | ||
gltf/embedded_image_handling=1 |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
37 changes: 37 additions & 0 deletions
37
Assets/Models/Tree2FIXEDagain_Leaves Texture - Imgur.png.import
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[remap] | ||
|
||
importer="texture" | ||
type="CompressedTexture2D" | ||
uid="uid://ur5eeqet51x3" | ||
path="res://.godot/imported/Tree2FIXEDagain_Leaves Texture - Imgur.png-ff59857ee11a1604f2096dcd089c1bcc.ctex" | ||
metadata={ | ||
"vram_texture": false | ||
} | ||
generator_parameters={ | ||
"md5": "d5f31c5134a62f3c31ca3f0e20254606" | ||
} | ||
|
||
[deps] | ||
|
||
source_file="res://Assets/Models/Tree2FIXEDagain_Leaves Texture - Imgur.png" | ||
dest_files=["res://.godot/imported/Tree2FIXEDagain_Leaves Texture - Imgur.png-ff59857ee11a1604f2096dcd089c1bcc.ctex"] | ||
|
||
[params] | ||
|
||
compress/mode=0 | ||
compress/high_quality=false | ||
compress/lossy_quality=0.7 | ||
compress/hdr_compression=1 | ||
compress/normal_map=0 | ||
compress/channel_pack=0 | ||
mipmaps/generate=true | ||
mipmaps/limit=-1 | ||
roughness/mode=0 | ||
roughness/src_normal="" | ||
process/fix_alpha_border=true | ||
process/premult_alpha=false | ||
process/normal_map_invert_y=false | ||
process/hdr_as_srgb=false | ||
process/hdr_clamp_exposure=false | ||
process/size_limit=0 | ||
detect_3d/compress_to=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
<a href="https://lovepik.com/images/png-texture.html">Texture Png vectors by Lovepik.com</a> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
extends Node | ||
|
||
const SPAWN_RANGE: float = 200.0 | ||
|
||
var rock_res: PackedScene = preload("res://Scenes/rock.tscn") | ||
var height_map: Texture2D = preload("res://heightmap1.png") | ||
|
||
func _ready() -> void: | ||
randomize() | ||
|
||
var image := height_map.get_image() | ||
|
||
for i in range(600): | ||
var rock: Node3D = rock_res.instantiate() | ||
rock.position = Vector3(randf_range(-SPAWN_RANGE, SPAWN_RANGE), 0, randf_range(-SPAWN_RANGE, SPAWN_RANGE)) | ||
|
||
rock.rotation.y = randf() * TAU | ||
|
||
var height = image.get_pixelv(image.get_size() / 2 + Vector2i(rock.position.x, rock.position.z)).r | ||
rock.position.y = height * 5.0 - randf_range(0.5, 1.0) | ||
|
||
var found_near: bool = false | ||
|
||
for other in get_children(): | ||
if other.position.distance_to(rock.position) < 1.5: | ||
rock.queue_free() | ||
found_near = true | ||
break | ||
|
||
if !found_near: | ||
add_child(rock) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
[gd_scene load_steps=6 format=3 uid="uid://brq1rqhw4t21k"] | ||
[gd_scene load_steps=5 format=3 uid="uid://brq1rqhw4t21k"] | ||
|
||
[ext_resource type="Script" path="res://Scripts/Rock.gd" id="1_s6iwx"] | ||
[ext_resource type="ArrayMesh" uid="uid://j78p2ctiwi7b" path="res://Assets/Models/Rock1.res" id="2_2onsw"] | ||
|
||
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_h3j46"] | ||
albedo_color = Color(0.47788, 0.47788, 0.47788, 1) | ||
|
||
[sub_resource type="BoxMesh" id="BoxMesh_2cujy"] | ||
|
||
[sub_resource type="BoxShape3D" id="BoxShape3D_s3gtb"] | ||
|
||
[sub_resource type="BoxShape3D" id="BoxShape3D_51hc3"] | ||
size = Vector3(1.05438, 1.01855, 1.08792) | ||
[sub_resource type="ConvexPolygonShape3D" id="ConvexPolygonShape3D_d5pkx"] | ||
points = PackedVector3Array(-0.124503, -1.46944, -0.0255355, 0.0176804, 0.238102, 1.55121, 0.0645334, 0.187035, 1.52766, 0.162018, 1.39218, -0.892484, -1.35413, -0.000949979, 0.210591, 1.34143, -0.662691, -0.308849, -0.545966, -0.188577, -1.29219, -0.0295933, 1.46734, 0.77919, -0.362688, -0.951795, 1.3049, 1.00704, 0.0459846, 0.917427, 0.966407, 0.900018, -0.594964, -1.06952, 0.991581, 0.210516, -1.31583, -0.762701, -0.0262956, 1.158, -1.18844, -0.168538, 0.301227, -0.898793, -0.970959, 0.630863, 0.753393, -1.01568, -0.637897, 1.02857, -0.726068, -0.0296861, 1.04503, 1.30503, -1.07556, -0.380918, -0.73915, 0.351002, -1.52333, 0.30643, 1.00756, -0.236631, 0.917844, -0.317088, 0.572997, -1.31913, 0.627731, 0.609142, 1.14888, -0.832774, 1.22724, 0.494078, -0.872862, -0.703694, 0.912695, -0.642035, -1.31997, 0.257261, 1.35857, -0.336028, -0.457994, 0.307154, 1.54081, -0.365314, 0.207178, 1.41942, 0.637121, 1.29298, -0.803656, 0.210444, 0.302305, -0.997034, -0.927125, -0.8736, -1.12618, -0.0241049) | ||
|
||
[node name="Rock" type="StaticBody3D"] | ||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 2, 0.831861, 8.36222) | ||
script = ExtResource("1_s6iwx") | ||
|
||
[node name="MeshInstance3D" type="MeshInstance3D" parent="."] | ||
material_override = SubResource("StandardMaterial3D_h3j46") | ||
mesh = SubResource("BoxMesh_2cujy") | ||
mesh = ExtResource("2_2onsw") | ||
skeleton = NodePath("../../..") | ||
|
||
[node name="CollisionShape3D" type="CollisionShape3D" parent="."] | ||
shape = SubResource("BoxShape3D_s3gtb") | ||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="."] | ||
shape = SubResource("ConvexPolygonShape3D_d5pkx") | ||
|
||
[node name="DamageZone" type="Area3D" parent="."] | ||
|
||
[node name="CollisionShape3D" type="CollisionShape3D" parent="DamageZone"] | ||
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.00344801, 0.00927734, 0.00401402) | ||
shape = SubResource("BoxShape3D_51hc3") | ||
[node name="CollisionShape3D2" type="CollisionShape3D" parent="DamageZone"] | ||
transform = Transform3D(1.1, 0, 0, 0, 1.1, 0, 0, 0, 1.1, 0, 0, 0) | ||
shape = SubResource("ConvexPolygonShape3D_d5pkx") |
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.