Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Indemonai_Games · Apr 27, 2019 at 04:24 PM · errorvrhdr

HDRP + VR not working in 2019.1.0f2?

Hi,

I've been working on a Non-VR + VR game for the past year. It worked great in 2018.3, using the Post-Processing Volume. I decided to update to 2019.1 to make use of the HDRP features, but whenever I try to run the game in VR, I get this error:

 IndexOutOfRangeException: Index was outside the bounds of the array.
 UnityEngine.Experimental.Rendering.HDPipeline.LightLoop.BuildGPULightListsCommon (UnityEngine.Experimental.Rendering.HDPipeline.HDCamera hdCamera, UnityEngine.Rendering.CommandBuffer cmd, UnityEngine.Rendering.RenderTargetIdentifier cameraDepthBufferRT, UnityEngine.Rendering.RenderTargetIdentifier stencilTextureRT, System.Boolean skyEnabled) (at Library/PackageCache/com.unity.render-pipelines.high-definition@5.13.0-preview/Runtime/Lighting/LightLoop/LightLoop.cs:2361)

Which is referencing this code in LightLoop.cs:

 for (int eyeIndex = 0; eyeIndex < 2; eyeIndex++)
 {
     **m_LightListProjMatrices[eyeIndex] = CameraProjectionStereoLHS(hdCamera.camera, (Camera.StereoscopicEye)eyeIndex);**
     m_LightListProjscrMatrices[eyeIndex] = temp * m_LightListProjMatrices[eyeIndex];
     m_LightListInvProjscrMatrices[eyeIndex] = m_LightListProjscrMatrices[eyeIndex].inverse;
 }

(** = the exact line where the error is thrown)

After this, I tried creating a new project and added OpenVR, HDRP and some Post-Processing effects just to test it out, and the same error was being thrown. I removed all the Post-Processing effects and the error still persisted.

Mind you, my Vive is still being tracked as I can see the camera moving around in the Editor Window when I move the Vive, but the Game window is completely black, and the error is thrown at almost (or all?) frames.

Is VR just not compatible with HDRP right now? Can I even go back to using Post-Processing Volumes in 2019.1? (I tried adding one but it was not doing anything, but that might just be because I still had HDRP on). If it's not compatible right now I guess I can just go back to that until things change. Both Non-VR and VR versions of the game run on the same build, so making another build without HDRP is not the solution I am looking for.

Anyone found a fix for this yet if there is one?

Thank you in advance!

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

2 Replies

· Add your reply
  • Sort: 
avatar image
1
Best Answer

Answer by grahamwell · Apr 28, 2019 at 02:15 PM

I had the same problem with the demo project. I've just upgraded it to 2019.2.a013 and updated the HDRP from the package manager. The process itself produced unpleasant bugs, but after a restart, all seems to be working. The black screen and LightLoop messages are gone.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Indemonai_Games · May 03, 2019 at 09:02 AM 0
Share

Hi grahamwell, Sorry for the late reply, I've been packing and moving the last few days. That is good to hear! I will try updating to 2019.2.a013 and see how it goes. I'd rather not use unstable versions of Unity, but seeing as we are talking about a preview version of a package, there's not much difference lol, so if it does work out for me, I will keep working on 2019.2.a013 until a new official release is out. I will only be able to test this out in 4 or 5 days, so I will update then. Thank you for your input!

avatar image Indemonai_Games Indemonai_Games · May 06, 2019 at 05:40 PM 0
Share

Yep! That did it! Anti-aliasing doesn't seem to be working (it's not mentioned on their list of unsupported features at GitHub though) but other than that, it's working as expected. Thanks!

avatar image
0

Answer by JDelekto · Apr 27, 2019 at 04:57 PM

According to the notes for the Scriptable Rendering Pipeline on Github, you can only use Single-Pass Stereo rendering for Unity 2019.1 and 2019.2 with HDRP. Is this perhaps why you are having an issue?

Comment
Add comment · Show 3 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Indemonai_Games · Apr 27, 2019 at 05:04 PM 0
Share

Hi, thanks for the reply. Sorry should have been clear on that, I did check that and Single Pass is active. Plus, it also says it defaults to Single Pass automatically when in VR.

avatar image JDelekto Indemonai_Games · Apr 27, 2019 at 05:50 PM 0
Share

O$$anonymous$$, thank you for clearing that up, wasn't sure if you had anything custom going on not default. I would raise an issue on the Github with a simple example to duplicate in case there is an outstanding bug. You're more likely to get a faster fix.

avatar image Indemonai_Games JDelekto · Apr 28, 2019 at 02:56 AM 0
Share

Thank you for the advice, yeah, I think I will do that!

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

167 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

APK Can't be open in Android system microphone 0 Answers

Assertion failed error when using Oculus headset 0 Answers

Unfortunately, "GameName" has stopped. 0 Answers

Cardboard VR's view is not centered 1 Answer

The type or namespace name 'ClickedEventArgs' could not be found (are you missing a using directive or an assembly reference?) its part of the steamvr_teleport script.how do i solve it? 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges