Dustyroom / flat-kit-doc

Documentation of the Flat Kit asset.
https://flatkit.dustyroom.com
Apache License 2.0
2 stars 1 forks source link

OpenXR Camera renders grey/black eyes with FlatKit Fog in Single Pass Instanced rendering mode #35

Closed albrrt closed 2 years ago

albrrt commented 3 years ago

Describe the bug

The camera doesn't render the scene if we activate the Flat Kit Fog effect in the [FlatKit] Example Forward Renderer. The left eye is grey and the right eye is black.

To Reproduce

Screenshots

OpenXR-Controller-Sample-Edit-Mode OpenXR-Controller-Sample-Play-Mode

Unity details:

Additional context

This bug was initially sent by email and acknowledged on 25/03/2021 - I'm adding it here for reference

albrrt commented 3 years ago

I figured out this issue happened because my OpenXR Render Mode was set to "Single Pass Instanced".

Setting your Render Mode to "Multi Pass" seems to fix it.

I didn't find any mention of this in the FlatKit documentation. According to Unity's documentation, Single Pass Instanced reduces CPU and GPU load, which makes this particularly desireable when developing lightweight games for untethered VR headsets.

Is there a plan to support Single Pass Instanced rendering in the future?

Thank you

dustyroom-studio commented 3 years ago

Thank you for the detailed steps.

While we work on single-pass support, I'm going to add the multi-pass workaround to the FAQ.

Related Issue: https://github.com/Dustyroom/flat-kit-doc/issues/23

dustyroom-studio commented 2 years ago

Hi! We have added Single Pass Stereo support for Unity 2021 and later in Flat Kit 2.9.0, please check it out.