Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Workaround for PCVR depth submission #685

Merged
merged 1 commit into from
Apr 19, 2024
Merged

Conversation

mikeskydev
Copy link
Member

This is a partial fix for the issue discussed in #420

The issue was coming from RenderWrapper.cs, where an offscreen render texture is created so it can be reused and rescaled for performance when using the video recording tools. I'm not entirely sure why this is breaking our XR pipeline, as it appears the render texture is created properly.

As a stopgap, we keep using the normal camera, but switch to the offscreen render during recording.

This may be magically resolved when we upgrade Unity versions.

image

@mikeskydev mikeskydev changed the title Fix/depth submission Workaround for PCVR depth submission Apr 10, 2024
@mikeskydev
Copy link
Member Author

Confirmed working by @mbucchia, thanks!

image

@mikeskydev mikeskydev merged commit ee2c821 into main Apr 19, 2024
42 checks passed
@mikeskydev mikeskydev deleted the fix/depth-submission branch April 19, 2024 14:31
@mikeskydev mikeskydev added the bugfix Something has been fixed label Apr 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Something has been fixed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrong depth buffer is submitted to OpenXR
1 participant