new shelf model

This commit is contained in:
Nikolai Fesenko
2025-08-16 01:30:20 +02:00
parent f323ae8d3d
commit 29e78166eb
20 changed files with 10665 additions and 2 deletions

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

View File

@@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://b2yk538hfbx2x"
path="res://.godot/imported/fuse_color.png-5cfc4962d3dd479ccd7198fc3088f005.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://Blends/Battery/textures/fuse_color.png"
dest_files=["res://.godot/imported/fuse_color.png-5cfc4962d3dd479ccd7198fc3088f005.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=false
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=1

BIN
Blends/Shelf/Cube.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 55 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://t6fa7ted5yib"
path.s3tc="res://.godot/imported/Cube.png-ba8096be382bf320b7c7f4a063a9c7e1.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://Blends/Shelf/Cube.png"
dest_files=["res://.godot/imported/Cube.png-ba8096be382bf320b7c7f4a063a9c7e1.s3tc.ctex"]
[params]
compress/mode=2
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

BIN
Blends/Shelf/Shelf.blend Normal file

Binary file not shown.

View File

@@ -0,0 +1,53 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://bv6cfp34ma2ky"
path="res://.godot/imported/Shelf.blend-45651f4376512c2bff5b748a91edae46.scn"
[deps]
source_file="res://Blends/Shelf/Shelf.blend"
dest_files=["res://.godot/imported/Shelf.blend-45651f4376512c2bff5b748a91edae46.scn"]
[params]
nodes/root_type=""
nodes/root_name=""
nodes/apply_root_scale=true
nodes/root_scale=1.0
nodes/import_as_skeleton_bones=false
nodes/use_node_type_suffixes=true
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
animation/import_rest_as_RESET=false
import_script/path=""
_subresources={}
blender/nodes/visible=0
blender/nodes/active_collection_only=false
blender/nodes/punctual_lights=true
blender/nodes/cameras=true
blender/nodes/custom_properties=true
blender/nodes/modifiers=1
blender/meshes/colors=false
blender/meshes/uvs=true
blender/meshes/normals=true
blender/meshes/export_geometry_nodes_instances=false
blender/meshes/tangents=true
blender/meshes/skins=2
blender/meshes/export_bones_deforming_mesh_only=false
blender/materials/unpack_enabled=true
blender/materials/export_materials=1
blender/animation/limit_playback=true
blender/animation/always_sample=true
blender/animation/group_tracks=true

BIN
Blends/Shelf/Shelf.blend1 Normal file

Binary file not shown.

12
Blends/Shelf/Shelf.mtl Normal file
View File

@@ -0,0 +1,12 @@
# Blender 4.5.1 LTS MTL File: 'Shelf.blend'
# www.blender.org
newmtl Material
Ns 250.000000
Ka 1.000000 1.000000 1.000000
Kd 0.139504 0.139504 0.139504
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.450000
d 1.000000
illum 3

10382
Blends/Shelf/Shelf.obj Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,25 @@
[remap]
importer="wavefront_obj"
importer_version=1
type="Mesh"
uid="uid://k2k1ppv3ycsv"
path="res://.godot/imported/Shelf.obj-2a94826746eead2b49042f9362c027e5.mesh"
[deps]
files=["res://.godot/imported/Shelf.obj-2a94826746eead2b49042f9362c027e5.mesh"]
source_file="res://Blends/Shelf/Shelf.obj"
dest_files=["res://.godot/imported/Shelf.obj-2a94826746eead2b49042f9362c027e5.mesh", "res://.godot/imported/Shelf.obj-2a94826746eead2b49042f9362c027e5.mesh"]
[params]
generate_tangents=true
generate_lods=true
generate_shadow_mesh=true
generate_lightmap_uv2=false
generate_lightmap_uv2_texel_size=0.2
scale_mesh=Vector3(1, 1, 1)
offset_mesh=Vector3(0, 0, 0)
force_disable_mesh_compression=false

BIN
Blends/Shelf/color.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://5gmmgg4cmefr"
path.s3tc="res://.godot/imported/color.png-921ffeb3c7ea977c224765fc77072c06.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://Blends/Shelf/color.png"
dest_files=["res://.godot/imported/color.png-921ffeb3c7ea977c224765fc77072c06.s3tc.ctex"]
[params]
compress/mode=2
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

BIN
Blends/Shelf/normal.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.0 MiB

View File

@@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://q0duenho1u2x"
path.s3tc="res://.godot/imported/normal.png-b77f6c8f41bc6ef61e6f8d3314e1113d.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://Blends/Shelf/normal.png"
dest_files=["res://.godot/imported/normal.png-b77f6c8f41bc6ef61e6f8d3314e1113d.s3tc.ctex"]
[params]
compress/mode=2
compress/high_quality=false
compress/lossy_quality=0.7
compress/hdr_compression=1
compress/normal_map=1
compress/channel_pack=0
mipmaps/generate=true
mipmaps/limit=-1
roughness/mode=1
roughness/src_normal="res://Blends/Shelf/normal.png"
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

28
Scenes/Prefabs/Shelf.tscn Normal file
View File

@@ -0,0 +1,28 @@
[gd_scene load_steps=8 format=3 uid="uid://c0gypplbklc3i"]
[ext_resource type="ArrayMesh" uid="uid://k2k1ppv3ycsv" path="res://Blends/Shelf/Shelf.obj" id="1_usf1u"]
[ext_resource type="Script" uid="uid://c61rr6to3q566" path="res://Scripts/build_object.gd" id="1_ya6sq"]
[ext_resource type="Shader" uid="uid://bfv6ckihralab" path="res://Shaders/build_transparent.gdshader" id="2_jbe2f"]
[ext_resource type="Texture2D" uid="uid://5gmmgg4cmefr" path="res://Blends/Shelf/color.png" id="2_x70sl"]
[ext_resource type="Texture2D" uid="uid://q0duenho1u2x" path="res://Blends/Shelf/normal.png" id="3_ya6sq"]
[sub_resource type="ShaderMaterial" id="ShaderMaterial_4318v"]
render_priority = 0
shader = ExtResource("2_jbe2f")
shader_parameter/color = Vector3(0, 0, 0)
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jbe2f"]
albedo_texture = ExtResource("2_x70sl")
normal_enabled = true
normal_scale = -1.88
normal_texture = ExtResource("3_ya6sq")
[node name="Shelf" type="Node3D" node_paths=PackedStringArray("meshInstance")]
script = ExtResource("1_ya6sq")
meshInstance = NodePath("Shelf")
preview_shader = SubResource("ShaderMaterial_4318v")
[node name="Shelf" type="MeshInstance3D" parent="."]
transform = Transform3D(-2.18557e-08, 0, -0.5, 0, 0.5, 0, 0.5, 0, -2.18557e-08, 0, -1.53245, 0)
mesh = ExtResource("1_usf1u")
surface_material_override/0 = SubResource("StandardMaterial3D_jbe2f")

View File

@@ -76,6 +76,14 @@ text = "Battery"
script = ExtResource("1_yp16r")
id = 2
[node name="ButtonCreatePot3" type="Button" parent="Panel2/HBoxContainer"]
custom_minimum_size = Vector2(100, 0)
layout_mode = 2
text = "Shelf"
script = ExtResource("1_yp16r")
id = 3
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreateBed" to="Panel2/HBoxContainer/ButtonCreateBed" method="_on_pressed"]
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreatePot" to="Panel2/HBoxContainer/ButtonCreatePot" method="_on_pressed"]
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreatePot2" to="Panel2/HBoxContainer/ButtonCreatePot2" method="_on_pressed"]
[connection signal="pressed" from="Panel2/HBoxContainer/ButtonCreatePot3" to="Panel2/HBoxContainer/ButtonCreatePot3" method="_on_pressed"]

View File

@@ -1,4 +1,4 @@
[gd_scene load_steps=16 format=3 uid="uid://bj7y7q2qkpnci"]
[gd_scene load_steps=20 format=3 uid="uid://bj7y7q2qkpnci"]
[ext_resource type="Shader" uid="uid://c5e2qqpg6h4lw" path="res://Shaders/road.gdshader" id="2_6bp64"]
[ext_resource type="ArrayMesh" uid="uid://622ethh2pdfa" path="res://Blends/road/road.obj" id="4_jjvhh"]
@@ -7,6 +7,9 @@
[ext_resource type="PackedScene" uid="uid://dim2geqhn6d35" path="res://Scenes/Prefabs/cart.tscn" id="6_21xkr"]
[ext_resource type="PackedScene" uid="uid://dy03tqug33fep" path="res://Blends/ground.blend" id="6_344ge"]
[ext_resource type="Script" uid="uid://drrp1k2q71hq2" path="res://Scripts/camera_3d.gd" id="7_6bp64"]
[ext_resource type="ArrayMesh" uid="uid://k2k1ppv3ycsv" path="res://Blends/Shelf/Shelf.obj" id="8_344ge"]
[ext_resource type="Texture2D" uid="uid://5gmmgg4cmefr" path="res://Blends/Shelf/color.png" id="9_hptm8"]
[ext_resource type="Texture2D" uid="uid://q0duenho1u2x" path="res://Blends/Shelf/normal.png" id="10_d1ilt"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_jjvhh"]
sky_top_color = Color(0.654771, 0.60129, 0.578102, 1)
@@ -47,6 +50,12 @@ size = Vector2(0.5, 0.5)
[sub_resource type="BoxShape3D" id="BoxShape3D_21xkr"]
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_6iyac"]
albedo_texture = ExtResource("9_hptm8")
normal_enabled = true
normal_scale = -1.88
normal_texture = ExtResource("10_d1ilt")
[node name="Main" type="Node3D"]
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
@@ -138,3 +147,8 @@ mouse_filter = 2
[node name="Marker3D" type="Marker3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0, 2.90278, -57.5436)
[node name="Shelf" type="MeshInstance3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -8.99485, 0.659399, -45.3142)
mesh = ExtResource("8_344ge")
surface_material_override/0 = SubResource("StandardMaterial3D_6iyac")

View File

@@ -3,7 +3,7 @@ extends Node
@onready var DoubleBeds = preload("res://Scenes/Prefabs/DoubleBeds.tscn")
@onready var Pot = preload("res://Scenes/Prefabs/Pot.tscn")
@onready var Battery = preload("res://Scenes/Prefabs/Battery.tscn")
@onready var Shelf = preload("res://Scenes/Prefabs/Shelf.tscn")
signal build_object_selected
@@ -26,6 +26,8 @@ func get_preview_object():
selected_object = Pot
2:
selected_object = Battery
3:
selected_object = Shelf
return selected_object