Skip to content

Fix distorted rendering on PSVR2.#134

Open
s-ilent wants to merge 1 commit intosd805:mainfrom
s-ilent:fix-psvr2-rendering
Open

Fix distorted rendering on PSVR2.#134
s-ilent wants to merge 1 commit intosd805:mainfrom
s-ilent:fix-psvr2-rendering

Conversation

@s-ilent
Copy link
Copy Markdown

@s-ilent s-ilent commented Aug 26, 2025

I spent a while debugging and testing this and it seems to work fine, but I can't test on other headsets and I am also not super familiar with OpenVR.

Essentially, on PSVR2, rendering is incorrect using the raw values provided by the driver. This is only a little uncomfortable to look at, and is mainly noticeable on weapons.
Originally, I thought the issue was that the viewmodels weren't being transformed correctly due to some quirk of the PSVR2 controller position, but it turns out the whole view is stretched vertically. You can see it in screenshots.

L4D2, PSVR2, before change

With this change, there is no stretching.

L4D2, PSVR2, after change

This change adjusts the vertical tangent to match the aspect ratio of the render texture. Changing the render texture size also works, but breaks post-effects like the pause menu blur.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant