This commit is contained in:
Spencer Killen 2022-12-31 02:49:32 -07:00
parent 466c4c18c5
commit 1694788562
Signed by: sjkillen
GPG Key ID: F307025B65C860BA
9 changed files with 1177 additions and 7 deletions

BIN
blends/environment.blend (Stored with Git LFS)

Binary file not shown.

Binary file not shown.

View File

@ -0,0 +1,3 @@
source_md5="d958ea022de42cf6a043f9a1801ebaed"
dest_md5="dfff1dbb1add8c552ef261e8a3b6a094"

10
godot/AnimationTree.gd Normal file
View File

@ -0,0 +1,10 @@
extends AnimationTree
export var TARGET_FRAMERATE = 5
var time_buffer = 0.0
func _process(delta):
time_buffer += delta
if time_buffer >= (1.0 / TARGET_FRAMERATE):
advance(time_buffer)
time_buffer = 0.0

BIN
godot/assets/room/camera_positions.glb (Stored with Git LFS) Normal file

Binary file not shown.

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,10 @@
[gd_scene load_steps=2 format=2]
[ext_resource path="res://assets/room/camera_positions.glb" type="PackedScene" id=1]
[node name="camera_positions" instance=ExtResource( 1 )]
[node name="Camera" parent="." index="0"]
transform = Transform( -0.761628, -0.222546, 0.608602, 3.72529e-08, 0.939179, 0.343427, -0.648015, 0.261564, -0.715305, -7.44886, 18.7831, -13.0498 )
fov = 87.2
far = 100.0

View File

@ -1,12 +1,76 @@
[gd_scene load_steps=5 format=2]
[gd_scene load_steps=25 format=2]
[ext_resource path="res://assets/effects/dithering/CanvasLayer.tscn" type="PackedScene" id=1]
[ext_resource path="res://assets/room/environment.tscn" type="PackedScene" id=2]
[ext_resource path="res://3DCursor.tscn" type="PackedScene" id=3]
[ext_resource path="res://assets/room/camera_positions.tscn" type="PackedScene" id=4]
[ext_resource path="res://AnimationTree.gd" type="Script" id=5]
[sub_resource type="Environment" id=1]
background_mode = 1
[sub_resource type="AnimationNodeAnimation" id=9]
animation = "camera_attic_inner"
[sub_resource type="AnimationNodeAnimation" id=4]
animation = "camera_bookcase"
[sub_resource type="AnimationNodeAnimation" id=10]
animation = "camera_outer_attic"
[sub_resource type="AnimationNodeAnimation" id=8]
animation = "camera_pos_corner"
[sub_resource type="AnimationNodeStateMachineTransition" id=11]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=12]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=13]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=14]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=15]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=16]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=17]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=18]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=19]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=20]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=21]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachineTransition" id=22]
xfade_time = 3.0
[sub_resource type="AnimationNodeStateMachine" id=2]
states/camera_attic_inner/node = SubResource( 9 )
states/camera_attic_inner/position = Vector2( 788, 309 )
states/camera_bookcase/node = SubResource( 4 )
states/camera_bookcase/position = Vector2( 706, 78 )
states/camera_outer_attic/node = SubResource( 10 )
states/camera_outer_attic/position = Vector2( 414, 309 )
states/camera_pos_corner/node = SubResource( 8 )
states/camera_pos_corner/position = Vector2( 243, 157 )
transitions = [ "camera_pos_corner", "camera_bookcase", SubResource( 11 ), "camera_outer_attic", "camera_pos_corner", SubResource( 12 ), "camera_outer_attic", "camera_bookcase", SubResource( 13 ), "camera_outer_attic", "camera_attic_inner", SubResource( 14 ), "camera_pos_corner", "camera_outer_attic", SubResource( 15 ), "camera_pos_corner", "camera_attic_inner", SubResource( 16 ), "camera_bookcase", "camera_pos_corner", SubResource( 17 ), "camera_bookcase", "camera_attic_inner", SubResource( 18 ), "camera_bookcase", "camera_outer_attic", SubResource( 19 ), "camera_attic_inner", "camera_bookcase", SubResource( 20 ), "camera_attic_inner", "camera_outer_attic", SubResource( 21 ), "camera_attic_inner", "camera_pos_corner", SubResource( 22 ) ]
start_node = "camera_pos_corner"
[sub_resource type="AnimationNodeStateMachinePlayback" id=3]
[node name="Spatial" type="Spatial"]
[node name="CanvasLayer" parent="." instance=ExtResource( 1 )]
@ -14,10 +78,6 @@ layer = 99
[node name="environment" parent="." instance=ExtResource( 2 )]
[node name="Camera" type="Camera" parent="."]
transform = Transform( -0.745011, 0, 0.667053, 0, 1, 0, -0.667053, 0, -0.745011, 6.8714, 6.8974, -7.12113 )
fov = 87.2
[node name="WorldEnvironment" type="WorldEnvironment" parent="."]
environment = SubResource( 1 )
@ -43,3 +103,22 @@ spot_angle = 57.9366
[node name="3DCursor" parent="." instance=ExtResource( 3 )]
transform = Transform( 0.5, 0, 0, 0, 0.5, 0, 0, 0, 0.5, 0, 7.05282, 0 )
KB_ACTIONS_PER_SECOND = 6.0
[node name="camera_positions" parent="." instance=ExtResource( 4 )]
[node name="Camera" parent="camera_positions" index="0"]
transform = Transform( -0.996629, -0.00929657, 0.0815153, 0, 0.993559, 0.113312, -0.0820437, 0.11293, -0.99021, 0.178344, 4.60072, 0.331739 )
[node name="AnimationPlayer" parent="camera_positions" index="1"]
autoplay = "camera_pos_corner"
[node name="AnimationTree" type="AnimationTree" parent="."]
tree_root = SubResource( 2 )
anim_player = NodePath("../camera_positions/AnimationPlayer")
active = true
process_mode = 2
parameters/playback = SubResource( 3 )
script = ExtResource( 5 )
[editable path="camera_positions"]