Unity-Technologies/Per-Object_Outline_RenderGraph_RendererFeature_Example

How to get it working in VR Single Pass Instanced multi view on quest 2

hemanth2410 opened this issue · 11 comments

I was working with this example, Initially it didnt even work on multi pass rendering as APK on quest 2, on windows it had no problem running on Multi Pass rendering, So on android side the fix for Vulkan would be to replace ZTest Always to ZTest LEqual in the OutlineColorAndStencil.shader

but i tried running it in SinglePassInstanced rendering later to give it a try. I couldn't get it working there. when i analyzed it in the frame debugger it appears in the Blur Horizontal and Blur vertical passes, the _BlitTexture is being treated as Tex2D but not Tex2DArray, i have tried many workarounds like copying the camera color texture to a different temporary texture and blit it and copy it back to camera color texture, but it didnt work. Requesting additional guidance.

@hemanth2410 any solution ?

Not really. Havent worked on it, and sad part is i got something working for pc in single pass instanced rendering, but on android i.e. meta quest i was able to render the effect only on the left eye.

i'm looking for outline for androide vr i have not found any project

Are you trying to use for Unity 6?

Image

here is the output on PC for single pass rendering, yeah i just used two different colors on left and right eye. but on android i can only see red and on right eye my effect isn't working at all.

Image
and a side effect is that my editor will look garbage because i messed up script somewhere in render pass

yes in Unity 6 i try to build for android and it does not build at all

May be give this shader a try? i made it for single pass.

Try downloading the *.unitypackage from the below link
The link to the unity package
once you install it, you will have to uncomment two lines in
VR Outline Feature/MultiPass/Runtime/VROutlineRenderpass.cs
Probably lines 44 and 45, you will have a comment "Uncomment these lines for singlepass rendering"
try this, may be this will build but experience will be a little underwhelming at the best

it build but we dont see the outline in the android build

Sorry for late reply, could you please provide me a log from the development build if there are any errors?

here is the log log.txt