Minimal DirectX12 LibOVR oculus example from scratch using microsoft msvc++ compiler, just installing visual studio
Steps to compile and run:
- Install visual studio 2019 (if different, need to change the Compile.bat script)
- Clone repo
- Open command prompt in repo
- Run:
.\Compile.bat
- While Oculus Headset is connected, Run:
.\BasicOVR.exe
To Debug:
- Run:
.\Compile.bat
- Run:
devenv .\BasicOVRDebug.exe
- While Oculus Headset is connected, When Visual Studio is running, press
F11
Controls
Esc
to pause/unpauseAlt + F4
to quit, or just close it from task manager
Improvements to make:
- All the same improvements as https://github.com/yosmo78/Win32DirectX12-FPSCamera plus things i didn't implement from in there
- Add a Retry Create Headset loop for when headset is disconnected. Also need logic to handle if headset is unplugged from one GPU but then plugged into another gpu
- Hand tracking (controllers) and better head tracking
- Projective time warping
- Compare render speed differences of storing all vertex buffers in the same buffer and then accessing them with different views and store them all in separate buffers (same with index buffer vertex buffer combos)