Vr compatibity? #7649

Open
opened 2026-10-18 19:36:21 +00:00 by elimgolden · 8 comments
elimgolden commented 2026-10-18 19:36:21 +00:00 (Migrated from github.com)
Contributor

Imported from boykopovar/AnyPS5. Originally posted by elimgolden on 2026-10-18T19:36:21Z.


Hello, I was wondering if you guys plan to add vr game compatibly so pcvr users can experience psvr exclusives, thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5913360382 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649). Originally posted by [elimgolden](https://github.com/elimgolden) on 2026-10-18T19:36:21Z. --- Hello, I was wondering if you guys plan to add vr game compatibly so pcvr users can experience psvr exclusives, thanks!
MarcZX10 commented 2026-10-18 19:49:42 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T19:49:42Z.


The current code does not support PS VR2 gameplay or PC VR headset passthrough. libSceHmd2 reports that no headset is detected; reprojection and gaze exports, and the libSceVrTracker2 exports, are not implemented, while the VR setup dialog reports cancellation. That means titles which require VR setup are likely to skip it or stop rather than render stereoscopic output. I do not know of a scheduled VR implementation. If you have a specific PS VR title and expected PC headset/runtime in mind, please share them; that would help scope a concrete compatibility request.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254371933 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649#issuecomment-6254371933). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T19:49:42Z. --- The current code does not support PS VR2 gameplay or PC VR headset passthrough. `libSceHmd2` reports that no headset is detected; reprojection and gaze exports, and the `libSceVrTracker2` exports, are not implemented, while the VR setup dialog reports cancellation. That means titles which require VR setup are likely to skip it or stop rather than render stereoscopic output. I do not know of a scheduled VR implementation. If you have a specific PS VR title and expected PC headset/runtime in mind, please share them; that would help scope a concrete compatibility request.
elimgolden commented 2026-10-18 20:21:52 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by elimgolden on 2026-10-18T20:21:52Z.


Target Headset: Meta Quest 3 (via PCVR streaming / OpenXR)
Preferred Runtime: OpenXR
Target Title for Compatibility Scope: Horizon Call of the Mountain

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254697023 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649#issuecomment-6254697023). Originally posted by [elimgolden](https://github.com/elimgolden) on 2026-10-18T20:21:52Z. --- Target Headset: Meta Quest 3 (via PCVR streaming / OpenXR) Preferred Runtime: OpenXR Target Title for Compatibility Scope: Horizon Call of the Mountain
MarcZX10 commented 2026-10-18 20:27:40 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T20:27:40Z.


Thanks, that scopes the target. The current VR-related PRs (#7394, #7399 and #7463) cover setup-dialog status/close behavior and Tracker2's pre-initialization response; none adds OpenXR device/session setup, stereo swapchain output, pose tracking or reprojection. I do not have a change that would make Horizon Call of the Mountain playable yet.

Which host OS and OpenXR runtime do you want to target with the Quest 3 PCVR connection? That will determine which runtime integration this request needs.

AI-assisted: yes

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6254756908 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649#issuecomment-6254756908). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T20:27:40Z. --- Thanks, that scopes the target. The current VR-related PRs (#7394, #7399 and #7463) cover setup-dialog status/close behavior and Tracker2's pre-initialization response; none adds OpenXR device/session setup, stereo swapchain output, pose tracking or reprojection. I do not have a change that would make Horizon Call of the Mountain playable yet. Which host OS and OpenXR runtime do you want to target with the Quest 3 PCVR connection? That will determine which runtime integration this request needs. AI-assisted: yes
MarcZX10 commented 2026-10-18 22:53:53 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-10-18T22:53:53Z.


I added a short user-guide note in PR #7685: PS VR2 and PC VR headsets through OpenXR are not supported, and title startup without a detected headset should not be read as VR gameplay support. The note reflects the current Hmd2/reprojection implementation; it does not add headset support.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256183164 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649#issuecomment-6256183164). Originally posted by [MarcZX10](https://github.com/MarcZX10) on 2026-10-18T22:53:53Z. --- I added a short user-guide note in PR #7685: PS VR2 and PC VR headsets through OpenXR are not supported, and title startup without a detected headset should not be read as VR gameplay support. The note reflects the current Hmd2/reprojection implementation; it does not add headset support.
elimgolden commented 2026-10-18 22:58:02 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by elimgolden on 2026-10-18T22:58:02Z.


Ok thanks!

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256220683 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649#issuecomment-6256220683). Originally posted by [elimgolden](https://github.com/elimgolden) on 2026-10-18T22:58:02Z. --- Ok thanks!
T3cm0 commented 2026-10-18 23:57:44 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by T3cm0 on 2026-10-18T23:57:44Z.


I would like to work on this, and I'd rather agree on the shape before writing code. I have a PS VR2, Sony's PC adapter and a jailbroken PS5 to measure against.

Target. Windows first, SteamVR as the OpenXR runtime (through Sony's PlayStation VR2 App). Talking OpenXR rather than the headset directly means a Quest 3 over PC VR streaming would work the same way, which is what this issue asks for.

Proposed shape.

  • An opt-in VR backend selected by an environment variable; with it unset everything stays as today (no headset detected), so no title changes behaviour unless asked.
  • The OpenXR loader (Khronos OpenXR-SDK, Apache 2) as a submodule under 3rdparty/, built from source like the other dependencies.
  • By library: libSceHmd2 reports a connected headset with the runtime's panel size and field of view, and its reprojection exports present the two eye buffers to OpenXR swapchains; libSceVrTracker2 fills its results from the runtime's view and controller poses; libSceVideoOut accepts the HMD output modes (PPSA05666 asks for 0x2000F); libScePad's VR controller exports map to the Sense controllers through OpenXR actions; libSceVrSetupDialog stops reporting cancellation. Eye tracking would come from XR_EXT_eye_gaze_interaction where the runtime exposes it (Sony's PC adapter does not; third-party drivers do).

Method. The same as #7463 and the Hmd2 size queries: measure the console where a payload can (the pre-initialization behaviour is being swept now), and capture under AnyPS5 what titles pass to each export (PPSA05666's whole VR set-up sequence so far: VrTracker2 query and initialization, then Hmd2 reprojection initialize, mirroring and 0x2000F VR mode). What the console answers once a headset is attached cannot be measured from a payload, so the connected-headset path would be AnyPS5's own behaviour, documented as such in the debt files.

Order. Open the HMD video output and present black to the headset first (PPSA05666 stops at sceVideoOutOpen today), then head pose, then controllers, each as its own PR.

Does this fit how you'd want it done, and would you prefer a design issue or a draft PR to discuss the details? AI-assisted: yes.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256764784 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649#issuecomment-6256764784). Originally posted by [T3cm0](https://github.com/T3cm0) on 2026-10-18T23:57:44Z. --- I would like to work on this, and I'd rather agree on the shape before writing code. I have a PS VR2, Sony's PC adapter and a jailbroken PS5 to measure against. **Target.** Windows first, SteamVR as the OpenXR runtime (through Sony's PlayStation VR2 App). Talking OpenXR rather than the headset directly means a Quest 3 over PC VR streaming would work the same way, which is what this issue asks for. **Proposed shape.** - An opt-in VR backend selected by an environment variable; with it unset everything stays as today (no headset detected), so no title changes behaviour unless asked. - The OpenXR loader (Khronos OpenXR-SDK, Apache 2) as a submodule under `3rdparty/`, built from source like the other dependencies. - By library: `libSceHmd2` reports a connected headset with the runtime's panel size and field of view, and its reprojection exports present the two eye buffers to OpenXR swapchains; `libSceVrTracker2` fills its results from the runtime's view and controller poses; `libSceVideoOut` accepts the HMD output modes (PPSA05666 asks for 0x2000F); `libScePad`'s VR controller exports map to the Sense controllers through OpenXR actions; `libSceVrSetupDialog` stops reporting cancellation. Eye tracking would come from `XR_EXT_eye_gaze_interaction` where the runtime exposes it (Sony's PC adapter does not; third-party drivers do). **Method.** The same as #7463 and the Hmd2 size queries: measure the console where a payload can (the pre-initialization behaviour is being swept now), and capture under AnyPS5 what titles pass to each export (PPSA05666's whole VR set-up sequence so far: VrTracker2 query and initialization, then Hmd2 reprojection initialize, mirroring and 0x2000F VR mode). What the console answers once a headset is attached cannot be measured from a payload, so the connected-headset path would be AnyPS5's own behaviour, documented as such in the debt files. **Order.** Open the HMD video output and present black to the headset first (PPSA05666 stops at `sceVideoOutOpen` today), then head pose, then controllers, each as its own PR. Does this fit how you'd want it done, and would you prefer a design issue or a draft PR to discuss the details? AI-assisted: yes.
elimgolden commented 2026-10-19 00:06:39 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by elimgolden on 2026-10-19T00:06:39Z.


