Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--release/windows/batch/blender_oculus.cmd10
-rw-r--r--release/windows/batch/oculus.json7
-rw-r--r--source/creator/CMakeLists.txt2
3 files changed, 19 insertions, 0 deletions
diff --git a/release/windows/batch/blender_oculus.cmd b/release/windows/batch/blender_oculus.cmd
new file mode 100644
index 00000000000..39dcfebcbf1
--- /dev/null
+++ b/release/windows/batch/blender_oculus.cmd
@@ -0,0 +1,10 @@
+@echo off
+echo Starting blender with oculus openXR support, this assumes the oculus runtime
+echo is installed in the default location, if this is not the case please adjust the
+echo path inside oculus.josn
+echo.
+echo please note that openXR support is EXTREMELY experimental at this point
+echo.
+pause
+set XR_RUNTIME_JSON=%~dp0oculus.json
+blender \ No newline at end of file
diff --git a/release/windows/batch/oculus.json b/release/windows/batch/oculus.json
new file mode 100644
index 00000000000..6df75041ca0
--- /dev/null
+++ b/release/windows/batch/oculus.json
@@ -0,0 +1,7 @@
+{
+ "file_format_version": "1.0.0",
+ "runtime": {
+ "library_path": "c:\\Program Files\\Oculus\\Support\\oculus-runtime\\LibOVRRT64_1.dll"
+ },
+ "api_layer": { }
+}
diff --git a/source/creator/CMakeLists.txt b/source/creator/CMakeLists.txt
index 7ba8a6867ca..7637f327617 100644
--- a/source/creator/CMakeLists.txt
+++ b/source/creator/CMakeLists.txt
@@ -862,6 +862,8 @@ elseif(WIN32)
${CMAKE_SOURCE_DIR}/release/windows/batch/blender_debug_gpu_glitchworkaround.cmd
${CMAKE_SOURCE_DIR}/release/windows/batch/blender_debug_log.cmd
${CMAKE_SOURCE_DIR}/release/windows/batch/blender_factory_startup.cmd
+ ${CMAKE_SOURCE_DIR}/release/windows/batch/blender_oculus.cmd
+ ${CMAKE_SOURCE_DIR}/release/windows/batch/oculus.json
DESTINATION "."
)