Vending Machine

This commit is contained in:
Marco 2025-06-18 09:00:10 +02:00
commit 5ce2ffb48e
14 changed files with 663 additions and 397 deletions

View file

@ -0,0 +1 @@
{"meta":{"format_version":"4.10","model_format":"free","box_uv":false},"name":"VendingMachine","model_identifier":"","visible_box":[1,1,0],"variable_placeholders":"","variable_placeholder_buttons":[],"timeline_setups":[],"unhandled_root_fields":{},"reexport":{"codec":"gltf","codec_options":{"encoding":"ascii","scale":16,"embed_textures":true,"armature":false,"animations":true},"path":".\\VendingMachine.gltf","enabled":true},"resolution":{"width":8,"height":8},"elements":[{"name":"cube","box_uv":false,"rescale":false,"locked":false,"light_emission":0,"render_order":"default","allow_mirror_modeling":true,"from":[-8,-14,-8],"to":[8,18,8],"autouv":0,"color":9,"rotation":[0,-180,0],"origin":[0,-14,0],"faces":{"north":{"uv":[0,0,2,4],"texture":0},"east":{"uv":[2,0,4,4],"texture":0},"south":{"uv":[0,4,2,8],"texture":0},"west":{"uv":[4,0,6,4],"texture":0},"up":{"uv":[4,6,2,4],"texture":0},"down":{"uv":[6,4,4,6],"texture":0}},"type":"cube","uuid":"0c5c59f9-d80b-901c-c299-a940fbcfbf12"}],"outliner":["0c5c59f9-d80b-901c-c299-a940fbcfbf12"],"textures":[{"path":"D:\\Maddo\\cirnogodot\\3D\\BlockbenchModels\\VendingMachine\\VendingMachine_Texture.png","name":"VendingMachine_Texture.png","folder":"block","namespace":"","id":"2","group":"","width":32,"height":32,"uv_width":8,"uv_height":8,"particle":false,"use_as_default":false,"layers_enabled":false,"sync_to_project":"","render_mode":"default","render_sides":"auto","pbr_channel":"color","frame_time":1,"frame_order_type":"loop","frame_order":"","frame_interpolate":false,"visible":true,"internal":true,"saved":true,"uuid":"06f86ca6-c3fe-25f3-905d-ed1e33230b51","relative_path":"VendingMachine_Texture.png","source":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAO5JREFUWEdjtOeV/s9AQ3Dw81NGfMYzghyQ9ecdVjXTWITA4pTIE+WAb7U3wBa9On6HQcxSheGUSgwDg4oJg4P1DPo5AGQ5CIAcUFIvxnB410eGy16K9HPAl8lNYMt4cusGxgGw4Ac5AhQCIEDXNDAaBcj5kO6JkJJ8TqicIKocGHUAKATUb95EKY5vqqvTLxuCHPBl1TYUB/CEedHXAdhqI7oVRDSsjRmIygUD7oDRbDgaAqMhQCgEKMmmRJUD+BxAyABKHAfSS7BfMHIcAKp40KMCJEa3EIA5ANkhdHUAruqYbiEwoA7Al5VoHQIAe4WEMOLm1L4AAAAASUVORK5CYII="}],"export_options":{"gltf":{"encoding":"binary","scale":16,"embed_textures":true,"armature":false,"animations":true}}}

View file

@ -0,0 +1 @@
{"asset":{"version":"2.0","generator":"Blockbench 4.12.5 glTF exporter"},"scenes":[{"nodes":[1],"name":"blockbench_export"}],"scene":0,"nodes":[{"rotation":[0,-1,0,6.123233995736766e-17],"translation":[0,-0.875,0],"name":"cube","mesh":0},{"children":[0]}],"bufferViews":[{"buffer":0,"byteOffset":0,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":288,"byteLength":288,"target":34962,"byteStride":12},{"buffer":0,"byteOffset":576,"byteLength":192,"target":34962,"byteStride":8},{"buffer":0,"byteOffset":768,"byteLength":72,"target":34963}],"buffers":[{"byteLength":840,"uri":"data:application/octet-stream;base64,AAAAPwAAAEAAAAA/AAAAPwAAAEAAAAC/AAAAPwAAAAAAAAA/AAAAPwAAAAAAAAC/AAAAvwAAAEAAAAC/AAAAvwAAAEAAAAA/AAAAvwAAAAAAAAC/AAAAvwAAAAAAAAA/AAAAvwAAAEAAAAC/AAAAPwAAAEAAAAC/AAAAvwAAAEAAAAA/AAAAPwAAAEAAAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAvwAAAAAAAAC/AAAAPwAAAAAAAAC/AAAAvwAAAEAAAAA/AAAAPwAAAEAAAAA/AAAAvwAAAAAAAAA/AAAAPwAAAAAAAAA/AAAAPwAAAEAAAAC/AAAAvwAAAEAAAAC/AAAAPwAAAAAAAAC/AAAAvwAAAAAAAAC/AACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAPwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAACAvwAAAAAAAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgD8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAgL8AAAAAAAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIA/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AAAAAAAAAAAAAIC/AACAPgAAAAAAAAA/AAAAAAAAgD4AAAA/AAAAPwAAAD8AAAA/AAAAAAAAQD8AAAAAAAAAPwAAAD8AAEA/AAAAPwAAAD8AAEA/AACAPgAAQD8AAAA/AAAAPwAAgD4AAAA/AABAPwAAAD8AAAA/AAAAPwAAQD8AAEA/AAAAPwAAQD8AAAAAAAAAPwAAgD4AAAA/AAAAAAAAgD8AAIA+AACAPwAAAAAAAAAAAACAPgAAAAAAAAAAAAAAPwAAgD4AAAA/AAACAAEAAgADAAEABAAGAAUABgAHAAUACAAKAAkACgALAAkADAAOAA0ADgAPAA0AEAASABEAEgATABEAFAAWABUAFgAXABUA"}],"accessors":[{"bufferView":0,"componentType":5126,"count":24,"max":[0.5,2,0.5],"min":[-0.5,0,-0.5],"type":"VEC3"},{"bufferView":1,"componentType":5126,"count":24,"max":[1,1,1],"min":[-1,-1,-1],"type":"VEC3"},{"bufferView":2,"componentType":5126,"count":24,"max":[0.75,1],"min":[0,0],"type":"VEC2"},{"bufferView":3,"componentType":5123,"count":36,"max":[23],"min":[0],"type":"SCALAR"}],"materials":[{"pbrMetallicRoughness":{"metallicFactor":0,"roughnessFactor":1,"baseColorTexture":{"index":0}},"alphaMode":"MASK","alphaCutoff":0.05,"doubleSided":true}],"textures":[{"sampler":0,"source":0,"name":"VendingMachine_Texture.png"}],"samplers":[{"magFilter":9728,"minFilter":9728,"wrapS":33071,"wrapT":33071}],"images":[{"mimeType":"image/png","uri":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAO5JREFUWEdjtOeV/s9AQ3Dw81NGfMYzghyQ9ecdVjXTWITA4pTIE+WAb7U3wBa9On6HQcxSheGUSgwDg4oJg4P1DPo5AGQ5CIAcUFIvxnB410eGy16K9HPAl8lNYMt4cusGxgGw4Ac5AhQCIEDXNDAaBcj5kO6JkJJ8TqicIKocGHUAKATUb95EKY5vqqvTLxuCHPBl1TYUB/CEedHXAdhqI7oVRDSsjRmIygUD7oDRbDgaAqMhQCgEKMmmRJUD+BxAyABKHAfSS7BfMHIcAKp40KMCJEa3EIA5ANkhdHUAruqYbiEwoA7Al5VoHQIAe4WEMOLm1L4AAAAASUVORK5CYII="}],"meshes":[{"primitives":[{"mode":4,"attributes":{"POSITION":0,"NORMAL":1,"TEXCOORD_0":2},"indices":3,"material":0}]}]}

View file

@ -0,0 +1,37 @@
[remap]
importer="scene"
importer_version=1
type="PackedScene"
uid="uid://cphr15gnmriw3"
path="res://.godot/imported/VendingMachine.gltf-a64ef32dc8b2f8bc2c8e2f6976859a81.scn"
[deps]
source_file="res://3D/BlockbenchModels/VendingMachine/VendingMachine.gltf"
dest_files=["res://.godot/imported/VendingMachine.gltf-a64ef32dc8b2f8bc2c8e2f6976859a81.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={}
gltf/naming_version=1
gltf/embedded_image_handling=1

BIN
3D/BlockbenchModels/VendingMachine/VendingMachine_0.png (Stored with Git LFS) Normal file

Binary file not shown.

View file

@ -0,0 +1,37 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://qlb361bjiy6m"
path="res://.godot/imported/VendingMachine_0.png-d61332938f71342673cf54eec66e07b1.ctex"
metadata={
"vram_texture": false
}
generator_parameters={
"md5": "a11b66e9ec455c4b822d9e0e7ff18e58"
}
[deps]
source_file="res://3D/BlockbenchModels/VendingMachine/VendingMachine_0.png"
dest_files=["res://.godot/imported/VendingMachine_0.png-d61332938f71342673cf54eec66e07b1.ctex"]
[params]
compress/mode=3
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

Binary file not shown.

View file

@ -0,0 +1,34 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://1qnd4etdotob"
path="res://.godot/imported/VendingMachine_Texture.png-1be3291364e7d67ad509f57704bc5d12.ctex"
metadata={
"vram_texture": false
}
[deps]
source_file="res://3D/BlockbenchModels/VendingMachine/VendingMachine_Texture.png"
dest_files=["res://.godot/imported/VendingMachine_Texture.png-1be3291364e7d67ad509f57704bc5d12.ctex"]
[params]
compress/mode=3
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

Binary file not shown.

File diff suppressed because one or more lines are too long

View file

@ -2427,3 +2427,75 @@
"classname" "actor_capacitor"
"origin" "496 136 28"
}
// entity 123
{
"classname" "actor_vendingmachine"
"origin" "248 760 28"
"angle" "0"
}
// entity 124
{
"classname" "actor_box_green"
"origin" "248 712 20"
}
// entity 125
{
"classname" "actor_box_wood"
"origin" "244 792 28"
}
// entity 126
{
"classname" "actor_box_wood"
"origin" "244 792 20"
}
// entity 127
{
"classname" "actor_table"
"origin" "248 732 20"
}
// entity 128
{
"classname" "actor_box_green"
"origin" "280 792 20"
}
// entity 129
{
"classname" "actor_box_red"
"origin" "296 784 20"
}
// entity 130
{
"classname" "actor_box_blue"
"origin" "312 760 20"
}
// entity 131
{
"classname" "actor_box_yellow"
"origin" "320 792 20"
}
// entity 132
{
"classname" "actor_box_blue"
"origin" "248 712 28"
}
// entity 133
{
"classname" "actor_box_wood"
"origin" "244 776 20"
}
// entity 134
{
"classname" "actor_box_wood"
"origin" "252 792 20"
}
// entity 135
{
"classname" "actor_box_wood"
"origin" "308 792 20"
}
// entity 136
{
"classname" "actor_ac_unit"
"origin" "284 708 24"
"angle" "270"
}

View file

@ -0,0 +1,15 @@
[gd_scene load_steps=3 format=3 uid="uid://bb2pjblwkb7ub"]
[ext_resource type="PackedScene" uid="uid://cphr15gnmriw3" path="res://3D/BlockbenchModels/VendingMachine/VendingMachine.gltf" id="1_wtma2"]
[sub_resource type="BoxShape3D" id="BoxShape3D_hsg1w"]
size = Vector3(1.0528, 2.01202, 0.990539)
[node name="VendingMachine" type="StaticBody3D"]
[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.0167541, 0.0118043, 0.00338751)
shape = SubResource("BoxShape3D_hsg1w")
[node name="blockbench_export" parent="." instance=ExtResource("1_wtma2")]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, 0)

View file

@ -0,0 +1,25 @@
[gd_resource type="Resource" script_class="FuncGodotFGDPointClass" load_steps=4 format=3 uid="uid://bmfarpfcbbfa5"]
[ext_resource type="Resource" uid="uid://5bc1qysixhmh" path="res://3D/TrenchBroom/EntityDefinitions/base/actor_base.tres" id="1_2x8yp"]
[ext_resource type="PackedScene" uid="uid://bb2pjblwkb7ub" path="res://3D/Scenes/Props/Vending_Machine_3D.tscn" id="2_2x8yp"]
[ext_resource type="Script" uid="uid://c83r7t467hm4m" path="res://addons/func_godot/src/fgd/func_godot_fgd_point_class.gd" id="3_jepr3"]
[resource]
script = ExtResource("3_jepr3")
scene_file = ExtResource("2_2x8yp")
apply_rotation_on_map_build = true
apply_scale_on_map_build = false
classname = "actor_vendingmachine"
description = "Vending Machine"
func_godot_internal = false
base_classes = Array[Resource]([ExtResource("1_2x8yp")])
class_properties = {}
class_property_descriptions = {}
auto_apply_to_matching_node_properties = false
meta_properties = {
"model": "\"3D/MapModels/VendingMachine.glb\"",
"size": AABB(-8, -8, -12, 8, 8, 12)
}
node_class = ""
name_property = ""
metadata/_custom_type_script = "uid://c83r7t467hm4m"

View file

@ -1,4 +1,4 @@
[gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=19 format=3 uid="uid://b700sa4be6dfa"]
[gd_resource type="Resource" script_class="FuncGodotFGDFile" load_steps=20 format=3 uid="uid://b700sa4be6dfa"]
[ext_resource type="Resource" uid="uid://ia1t5p4mhom3" path="res://3D/TrenchBroom/EntityDefinitions/point/lights/light_omni.tres" id="1_7vcj1"]
[ext_resource type="Script" uid="uid://cknmd0lgmorx2" path="res://addons/func_godot/src/fgd/func_godot_fgd_file.gd" id="1_lykim"]
@ -18,6 +18,7 @@
[ext_resource type="Resource" uid="uid://b2hgfu40nfoe3" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_tube_corner.tres" id="15_g8j5j"]
[ext_resource type="Resource" uid="uid://41wnjh6ftght" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_box_green.tres" id="16_7h4of"]
[ext_resource type="Resource" uid="uid://dj72os2jpdl4l" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/actor_box_yellow.tres" id="17_m3sbm"]
[ext_resource type="Resource" uid="uid://bmfarpfcbbfa5" path="res://3D/TrenchBroom/EntityDefinitions/point/actors/Actor_VendingMachine.tres" id="18_m3sbm"]
[resource]
script = ExtResource("1_lykim")
@ -25,5 +26,5 @@ export_file = false
target_map_editor = 1
fgd_name = "FuncGodot"
base_fgd_files = Array[Resource]([])
entity_definitions = Array[Resource]([ExtResource("1_7vcj1"), ExtResource("2_u7uvb"), ExtResource("3_u7uvb"), ExtResource("4_1nmxk"), ExtResource("5_ljb2x"), ExtResource("6_seuvu"), ExtResource("7_fmwex"), ExtResource("8_c8m8m"), ExtResource("9_14sjf"), ExtResource("10_xik3w"), ExtResource("11_dgiqm"), ExtResource("12_1teik"), ExtResource("13_f0hti"), ExtResource("14_6ld6e"), ExtResource("15_g8j5j"), ExtResource("16_7h4of"), ExtResource("17_m3sbm")])
entity_definitions = Array[Resource]([ExtResource("1_7vcj1"), ExtResource("2_u7uvb"), ExtResource("3_u7uvb"), ExtResource("4_1nmxk"), ExtResource("5_ljb2x"), ExtResource("6_seuvu"), ExtResource("7_fmwex"), ExtResource("8_c8m8m"), ExtResource("9_14sjf"), ExtResource("10_xik3w"), ExtResource("11_dgiqm"), ExtResource("12_1teik"), ExtResource("13_f0hti"), ExtResource("14_6ld6e"), ExtResource("15_g8j5j"), ExtResource("16_7h4of"), ExtResource("17_m3sbm"), ExtResource("18_m3sbm")])
metadata/_custom_type_script = "uid://cknmd0lgmorx2"