Repository navigation
Releases
MetalVR 0.2.5
MetalVR 0.2.5 makes SteamVR games work on streamed headsets (the Quest family and the Steam Frame), fixes how Touch controllers sit in SteamVR, and lets MetalSharp's MetalFX toggle upscale a VR game's eyes.
Every change in this release is by @multision. Thank you!
New
- MetalFX upscaling in VR. MetalSharp's MetalFX Spatial toggle used to reach only a VR game's desktop mirror. Now the game renders its eyes smaller by the same factor, and
metalvrdscales them up to the headset's size with MetalFX. Only the game's own view is scaled; SteamVR's dashboard and overlays are not.METALVR_METALFX_SPATIAL=<factor|on|off>in the game's environment overrides the toggle. How it works and when it helps: METALSHARP_WINE.md. By @multision.
Fixed
- SteamVR on a streamed headset shows the game (#8, by @multision). A Quest streaming a SteamVR game connected and tracked but received no video: every session ended with "headset disconnected (0 frames sent, N dropped)". Each frame now names the tracking sample it was rendered with, and the headset reprojects from it.
- The picture no longer swims while you turn your head on a streamed headset in SteamVR. SteamVR predicted head poses that ALVR had already predicted, so the headset reprojected from a pose it never sent. Controllers still report their velocities, which games read for throws. By @multision.
- The two eyes fuse on a streamed headset in SteamVR (#9, by @multision). SteamVR kept rendering with the model's default fields of view and eye distance, because a streamed headset reports its own only after it connects. On a Quest 3 this looked doubled. SteamVR now gets the headset's own as soon as they arrive.
- Touch controllers sit right in SteamVR. The driver took the wrong angle off SteamVR's grip, so controllers looked tilted and offset at the wrist. This applies to every Touch controller: CV1, Rift S, Quest 2, Touch Plus and Touch Pro. By @multision.
Install
Unpack the release and run bin/metalvr-rift install. It installs into ~/.metalsharp/metalvr-runtime, where MetalSharp's "Start VR Server" finds it. Restart SteamVR after installing so it loads the new driver.
Only the Rift CV1 has been tested on real hardware. Each headset's guide is in docs/headsets.
MetalVR 0.2.1
MetalVR 0.2.1 fixes a crash that ended metalvrd as soon as it found a PlayStation VR2.
Fixed
- PlayStation VR2:
metalvrdno longer ends withioDataSetLengthException(#7). On some macOS versions, the buffer macOS gives each of the headset's USB endpoints already has its full size, and macOS refuses any change to it ("Length can not be modified for ioData buffer"). MetalVR changed it anyway, which ended the server right after it found the headset. Now it only changes a buffer's size where macOS allows it, and logs it if not.
The PlayStation VR2 is still checked in code only, without the headset. If you have one, a report of how far it gets is very welcome. Start at its guide, docs/headsets.
Install
Unpack the release and run bin/metalvr-rift install. It installs into ~/.metalsharp/metalvr-runtime, where MetalSharp's "Start VR Server" finds it. Nothing else changes from 0.2.0.
MetalVR 0.2.0
MetalVR 0.2.0 adds support for ten more headsets, built from their specifications and the open drivers that support them. The Oculus Rift CV1 is still the only headset tested on real hardware: every other one is checked in code, without the headset, and reports from owners are very welcome.
Each headset now has its own setup guide, with what you need, setting up and playing, what is checked in code and by which test, and what is still unknown: start at docs/headsets.
New headsets
| Headset | How it reaches the Mac | Guide |
|---|---|---|
| Oculus Rift S | DisplayPort and USB; its position from its own cameras through Basalt | RIFT_S.md |
| Meta Quest 1, 2, 3, 3S, Pro | streamed with ALVR over Wi-Fi or USB, each recognized as itself | QUEST.md |
| Valve Steam Frame | streamed with ALVR's client, patched by MetalVR to run there (scripts/build-alvr-client.sh builds the APK) |
STEAM_FRAME.md |
| Valve Index | DisplayPort and USB; positions from the base stations through libsurvive | VALVE_INDEX.md |
| HTC Vive, Vive Pro, Vive Pro 2 | HDMI or DisplayPort and USB; positions from the base stations through libsurvive | HTC_VIVE.md |
| Sony PlayStation VR2 | Sony's PC adapter; the headset tracks itself; Sense controllers over Bluetooth | PSVR2.md |
The release has a script for each family: bin/metalvr-rift (Rift CV1 and Rift S), bin/metalvr-lighthouse (Index and the Vives) and bin/metalvr-psvr2.
Also new
- Hand tracking as
XR_EXT_hand_trackingand SteamVR hand skeletons, from headsets that track hands. - The Touch Plus and Steam Frame controller profiles, and each headset's own controllers in OpenXR and SteamVR.
- ALVR's foveated encoding (
--foveated-encoding). - Passthrough in the home for the Index and the Vives (
--passthrough). - The headset's home shows the MetalVR logo.
Requirements
As for 0.1.0: an Apple silicon Mac on macOS 15 or later, MetalSharp with its Windows Steam, and for SteamVR games, SteamVR in that Steam and a MetalSharp-Wine runtime whose Mullion is aaf2tbz/mullion@998c32a6 or later. Each headset's own needs are in its guide.
tar -xzf metalvr-0.2.0-macos-arm64.tar.gz
metalvr-0.2.0-macos-arm64/bin/metalvr-rift installKnown limits
- Only the Rift CV1 has been tested on real hardware.
- The Rift S's, the PlayStation VR2's and the Sense controllers' positions are rotation-only where no open driver tracks them; each guide lists its own gaps.
- 32-bit games, audio, and Vulkan and OpenGL games are not supported. BeamNG.drive crashes in its graphics driver.
metalvrdand its libraries are ad-hoc signed;installremoves the download's quarantine so macOS runs them.
Contents and licenses
metalvr-0.2.0-macos-arm64.tar.gz holds metalvrd (arm64) with ALVR's server_core, OpenHMD's Rift tracker and libsurvive built in; Basalt and oneTBB as libraries it loads; the helper scripts; the Windows OpenXR runtime and SteamVR driver; OpenComposite; and the licenses of what is redistributed: MetalVR (MIT), ALVR (MIT), OpenHMD (BSL-1.0), libsurvive (MIT), hidapi (BSD), Basalt (BSD-3-Clause) with OpenCV, fmt, Sophus, cereal, Eigen, OpenGV, CLI11 and magic_enum, oneTBB (Apache-2.0), and OpenComposite (GPL-3.0). Its SHA-256 is in metalvr-0.2.0-macos-arm64.tar.gz.sha256.
MetalVR 0.1.0
MetalVR's first release: an open-source OpenXR runtime and VR server for Apple silicon Macs, for PC VR games running under MetalSharp's Wine with Mullion.
Oculus Rift CV1
A Rift CV1 on the Mac's own HDMI and USB, with no Oculus software:
- its display, with the CV1's lens and colour-fringing correction, at 90 Hz;
- head rotation from its IMU, and position tracking for the headset and both Touch controllers with up to four Rift Sensors (USB 3 or USB 2);
- Touch controller buttons, triggers, thumbsticks and haptics;
- SteamVR, through MetalVR's own SteamVR driver: the headset, the controllers, and the sensors as base stations. ABE VR and Raw Data play through it;
- OpenXR games, directly.
bin/metalvr-rift does each step: install, display (lets macOS show the headset's display), setup (SteamVR, and MULLION_METALVR=1 for the Steam prefix), start/stop, steamvr, and game APPID. Start with docs/RIFT_CV1.md.
tar -xzf metalvr-0.1.0-macos-arm64.tar.gz
metalvr-0.1.0-macos-arm64/bin/metalvr-rift installRequirements
- An Apple silicon Mac on macOS 15 or later, with an HDMI port of its own for the Rift.
- MetalSharp with its Windows Steam. SteamVR games also need SteamVR installed in that Steam, and a MetalSharp-Wine runtime whose Mullion is aaf2tbz/mullion@998c32a6 or later (MetalSharp-Wine's
src/mullionpins it from metalsharp/MetalSharp-Wine#56). With an older Mullion, SteamVR and its games are black in the headset.
Also in this release
- The ALVR driver for standalone headsets (ALVR v20.14.1's
server_core), tested against a simulated headset only. - OpenComposite's
openvr_api.dllfor OpenVR games without SteamVR.
Known limits
- The Rift CV1 is the only headset tested on real hardware.
- 32-bit games, hand tracking and audio are not supported. Vulkan and OpenGL games are not either.
metalvrdis ad-hoc signed;metalvr-rift installremoves the download's quarantine so macOS runs it.
Contents and licenses
metalvr-0.1.0-macos-arm64.tar.gz holds metalvrd (arm64), the helper scripts, the Windows OpenXR runtime and SteamVR driver, OpenComposite, and the licenses of what is redistributed: MetalVR (MIT), ALVR's server_core (MIT), OpenHMD's Rift tracker (BSL-1.0), and OpenComposite (GPL-3.0). Its SHA-256 is in metalvr-0.1.0-macos-arm64.tar.gz.sha256.