steamvr_unity_plugin icon indicating copy to clipboard operation
steamvr_unity_plugin copied to clipboard

Particle systems don't render in multi pass mode with URP

Open forbs01 opened this issue 5 years ago • 3 comments

Hi,

I'm having an issue where if I switch to multi pass rendering in a project using the Universal Render Pipeline, all my particle systems and line renderers become invisible in the game view. They still show up okay in the scene view however.

The following error shows up in the console: Assertion failed on expression: 'IsMatrixValid(matrix)' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

I've tried both version 2020.1.0f1 and the latest 2020.1.8f1 with clean projects, and the same issue occurs.

Thanks in advance for any help!

forbs01 avatar Oct 13 '20 18:10 forbs01

I have an identical problem. I am using the standard pipeline, instead of URP. When I have stereo rendering mode set to "Multi-pass", the console blows up with -

Assertion failed on expression: 'IsMatrixValid(matrix)' UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr, Boolean&)

And some of my shaders do not render correctly.

When I have stereo rendering mode set to "Single Instanced", that error goes away, but those same shaders now appear invisible. Any advice would be greatly appreciated. Thanks.

silex84 avatar Nov 06 '20 01:11 silex84

I have exactly the same error using unity 2020.3.2.f1, URP and multipass. No issue using OpenXR (mutli pass and single pass). If I switch to built in renderer, or use singlepass, the error goes away. To reproduce the error, just create a new project with the URP template and import SteamVR.

Has anyone found some workaround?

Neuforteil avatar Apr 04 '21 01:04 Neuforteil

Hi - Just a quick note to let you know we're working with Unity in investigating this issue,

For singlepass, make sure your shaders are modified to use instancing: https://docs.unity3d.com/Manual/SinglePassInstancing.html

Cheers, Rune

1runeberg avatar May 03 '21 17:05 1runeberg