Created Phone that can play video files for the transition between the apartment and the Hospital and added temp video file

This commit is contained in:
2024-08-22 00:52:33 -05:00
parent 493d69a03b
commit 3f2c0b822c
7 changed files with 115 additions and 0 deletions

34
Assets/Objects/Phone.tscn Normal file
View File

@ -0,0 +1,34 @@
[gd_scene load_steps=5 format=3 uid="uid://ccv21jsv2wk75"]
[ext_resource type="PackedScene" uid="uid://jkmvm52nsjcu" path="res://Blender Files/Objects/Phone.blend" id="1_a582h"]
[sub_resource type="VideoStreamTheora" id="VideoStreamTheora_h3ryc"]
file = "res://Assets/Videos/Screen_Recording_20240821_231541.ogg"
[sub_resource type="ViewportTexture" id="ViewportTexture_ann51"]
viewport_path = NodePath("SubViewport")
[sub_resource type="StandardMaterial3D" id="StandardMaterial3D_jj5ft"]
resource_local_to_scene = true
albedo_texture = SubResource("ViewportTexture_ann51")
[node name="Phone" type="Node3D"]
[node name="SubViewport" type="SubViewport" parent="."]
size = Vector2i(1080, 2340)
[node name="VideoStreamPlayer" type="VideoStreamPlayer" parent="SubViewport"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
stream = SubResource("VideoStreamTheora_h3ryc")
autoplay = true
[node name="Phone" parent="." instance=ExtResource("1_a582h")]
[node name="Cube" parent="Phone" index="0"]
surface_material_override/2 = SubResource("StandardMaterial3D_jj5ft")
[editable path="Phone"]

View File

@ -0,0 +1,12 @@
[gd_scene load_steps=2 format=3 uid="uid://61liphh61bl0"]
[ext_resource type="PackedScene" uid="uid://ccv21jsv2wk75" path="res://Assets/Objects/Phone.tscn" id="2_k71hl"]
[node name="Node3D" type="Node3D"]
[node name="Camera3D" type="Camera3D" parent="."]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, 1, 0, -1, -4.37114e-08, 0, 0.154413, 0)
current = true
[node name="Node3D" parent="." instance=ExtResource("2_k71hl")]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, 0.112366, 0, 0)

Binary file not shown.

View File

@ -0,0 +1,18 @@
[remap]
importer="oggvorbisstr"
type="AudioStreamOggVorbis"
uid="uid://bv6kqrdw8bh3t"
valid=false
[deps]
source_file="res://Assets/Videos/Screen_Recording_20240821_231541.ogg"
[params]
loop=false
loop_offset=0
bpm=0
beat_count=0
bar_beats=4