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

SteamVR breaks rendering Gizmos #1067

Closed
Erhannis opened this issue Sep 2, 2022 · 2 comments
Closed

SteamVR breaks rendering Gizmos #1067

Erhannis opened this issue Sep 2, 2022 · 2 comments

Comments

@Erhannis
Copy link

Erhannis commented Sep 2, 2022

Windows 10
Unity 2022.1.14f1
SteamVR Plugin 2.7.3 (sdk 1.14.15)

I've noticed that when I have a project with SteamVR in it, and the game is able to connect to the headset, then OnDrawGizmos is no longer called (and Debug.DrawLines no longer show up). It's still called from the Scene view, but not from the Game view. If I disconnect my headset so the game can't connect to it, then Gizmos and Debug lines show up fine.

Here's a video:

https://youtu.be/3QaXmOQFvrQ

(I forgot to mention the OnDrawGizmos thing specifically in the video. Also, FYI, Gizmos / Debug lines are missing in normal VR scenes, too.)

@Erhannis
Copy link
Author

Erhannis commented Sep 3, 2022

To anyone in my shoes - I still haven't figured out the problem with Gizmos or Debug, BUT both Fast Line Renderer and IMDraw work IF you switch to multi pass rendering. (Stop running the game. Go to: Build Settings > Player Settings > XR Plug-in Management (in the left list) > OpenVR or OpenXR > Stereo Rendering Mode or w/e., set it to Multi Pass.) Maybe depends on system details.

@zite
Copy link
Collaborator

zite commented Feb 8, 2023

Since other packages work, I believe this is a unity issue with single pass rendering. Closing for now.

@zite zite closed this as completed Feb 8, 2023
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

No branches or pull requests

2 participants