• ⚠️ Mod Release Rules now apply to this board.

    All mods must include a license, source code (for executable mods), and proper attribution.

    Read the full rules here before posting.

User Interface KSA_XR: An OpenXR mod for Kitten Space Agency

Ybalrid

New Member
Feb 13, 2026
5
3
KSA_XR is my humble attempt at enabling some amount of VR functionality inside Kitten Space Agency.

Currently is does not do a lot, but it allows to display the game inside a VR headset. It currently renders only display one monoscopic view of the game (no 3D effect for things close to the camera yet), with working head tracking.

This mod requires the StarMap mod loader.

This is extremely early, and it will require a bunch of work to actually take a bit more control on the game's rendering to do this properly in stereo. But this is already fun to experience for a few minutes so I thought why not share it!

A video presentation of how it currently works is available here

Things you need to know in this v0.1
  • The OpenXR runtime must be running before you start the game
  • You must disable vsync in the game's options, if not the rendering will be locked to you monitor refresh rate, which is likely lower than your VR headset
  • It should be compatible with any OpenXR 1.0 runtime that supports the `VK_KHR_vulkan_enable` extension
  • While the XrSession is running, geometry in the game window will appear distorted. This is due to how the Projection Matrix is patched for rendering to VR. You could make the aspect ratio of the game window taller and skinner to "fix" it on screen if you so desire.
  • You can hop in and out of VR by cliking the "Start/End XrSession" in the KSA_XR window on screen
  • The resolution slider on the KSA_XR window only affect the size of the rendering swapchain for communicating with the XR runtime. Basically this is simply the alloation of memory and the size of the images sent for the eye buffers. Since we're not rendering the game specifically for VR (yet) this does not affect the rendering load on the game, it only affect how much VRAM is used for OpenXR
I have put this in the "User Interface" prefix, unsure if this is appropriate.
 
Last edited:
  • Like
Reactions: SSDeveloper