SAMPLE_TEXTURECUBE_ARRAY_LOD broken in VR when using Single Pass Instanced

Hi everyone,

For the past 1.5 years, sampling the sky has been broken in HDRP VR when using Single Pass Instanced, affecting multiple parts of HDRP and causing multiple features to be broken. I have submitted a bug report (IN-29319) on January 19th 2023 which was reproduced by QA (OXRB-124) on February 20th 2023, but have heard nothing since then. I’ve also made multiple discord & forum posts about this issue and raised this to @chap-unity as a high user pain issue, as this has stopped me from being able to make standalone builds on any Unity version newer than 2021.

To work around this, I have been running a very old 2021 HDRP fork which I’ve modified to be compatible with the 2023.1 editor.

The exact commit that broke this behavior is 970b4a12c9fd8c3c6cbfb2b9d9d59fca48f9b9baUnify XR code into SRP Core [22.1] (#3557)”.

If you check out at 1 commit before (January 31, 2022), at 63d466bb8c44104d84230a3b51fe1e0526c77824, you will get the following result (expected behavior):

But if you check out 1 commit later (January 31, 2022), at 970b4a12c9fd8c3c6cbfb2b9d9d59fca48f9b9ba, you will get the following result (unexpected behavior):

This issue still reproduces in current HDRP master / 2023.2. The OpenXR package version does not impact this issue, and the issue reproduces on other users systems as well.

Issue does not reproduce in:

  • Multi Pass
  • Mock HMD
  • Editor with HMD
  • Standalone build without HMD

But does reproduce in:

  • Standalone build with HMD (Single Pass Instanced)

Reproduction project (needs to be a standalone build, run with HMD)

Reproduction standalone build (run with HMD)
https://hyperproject.net/download/hdrp_spi_hdri_standalone.zip

2 Likes

I’ll poke around and see why it has been untouched for 6 month, I agree it’s way too long.

1 Like

It has been another month without a response, any updates? Thanks!

Yup, sorry for the delay, I can confirm you it has been moved to the HDRP team so it should hopefully be taken care of in the next weeks.
At least it’s not in the understaffed XR team anymore but still can’t promise you anything about the when.

Tracking link

1 Like

It’s all good, thanks for your time. Looking forward to the fix.

1 Like

It has been another month, any updates? Issue tracker feedback:

“Regression : no”

  • This is QA failing as usual, this is a regression first seen in 970b4a1

“Actual results: the Sphere does not have reflections on Quest 1/2”

  • This is also QA failing as usual, the sphere does have reflections but the sampler output is wrong

Issue does not reproduce on a new project

  • This is also QA failing as usual, it does reproduce on new projects

Hey @m0nsky , so, sorry again, but it hasn’t been taken care of yet.
Will do my best to make it a priority given its age.
I spoke with Customer QA and they agree on your takes about the bug, so I updated the description on the bug itself.

Thanks again for your patience :expressionless:

2 Likes

@chap-unity We have been unable to upgrade since December 2022 (Unity 2022.1.24f1) because of this bug. Hope it can be addressed so that we can take advantage of all the new features and functionalities. Really appreciate it if you can help us to get this resolved. I believe the category it has been filed in (OpenXR) is incorrect, since it seems from the changelog to the next version (after 2022.1.24f1) that it might be HDRP related - but we are not sure. Thanks!!

Hey, as you might have noticed on other posts, we are lagging a bit behind on XR issues (mostly due to having very few people on this team :/)

Still can’t promise anything but from what I can see on the report on our side, this is supposed to be prioritized under the next bug fixing sprint.

1 Like

Thank you very much!

Hi, sorry for the delay,

for the initial issue reported on this thread (sky reflection), the fix is available and have landed in latest 2023.3, backport are in progress. Fix is this line:

1 Like

Thanks Seb, I appreciate it.
Just tried this on actual HMD by manually porting the fix to HDRP 15.0.3 and can confirm the issue is fixed.

1 Like