Setup main scene for XR

This commit is contained in:
Marek S. Łukasiewicz 2025-01-31 15:13:57 +01:00
parent 432dca80d0
commit e3b6c3f501
6 changed files with 1820 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

View file

@ -0,0 +1,35 @@
[remap]
importer="texture"
type="CompressedTexture2D"
uid="uid://ftrrxm7sxndi"
path.s3tc="res://.godot/imported/splash.png-ddd7480ad7b4a7a930dddcd20e278b1e.s3tc.ctex"
metadata={
"imported_formats": ["s3tc_bptc"],
"vram_texture": true
}
[deps]
source_file="res://assets/splash/splash.png"
dest_files=["res://.godot/imported/splash.png-ddd7480ad7b4a7a930dddcd20e278b1e.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

42
project/main-xr.tscn Normal file
View file

@ -0,0 +1,42 @@
[gd_scene load_steps=8 format=3 uid="uid://cx82op4eecbwr"]
[ext_resource type="Script" uid="uid://cx30pr7kn4c74" path="res://aircraft.gd" id="1_hips3"]
[ext_resource type="PackedScene" uid="uid://qbmx03iibuuu" path="res://addons/godot-xr-tools/staging/scene_base.tscn" id="1_k0lu6"]
[sub_resource type="BoxMesh" id="BoxMesh_2w36v"]
[sub_resource type="ProceduralSkyMaterial" id="ProceduralSkyMaterial_4tcqf"]
[sub_resource type="Sky" id="Sky_0xm2m"]
sky_material = SubResource("ProceduralSkyMaterial_4tcqf")
[sub_resource type="Environment" id="Environment_jdgxj"]
background_mode = 2
sky = SubResource("Sky_0xm2m")
[sub_resource type="CameraAttributesPractical" id="CameraAttributesPractical_fpvso"]
[node name="SceneBase" instance=ExtResource("1_k0lu6")]
[node name="XROrigin3D" parent="." index="0"]
transform = Transform3D(-1, 0, -8.74228e-08, 0, 1, 0, 8.74228e-08, 0, -1, 0, 0, -3)
[node name="MarshConnector" type="MarshConnector" parent="." index="1"]
process_mode = 0
[node name="Aircraft" type="Node3D" parent="." index="2" node_paths=PackedStringArray("connector")]
script = ExtResource("1_hips3")
connector = NodePath("../MarshConnector")
[node name="MeshInstance3D" type="MeshInstance3D" parent="Aircraft" index="0"]
mesh = SubResource("BoxMesh_2w36v")
[node name="Camera3D" type="Camera3D" parent="." index="3"]
transform = Transform3D(-1, -2.26267e-08, 8.44439e-08, 0, 0.965926, 0.258819, -8.74228e-08, 0.258819, -0.965926, 0, 1, -3)
[node name="DirectionalLight3D" type="DirectionalLight3D" parent="." index="4"]
transform = Transform3D(-0.707107, -0.683013, 0.183013, 0, 0.258819, 0.965926, -0.707107, 0.683013, -0.183013, 3, 3, 3)
[node name="WorldEnvironment" type="WorldEnvironment" parent="." index="5"]
environment = SubResource("Environment_jdgxj")
camera_attributes = SubResource("CameraAttributesPractical_fpvso")

File diff suppressed because it is too large Load diff

View file

@ -11,11 +11,29 @@ config_version=5
[application]
config/name="Visualisation for MARSH"
run/main_scene="uid://cjrkxv8ix1h8s"
run/main_scene="uid://ba764fx7hx8ei"
config/features=PackedStringArray("4.4", "GL Compatibility")
config/icon="res://icon.svg"
[autoload]
XRToolsUserSettings="*res://addons/godot-xr-tools/user_settings/user_settings.gd"
XRToolsRumbleManager="*res://addons/godot-xr-tools/rumble/rumble_manager.gd"
[editor_plugins]
enabled=PackedStringArray("res://addons/godot-xr-tools/plugin.cfg")
[physics]
common/enable_object_picking=false
[rendering]
renderer/rendering_method="gl_compatibility"
renderer/rendering_method.mobile="gl_compatibility"
[xr]
openxr/enabled=true
shaders/enabled=true

11
project/start-xr.tscn Normal file
View file

@ -0,0 +1,11 @@
[gd_scene load_steps=3 format=3 uid="uid://ba764fx7hx8ei"]
[ext_resource type="PackedScene" uid="uid://bnqnnnet4dw12" path="res://addons/godot-xr-tools/staging/staging.tscn" id="1_hips3"]
[ext_resource type="Texture2D" uid="uid://ftrrxm7sxndi" path="res://assets/splash/splash.png" id="2_k0lu6"]
[node name="Staging" instance=ExtResource("1_hips3")]
main_scene = "uid://cx82op4eecbwr"
prompt_for_continue = false
[node name="LoadingScreen" parent="." index="2"]
splash_screen = ExtResource("2_k0lu6")