Skip to content

🔴 Record and ▶️ playback OpenVR device tracking/input data

License

Notifications You must be signed in to change notification settings

lebek/openvr-input-recorder

Repository files navigation

🔴 OpenVR Input Recorder

Tired of pulling your headset on everytime you change code?

  • Record VR actions once and replay each time you change code
  • Replay at 2x/4x to shorten test cycles
  • Test multiplayer VR on your own (and, in theory, without owning multiple headsets, but this isn't working yet)
  • Since tracking data is recorded/injected at the OpenVR driver level, it works with any game engine

Demo: https://www.youtube.com/watch?v=GaCRjhzMMMg

Installation

Download the latest binary from the release section. Close SteamVR (important!) and run the installer.

Usage

To record:

$ openvr-input-recorder.exe record my_recording

To replay:

$ openvr-input-recorder.exe replay my_recording

To replay at 2x speed:

$ openvr-input-recorder.exe replay my_recording 2

To loop at 2x speed:

$ openvr-input-recorder.exe loop my_recording 2

By default, openvr-input-recorder.exe will be installed at C:\Program Files\OpenVR-Input-Recorder\openvr-input-recorder.exe.

Tips

For testing/debugging

  • I recommend making recordings that leave your app in the same state at the start and end. Otherwise you'll have to put on the headset to reset the app.
  • Input recording/playback doesn't work very well for testing non-deterministic stuff, for obvious reasons

For testing multiplayer

  • You'll need 2 or more machines, each with a connected headset. Record to a file accessible by all machines (I use Google Drive). Launch your app on all machines and playback the recording(s) as you see fit.

About

🔴 Record and ▶️ playback OpenVR device tracking/input data

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published