sigtrapgames / VrTunnellingPro-Unity

Plug-and-play VR comfort for Unity.
http://www.sigtrapgames.com/vrtp/
MIT License
180 stars 21 forks source link

Strange blue frame on screen #3

Closed dacaes closed 5 years ago

dacaes commented 5 years ago

image

Have you ever have this kind of issue?

Thank you.

dacaes commented 5 years ago

Thanks to the user Drezus on Unity's forums VR Tunnelling Pro thread, I've found that Iris Z Rejection is what causes that.

From VR Tunnelling Pro Manual I've found that:

"Various modes allow the Iris Z Rejection setting, an optimization that saves pixel fillrate and overdraw. Before the scene is drawn, this writes to the z-buffer where the vignette is opaque. This stops pixels being written only to be obscured by the effect."

So, disabling Iris Z Rejection, the blue frame is gone, but I can't benefit from the performance improvement Iris Z Rejection grants.

SixWays commented 5 years ago

Switching to the dev branch should fix this issue. It's a weird bug where unity doesn't export mesh vertex colours correctly on standalone builds - I've changed to a different method on the dev branch.

dacaes commented 5 years ago

Thank you! @SixWays

sigtrapgames commented 5 years ago

Dev has now been merged into master so this should no longer be a problem - however, please let me know if it is! -Luke