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:
34
Assets/Objects/Phone.tscn
Normal file
34
Assets/Objects/Phone.tscn
Normal 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"]
|
||||
12
Assets/Tests/PhoneScreenTest.tscn
Normal file
12
Assets/Tests/PhoneScreenTest.tscn
Normal 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)
|
||||
BIN
Assets/Videos/Screen_Recording_20240821_231541.ogg
Normal file
BIN
Assets/Videos/Screen_Recording_20240821_231541.ogg
Normal file
Binary file not shown.
18
Assets/Videos/Screen_Recording_20240821_231541.ogg.import
Normal file
18
Assets/Videos/Screen_Recording_20240821_231541.ogg.import
Normal 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
|
||||
BIN
Blender Files/Objects/Phone.blend
Normal file
BIN
Blender Files/Objects/Phone.blend
Normal file
Binary file not shown.
51
Blender Files/Objects/Phone.blend.import
Normal file
51
Blender Files/Objects/Phone.blend.import
Normal file
@ -0,0 +1,51 @@
|
||||
[remap]
|
||||
|
||||
importer="scene"
|
||||
importer_version=1
|
||||
type="PackedScene"
|
||||
uid="uid://jkmvm52nsjcu"
|
||||
path="res://.godot/imported/Phone.blend-cdedd10d72026edfc281231fe3db454c.scn"
|
||||
|
||||
[deps]
|
||||
|
||||
source_file="res://Blender Files/Objects/Phone.blend"
|
||||
dest_files=["res://.godot/imported/Phone.blend-cdedd10d72026edfc281231fe3db454c.scn"]
|
||||
|
||||
[params]
|
||||
|
||||
nodes/root_type=""
|
||||
nodes/root_name=""
|
||||
nodes/apply_root_scale=true
|
||||
nodes/root_scale=1.0
|
||||
nodes/import_as_skeleton_bones=false
|
||||
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/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
Blender Files/Objects/Phone.blend1
Normal file
BIN
Blender Files/Objects/Phone.blend1
Normal file
Binary file not shown.
Reference in New Issue
Block a user