[Bf-blender-cvs] [d99d15f48d6] soc-2019-openxr: Add helper batch file for testing on oculus rift.

Ray Molenkamp noreply at git.blender.org
Wed Jul 17 00:43:14 CEST 2019


Commit: d99d15f48d6a56787c494df2cff340834ae6af09
Author: Ray Molenkamp
Date:   Tue Jul 16 16:41:44 2019 -0600
Branches: soc-2019-openxr
https://developer.blender.org/rBd99d15f48d6a56787c494df2cff340834ae6af09

Add helper batch file for testing on oculus rift.

===================================================================

A	release/windows/batch/blender_oculus.cmd
A	release/windows/batch/oculus.json
M	source/creator/CMakeLists.txt

===================================================================

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 @@
+ at 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 "."
   )



More information about the Bf-blender-cvs mailing list