HDRP single-pass instanced rendering not working

Avatar
  • updated
  • Unity's Fault

Hello, I have gone through potential fixes on other posts in this forum, but I can't seem to get single-pass instanced rendering working within HDRP VR. I tried deleting the Library folder and reinstalling Shapes, but no dice. Is this something anyone else has experienced? 

Reporting a bug? please specify Unity version:
2020.3
Reporting a bug? please specify Shapes version:
4.1
Reporting a bug? please specify Render Pipeline:
HDRP
Avatar
hendrik schulte

I can confirm this problem with HDRP 11.0.0, Unity 2021.1.16f1 and Shapes 4.1.0. Some shapes are rendered right and some are only rendered on the left eye, e.g. this sphere

and this rectangle

Avatar
Andy Lewis

I'm assuming the silence means this is not an issue that will likely be resolved. It's unfortunate, as Shapes is considerably more robust than other options I have at my disposal. :(

Avatar
Freya Holmér

the silence is only because this is a recurring issue that seems to be entirely Unity's fault in how they set up their view matrices in VR


for some reason, in some versions, on some platforms in some render pipelines, in some cases, one eyes view matrix is incorrectly set up, and I don't have access to values I need for things to render correctly

I wish I had an answer!

https://twitter.com/hybridherbst/status/1430855577417158659

Avatar
Andy Lewis

Well, I did some tests and it does actually work with HDRP VR single pass instanced in 2021.2.0b10 in a fresh project!

I got encouraged by that and tried again to get it to work with my original project in 2020.3.5f1 by closing Unity, deleting Shapes, deleting Library, opening Unity, and reinstalling Shapes. But still no luck there, sadly. 

So then I tried a fresh project in 2020.3.5f1 and it did indeed work there as well. What the....

So something that is apparently not tied to my library folder is messing things up. 

Avatar
Andy Lewis

SORRY! "Getting hopes up" alert! I actually had my fresh 2020.3.5f1 project set to multi-pass, not single pass. Does not work in 2020.3.5f1 after all. D:

It does work with 2021.2.0b10. Confirmed that it was single-pass instanced. 

Avatar
Freya Holmér
  • Unity's Fault

thanks for all the testing! I'm closing this as it seems to be an oversight on Unity's end