INedelcu / RayTracingSRP

A custom Scriptable Render Pipeline using ray tracing only.
21 stars 0 forks source link

Integrate openXR get complete black #3

Open HybridEmotion opened 1 year ago

HybridEmotion commented 1 year ago

Hello,

Import OpenXR packages(v1.70) into this project and run through Oculus Quest 1. Get a black screen in Quest, while the game view is working.

The other problem is, when select camera, scene view becomes purple, while game view is working.

Can you give me some suggestions? Is it possible that custom srp needs some update for vr?

Thank you!

PS: I found hdrp_dxr_dlss_vr. I feel I might ask you too many questions.

HybridEmotion commented 1 year ago

My graphic card is 3070 Ti

INedelcu commented 1 year ago

Sorry, but I'm not familiar with VR.

HybridEmotion commented 1 year ago

@INedelcu I found "importing com.unity.render-pipelines.core" make openxr get black screen. This does not happen in version 2020 and 2021. It begins from version 2022.

  1. I forked a working custom vr srp https://github.com/dsmeathersFireproof/TinyVRSRP.
  2. Upgrade it to version 2022 and switch to openxr . In this version, it display right result in oculus quest 1. https://github.com/HybridEmotion/TinyVRSRP/commit/5b21aab2022cc28e62d616db3fc09c0b0888ec92
  3. I import "com.unity.render-pipelines.core" without actual using any api from it. And get black screen in vr. If this package is removed, everything works again. https://github.com/HybridEmotion/TinyVRSRP/commit/5b21aab2022cc28e62d616db3fc09c0b0888ec92.

But it seems that I have to use 2022 or 2023, since RayTracingInstanceCullingConfig is implemented in version 2022.

I think I should post question in unity forum.

HybridEmotion commented 1 year ago

https://forum.unity.com/threads/black-screen-after-import-package-com-unity-render-pipelines-core-in-2022-2-16f1.1429318/

I am not sure if this is right section to post this thread