Repository navigation
What about VR support? #26
Replies: 6 comments 4 replies
|
Thanks! I hope you're enjoying the 3D mode! VR support would be really interesting, but even with AI tools, it's far from a simple task. It would require significant changes to the renderer, camera, controls and user interface. I also don't own a VR headset at the moment, so I wouldn't be able to properly test it myself. It's not currently on the roadmap, but I'll definitely keep the idea in mind for the future! |
|
I agree with the proposed stereoscopic rendering approach. An optional Side-by-Side (SBS) rendering mode, with adjustable eye separation and convergence, could be a good starting point for VR support. There are already mechanisms for displaying stereoscopic content without changing the existing gameplay, UI or controls:
Looking at the current Renderer3D::render() implementation, rendering the scene twice without substantial optimization could potentially be sufficient on a powerful desktop GPU. Supporting less powerful GPUs would likely require separating shared frame preparation from per-eye rendering to avoid duplicating unnecessary work. I’ve been playing OpenD2K natively on Quest 3. The Reimagined graphics look impressive, but even monoscopic rendering can be demanding enough to affect the responsiveness of the surrounding Horizon OS interface. However, simpler models, reduced effects and shared rendering stages might eventually make native stereoscopic rendering practical as well. @Alexpop2 Are there any specific limitations in the current 3D renderer that would make this initial two-pass approach particularly difficult, apart from the additional GPU workload and keeping both views consistent within the same frame? |
|
AI tells me Yes. SteamVR itself has a built-in “null driver” that emulates a headset and controllers without any physical VR hardware. It lets SteamVR start and your OpenVR/SteamVR game run, rendering the headset view into a normal desktop window. May be you can start without a headset =) |
|
@rodion-dolin that looks great, and you got there the same night we did 🙂 We merged geometric stereo into dev overnight: Options → Graphics → 3D → Stereo 3D (VR) with side by side (squeezed / true aspect) and top-bottom, eye separation, convergence and world scale sliders, swap eyes, the HUD in both eyes and the mouse working in either half. We'll share a Windows test build here soon so you and @PKgamer425 can try it in SteamVR Theater. If your branch handles the sandstorm depth better, a PR would be very welcome. We'd also love to compare notes on Quest performance and the Horizon OS stereo window. |
|
@rodion-dolin @PKgamer425 the Windows test build is up: https://github.com/OpenD2K/opend2k/releases/tag/v0.0.6-test1 Options → Graphics → 3D, then Stereo 3D (VR): Side by side / Side by side (true aspect) / Top-bottom, with Eye separation, Convergence, World scale and Swap eyes. It's a test build (pre-release), so the normal update check won't offer it. What would help most: your headset and GPU, the frame rate, which slider values feel right, whether the sandstorm depth looks right (rodion, you mentioned it needed work in your branch), and anything uncomfortable for the eyes. Thanks for testing! |


Uh oh!
There was an error while loading. Please reload this page.
One of my favorite game Dune2k now in 3d, but what about VR support? Should be easy with AI nowadays ...
All reactions