From 6c4505e891dc5cb045a9e11fac9ccbe43a39a0e5 Mon Sep 17 00:00:00 2001 From: Sara Date: Wed, 8 Oct 2025 11:26:17 +0200 Subject: [PATCH] feat: created separate flatscreen project --- EditFlatscreenProject.ps1 | 4 + RunEditor.ps1 => EditVRProject.ps1 | 2 +- .../.gitattributes | 0 {project => flatscreen-project}/.gitignore | 0 .../export_presets.cfg | 0 {project => flatscreen-project}/icon.svg | 0 .../icon.svg.import | 0 {project => flatscreen-project}/project.godot | 0 vr-project/.gitattributes | 2 + vr-project/.gitignore | 3 + vr-project/export_presets.cfg | 108 ++++++++++++++++++ vr-project/icon.svg | 1 + vr-project/icon.svg.import | 43 +++++++ vr-project/project.godot | 22 ++++ vr-project/vr_base.tscn | 11 ++ 15 files changed, 195 insertions(+), 1 deletion(-) create mode 100644 EditFlatscreenProject.ps1 rename RunEditor.ps1 => EditVRProject.ps1 (84%) rename {project => flatscreen-project}/.gitattributes (100%) rename {project => flatscreen-project}/.gitignore (100%) rename {project => flatscreen-project}/export_presets.cfg (100%) rename {project => flatscreen-project}/icon.svg (100%) rename {project => flatscreen-project}/icon.svg.import (100%) rename {project => flatscreen-project}/project.godot (100%) create mode 100644 vr-project/.gitattributes create mode 100644 vr-project/.gitignore create mode 100644 vr-project/export_presets.cfg create mode 100644 vr-project/icon.svg create mode 100644 vr-project/icon.svg.import create mode 100644 vr-project/project.godot create mode 100644 vr-project/vr_base.tscn diff --git a/EditFlatscreenProject.ps1 b/EditFlatscreenProject.ps1 new file mode 100644 index 00000000..24004184 --- /dev/null +++ b/EditFlatscreenProject.ps1 @@ -0,0 +1,4 @@ +Set-Location engine/ +&"scons" "target=editor" "custom_modules=../modules" +Set-Location ../flatscreen-project +&"../engine/bin/godot.windows.editor.x86_64.exe" "--editor" --path . diff --git a/RunEditor.ps1 b/EditVRProject.ps1 similarity index 84% rename from RunEditor.ps1 rename to EditVRProject.ps1 index 3ee4552b..8660b92e 100755 --- a/RunEditor.ps1 +++ b/EditVRProject.ps1 @@ -1,4 +1,4 @@ Set-Location engine/ &"scons" "target=editor" "custom_modules=../modules" -Set-Location ../project +Set-Location ../vr-project &"../engine/bin/godot.windows.editor.x86_64.exe" "--editor" --path . diff --git a/project/.gitattributes b/flatscreen-project/.gitattributes similarity index 100% rename from project/.gitattributes rename to flatscreen-project/.gitattributes diff --git a/project/.gitignore b/flatscreen-project/.gitignore similarity index 100% rename from project/.gitignore rename to flatscreen-project/.gitignore diff --git a/project/export_presets.cfg b/flatscreen-project/export_presets.cfg similarity index 100% rename from project/export_presets.cfg rename to flatscreen-project/export_presets.cfg diff --git a/project/icon.svg b/flatscreen-project/icon.svg similarity index 100% rename from project/icon.svg rename to flatscreen-project/icon.svg diff --git a/project/icon.svg.import b/flatscreen-project/icon.svg.import similarity index 100% rename from project/icon.svg.import rename to flatscreen-project/icon.svg.import diff --git a/project/project.godot b/flatscreen-project/project.godot similarity index 100% rename from project/project.godot rename to flatscreen-project/project.godot diff --git a/vr-project/.gitattributes b/vr-project/.gitattributes new file mode 100644 index 00000000..8ad74f78 --- /dev/null +++ b/vr-project/.gitattributes @@ -0,0 +1,2 @@ +# Normalize EOL for all files that Git considers text files. +* text=auto eol=lf diff --git a/vr-project/.gitignore b/vr-project/.gitignore new file mode 100644 index 00000000..0af181cf --- /dev/null +++ b/vr-project/.gitignore @@ -0,0 +1,3 @@ +# Godot 4+ specific ignores +.godot/ +/android/ diff --git a/vr-project/export_presets.cfg b/vr-project/export_presets.cfg new file mode 100644 index 00000000..319a6b30 --- /dev/null +++ b/vr-project/export_presets.cfg @@ -0,0 +1,108 @@ +[preset.0] + +name="Linux" +platform="Linux" +runnable=true +advanced_options=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="../build/you_done_it.x86_64" +patches=PackedStringArray() +encryption_include_filters="" +encryption_exclude_filters="" +seed=0 +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.0.options] + +custom_template/debug="" +custom_template/release="templatepath" +debug/export_console_wrapper=1 +binary_format/embed_pck=false +texture_format/s3tc_bptc=true +texture_format/etc2_astc=false +binary_format/architecture="x86_64" +ssh_remote_deploy/enabled=false +ssh_remote_deploy/host="user@host_ip" +ssh_remote_deploy/port="22" +ssh_remote_deploy/extra_args_ssh="" +ssh_remote_deploy/extra_args_scp="" +ssh_remote_deploy/run_script="#!/usr/bin/env bash +export DISPLAY=:0 +unzip -o -q \"{temp_dir}/{archive_name}\" -d \"{temp_dir}\" +\"{temp_dir}/{exe_name}\" {cmd_args}" +ssh_remote_deploy/cleanup_script="#!/usr/bin/env bash +kill $(pgrep -x -f \"{temp_dir}/{exe_name} {cmd_args}\") +rm -rf \"{temp_dir}\"" + +[preset.1] + +name="Windows" +platform="Windows Desktop" +runnable=true +advanced_options=true +dedicated_server=false +custom_features="" +export_filter="all_resources" +include_filter="" +exclude_filter="" +export_path="../build/you_done_it.exe" +patches=PackedStringArray() +encryption_include_filters="" +encryption_exclude_filters="" +seed=0 +encrypt_pck=false +encrypt_directory=false +script_export_mode=2 + +[preset.1.options] + +custom_template/debug="" +custom_template/release="templatepath" +debug/export_console_wrapper=1 +binary_format/embed_pck=false +texture_format/s3tc_bptc=true +texture_format/etc2_astc=false +binary_format/architecture="x86_64" +codesign/enable=false +codesign/timestamp=true +codesign/timestamp_server_url="" +codesign/digest_algorithm=1 +codesign/description="" +codesign/custom_options=PackedStringArray() +application/modify_resources=true +application/icon="" +application/console_wrapper_icon="" +application/icon_interpolation=4 +application/file_version="" +application/product_version="" +application/company_name="" +application/product_name="" +application/file_description="" +application/copyright="" +application/trademarks="" +application/export_angle=0 +application/export_d3d12=0 +application/d3d12_agility_sdk_multiarch=true +ssh_remote_deploy/enabled=false +ssh_remote_deploy/host="user@host_ip" +ssh_remote_deploy/port="22" +ssh_remote_deploy/extra_args_ssh="" +ssh_remote_deploy/extra_args_scp="" +ssh_remote_deploy/run_script="Expand-Archive -LiteralPath '{temp_dir}\\{archive_name}' -DestinationPath '{temp_dir}' +$action = New-ScheduledTaskAction -Execute '{temp_dir}\\{exe_name}' -Argument '{cmd_args}' +$trigger = New-ScheduledTaskTrigger -Once -At 00:00 +$settings = New-ScheduledTaskSettingsSet -AllowStartIfOnBatteries -DontStopIfGoingOnBatteries +$task = New-ScheduledTask -Action $action -Trigger $trigger -Settings $settings +Register-ScheduledTask godot_remote_debug -InputObject $task -Force:$true +Start-ScheduledTask -TaskName godot_remote_debug +while (Get-ScheduledTask -TaskName godot_remote_debug | ? State -eq running) { Start-Sleep -Milliseconds 100 } +Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue" +ssh_remote_deploy/cleanup_script="Stop-ScheduledTask -TaskName godot_remote_debug -ErrorAction:SilentlyContinue +Unregister-ScheduledTask -TaskName godot_remote_debug -Confirm:$false -ErrorAction:SilentlyContinue +Remove-Item -Recurse -Force '{temp_dir}'" diff --git a/vr-project/icon.svg b/vr-project/icon.svg new file mode 100644 index 00000000..9d8b7fa1 --- /dev/null +++ b/vr-project/icon.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/vr-project/icon.svg.import b/vr-project/icon.svg.import new file mode 100644 index 00000000..f082c774 --- /dev/null +++ b/vr-project/icon.svg.import @@ -0,0 +1,43 @@ +[remap] + +importer="texture" +type="CompressedTexture2D" +uid="uid://bwfkmwx6bd5u4" +path="res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex" +metadata={ +"vram_texture": false +} + +[deps] + +source_file="res://icon.svg" +dest_files=["res://.godot/imported/icon.svg-218a8f2b3041327d8a5756f3a245f83b.ctex"] + +[params] + +compress/mode=0 +compress/high_quality=false +compress/lossy_quality=0.7 +compress/uastc_level=0 +compress/rdo_quality_loss=0.0 +compress/hdr_compression=1 +compress/normal_map=0 +compress/channel_pack=0 +mipmaps/generate=false +mipmaps/limit=-1 +roughness/mode=0 +roughness/src_normal="" +process/channel_remap/red=0 +process/channel_remap/green=1 +process/channel_remap/blue=2 +process/channel_remap/alpha=3 +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=1 +svg/scale=1.0 +editor/scale_with_editor_scale=false +editor/convert_colors_with_editor_theme=false diff --git a/vr-project/project.godot b/vr-project/project.godot new file mode 100644 index 00000000..cc8306ef --- /dev/null +++ b/vr-project/project.godot @@ -0,0 +1,22 @@ +; Engine configuration file. +; It's best edited using the editor UI and not directly, +; since the parameters that go here are not all obvious. +; +; Format: +; [section] ; section goes between [] +; param=value ; assign values to parameters + +config_version=5 + +[application] + +config/name="you_done_it" +config/features=PackedStringArray("4.5", "Forward Plus") +config/icon="res://icon.svg" + +[xr] + +openxr/enabled=true +openxr/foveation_level=1 +openxr/foveation_dynamic=true +shaders/enabled=true diff --git a/vr-project/vr_base.tscn b/vr-project/vr_base.tscn new file mode 100644 index 00000000..5c688a67 --- /dev/null +++ b/vr-project/vr_base.tscn @@ -0,0 +1,11 @@ +[gd_scene format=3 uid="uid://ctf3dsro4aqon"] + +[node name="XROrigin3D" type="XROrigin3D"] + +[node name="XRCamera3D" type="XRCamera3D" parent="."] + +[node name="LeftController" type="XRController3D" parent="."] +tracker = &"left_hand" + +[node name="RightController" type="XRController3D" parent="."] +tracker = &"right_hand"