Add helper batch file for testing on oculus rift.
authorRay Molenkamp <github@lazydodo.com>
Tue, 16 Jul 2019 22:41:44 +0000 (16:41 -0600)
committerRay Molenkamp <github@lazydodo.com>
Tue, 16 Jul 2019 22:41:44 +0000 (16:41 -0600)
release/windows/batch/blender_oculus.cmd [new file with mode: 0644]
release/windows/batch/oculus.json [new file with mode: 0644]
source/creator/CMakeLists.txt

diff --git a/release/windows/batch/blender_oculus.cmd b/release/windows/batch/blender_oculus.cmd
new file mode 100644 (file)
index 0000000..39dcfeb
--- /dev/null
@@ -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 (file)
index 0000000..6df7504
--- /dev/null
@@ -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": { }
+}
index 7ba8a6867ca87cd4f58bf4ce3f757fcc9d379602..7637f32761795c616c8da4061d20c67cc84b1721 100644 (file)
@@ -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 "."
   )