That sounds like a really good plan, if you want to do it I’m not stopping you but that sounds really hard, if you want some testers I would open a thread on the flat to vr modding server.

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6256848501 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649#issuecomment-6256848501). Originally posted by [elimgolden](https://github.com/elimgolden) on 2026-10-19T00:06:39Z. --- That sounds like a really good plan, if you want to do it I’m not stopping you but that sounds really hard, if you want some testers I would open a thread on the flat to vr modding server.
frankea commented 2026-10-19 18:22:50 +00:00 (Migrated from github.com)
Author
Contributor

Imported from boykopovar/AnyPS5. Originally posted by frankea on 2026-10-19T18:22:50Z.


@T3cm0, for the PPSA05666 part of your plan: over the last two days I took Horizon Call of the Mountain (PPSA05666, v01.004.011) through its PS VR2 set-up on a local tree (main 324e0e48e + #7658 + #7690 + #5499 plus environment-gated fakes, none of it meant as code for upstream) to see what the title passes and reads at each step of your order. It now renders its headset calibration screens and takes gaze and controller-beam input on them. Notes per library in your order; the layouts come from the title's own code (unwrapped eboot, radare2) and were then confirmed by runs. Today on plain main f52509acc it stops earlier, on sceHmd2ReprojectionSetAllowPositionalReprojection (details on #7658), because initialization now fails and the title carries on regardless.

libSceVideoOut, HMD output. The title opens sceVideoOutOpen(SCE_USER_SERVICE_USER_ID_SYSTEM, 32 /* HMD2_MAIN */, 0, nullptr) and registers two buffers with sceVideoOutRegisterBuffers2 in buffer category 16, attribute 4000 x 2040, pixel format 0x8100000022000000, tiling 0. Behind each buffer pointer is a 16-byte {entries pointer, count 2}, one entry per eye; each 0x80-byte entry holds AGC T#s, the first one the eye image (bases 0x8fd4020000 and 0x8fd6020000, 64 KiB aligned, 32 MiB apart, 4000 x 2040), then smaller per-eye tables. Registering the first T# base of each as the display buffer was enough for the title to continue; it then calls IsOutputSupported and ConfigureOutput with 0x2000F and sceHmd2ReprojectionEnableVrMode(0x2000F). I never saw it flip to that port itself.

libSceHmd2, per frame. After the set-up (SetAllowPositionalReprojection(2, 0x100000001, 1), the size queries, ReprojectionInitialize, SetMirroringOption, EnableMirroring, SetRenderConfig(1, 0, 0), EnableVrMode), every frame calls ReprojectionGetPredictedDisplayTime about three times, ReprojectionBeginFrame and ReprojectionSetParam once each, and GazeGetResultForFoveatedRendering once. sceHmd2GazeGetResult is only reached once the tracker returns a result (next point).

libSceVrTracker2. RegisterDevice(type, handle) is called three times: type 0 with handle 0xe010000 (the headset), type 2 with the left Sense controller's pad handle and type 1 with the right one's (the handles the title got from scePadOpen types 3 and 4, below). Then GetResult(param, result) for all three every frame, from one function (0x4b7f030 in the eboot):

  • param 0x30 bytes: +0 size 0x30, +4 device handle, +0x10 predicted display time.
  • result 0x1a8 bytes, as the title reads it: +0xc device status; +0x18 tracking state, where 0 resets to a default pose, 1 is what the title's tracking-status query reports to Unreal as Tracked and 2 as InertialOnly (controllers additionally go through a 10-entry table on +0x1c); +0x20 a quality/count the title divides by 9 and clamps to 1 (0 also selects the default pose); +0x60 position as three floats in metres in PS axes (-z forward; converted to Unreal as (-z, x, y) and multiplied by the world scale; the title drops positions with any component above 1000); +0x70 orientation quaternion (x, y, z, w; x < 0 looks down, y > 0 turns left); further 16-byte vectors at +0xb0, +0xf0 and +0x130 that I did not need.
  • GazeGetResult(param, result): param 0x10 bytes (+0 size, +4 headset handle, +8 display time), result 0x38 bytes: +4 status, +0x10 valid, +0x14..+0x1c gaze direction (-z forward), and two per-eye flags at +0x28 and +0x34. Gaze selection on the first calibration page only works when both flags are set (3 of 3 runs, 1 of 6 without).

libScePad, Sense controllers. The title opens them with plain scePadOpen(userId, 3, 0, nullptr) and (userId, 4, 0, nullptr), not scePadOpenExt, and on today's main keeps the INVALID_ARG code as the handle. scePadVrControllerReadState(handle, state) fills a 0x68-byte block (the title copies exactly that much as its previous state): +0 button dword with the standard SCE pad bits (left controller L3, L2, L1, triangle, square; right controller R3, options, R2, R1, cross, circle), +4 / +5 analog bytes (the second inverted), +8 / +9 bytes, +0xc touch mask, +0x10..+0x13 bytes, two float triples at +0x14 and +0x20 (motion, not the pose), +0x40 bit 0 = connected (the device is not registered without it), +0x60 a u64 timestamp. The pose comes from the tracker, not from this block. GetDeviceInformation(handle, info, 0) is 0x20 bytes (the title reads +0 and +4); GetTriggerEffectState(left, right, out) writes two dwords. Unreal's controller pose query (0x1109310) runs about 3.5 times per controller per frame and requires ReadState to succeed with the connected bit before it asks the tracker.

Rendering on the way. The first frame has a DB_RENDER_CONTROL 0x84 depth copy (#6304, #5499) followed by a 0x88 stencil copy (details on #5499); with both handled the title renders.

What the calibration flow needs (useful as an acceptance test): page 1 "set gaze tracking on or off" is confirmed with the gaze straight ahead plus cross; page 2 "select your playing position" with the right controller's beam (R2) on SEATED or STANDING plus cross; page 3 "calibrate your position" waits for a controller press, where I stopped. Two things to watch: with my HMD-port mapping the window only refreshed when the head pose changed, one pose behind (probably my mapping of bus 32, not the title); and about one run in three dies within 60 s on the title's async loading thread right after its third save-data mount once the devices register (an Unreal out-of-memory of 0x7FC0000000 bytes or "BulkData compressed header read error"), which I have not traced.

The reports with run tables, register dumps and the local diffs are available if any of this helps; I can also run your PRs against this title on the 4090 as they come.

AI-assisted: yes (Claude Code)

<!-- greyfinch-sync:boykopovar/AnyPS5:comment:6274215852 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/issues/7649#issuecomment-6274215852). Originally posted by [frankea](https://github.com/frankea) on 2026-10-19T18:22:50Z. --- @T3cm0, for the PPSA05666 part of your plan: over the last two days I took Horizon Call of the Mountain (PPSA05666, v01.004.011) through its PS VR2 set-up on a local tree (`main` 324e0e48e + #7658 + #7690 + #5499 plus environment-gated fakes, none of it meant as code for upstream) to see what the title passes and reads at each step of your order. It now renders its headset calibration screens and takes gaze and controller-beam input on them. Notes per library in your order; the layouts come from the title's own code (unwrapped eboot, radare2) and were then confirmed by runs. Today on plain `main` f52509acc it stops earlier, on `sceHmd2ReprojectionSetAllowPositionalReprojection` (details on #7658), because initialization now fails and the title carries on regardless. **libSceVideoOut, HMD output.** The title opens `sceVideoOutOpen(SCE_USER_SERVICE_USER_ID_SYSTEM, 32 /* HMD2_MAIN */, 0, nullptr)` and registers two buffers with `sceVideoOutRegisterBuffers2` in buffer category 16, attribute 4000 x 2040, pixel format 0x8100000022000000, tiling 0. Behind each buffer pointer is a 16-byte {entries pointer, count 2}, one entry per eye; each 0x80-byte entry holds AGC T#s, the first one the eye image (bases 0x8fd4020000 and 0x8fd6020000, 64 KiB aligned, 32 MiB apart, 4000 x 2040), then smaller per-eye tables. Registering the first T# base of each as the display buffer was enough for the title to continue; it then calls `IsOutputSupported` and `ConfigureOutput` with 0x2000F and `sceHmd2ReprojectionEnableVrMode(0x2000F)`. I never saw it flip to that port itself. **libSceHmd2, per frame.** After the set-up (`SetAllowPositionalReprojection(2, 0x100000001, 1)`, the size queries, `ReprojectionInitialize`, `SetMirroringOption`, `EnableMirroring`, `SetRenderConfig(1, 0, 0)`, `EnableVrMode`), every frame calls `ReprojectionGetPredictedDisplayTime` about three times, `ReprojectionBeginFrame` and `ReprojectionSetParam` once each, and `GazeGetResultForFoveatedRendering` once. `sceHmd2GazeGetResult` is only reached once the tracker returns a result (next point). **libSceVrTracker2.** `RegisterDevice(type, handle)` is called three times: type 0 with handle 0xe010000 (the headset), type 2 with the left Sense controller's pad handle and type 1 with the right one's (the handles the title got from `scePadOpen` types 3 and 4, below). Then `GetResult(param, result)` for all three every frame, from one function (0x4b7f030 in the eboot): - param 0x30 bytes: +0 size 0x30, +4 device handle, +0x10 predicted display time. - result 0x1a8 bytes, as the title reads it: +0xc device status; +0x18 tracking state, where 0 resets to a default pose, **1 is what the title's tracking-status query reports to Unreal as Tracked** and 2 as InertialOnly (controllers additionally go through a 10-entry table on +0x1c); +0x20 a quality/count the title divides by 9 and clamps to 1 (0 also selects the default pose); +0x60 position as three floats in metres in PS axes (-z forward; converted to Unreal as (-z, x, y) and multiplied by the world scale; the title drops positions with any component above 1000); +0x70 orientation quaternion (x, y, z, w; x < 0 looks down, y > 0 turns left); further 16-byte vectors at +0xb0, +0xf0 and +0x130 that I did not need. - `GazeGetResult(param, result)`: param 0x10 bytes (+0 size, +4 headset handle, +8 display time), result 0x38 bytes: +4 status, +0x10 valid, +0x14..+0x1c gaze direction (-z forward), and two per-eye flags at +0x28 and +0x34. Gaze selection on the first calibration page only works when both flags are set (3 of 3 runs, 1 of 6 without). **libScePad, Sense controllers.** The title opens them with plain `scePadOpen(userId, 3, 0, nullptr)` and `(userId, 4, 0, nullptr)`, not `scePadOpenExt`, and on today's `main` keeps the INVALID_ARG code as the handle. `scePadVrControllerReadState(handle, state)` fills a **0x68-byte** block (the title copies exactly that much as its previous state): +0 button dword with the standard SCE pad bits (left controller L3, L2, L1, triangle, square; right controller R3, options, R2, R1, cross, circle), +4 / +5 analog bytes (the second inverted), +8 / +9 bytes, +0xc touch mask, +0x10..+0x13 bytes, two float triples at +0x14 and +0x20 (motion, not the pose), **+0x40 bit 0 = connected** (the device is not registered without it), +0x60 a u64 timestamp. The pose comes from the tracker, not from this block. `GetDeviceInformation(handle, info, 0)` is 0x20 bytes (the title reads +0 and +4); `GetTriggerEffectState(left, right, out)` writes two dwords. Unreal's controller pose query (0x1109310) runs about 3.5 times per controller per frame and requires ReadState to succeed with the connected bit before it asks the tracker. **Rendering on the way.** The first frame has a `DB_RENDER_CONTROL` 0x84 depth copy (#6304, #5499) followed by a 0x88 stencil copy (details on #5499); with both handled the title renders. **What the calibration flow needs** (useful as an acceptance test): page 1 "set gaze tracking on or off" is confirmed with the gaze straight ahead plus cross; page 2 "select your playing position" with the right controller's beam (R2) on SEATED or STANDING plus cross; page 3 "calibrate your position" waits for a controller press, where I stopped. Two things to watch: with my HMD-port mapping the window only refreshed when the head pose changed, one pose behind (probably my mapping of bus 32, not the title); and about one run in three dies within 60 s on the title's async loading thread right after its third save-data mount once the devices register (an Unreal out-of-memory of 0x7FC0000000 bytes or "BulkData compressed header read error"), which I have not traced. The reports with run tables, register dumps and the local diffs are available if any of this helps; I can also run your PRs against this title on the 4090 as they come. AI-assisted: yes (Claude Code)
Sign in to join this conversation.
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5#7649
No description provided.