Log in or register to post comments

Transitioning from AR to VR

March 19, 2019 - 2:04pm #1


I am currently creating an app for Android based on the "AR / VR sample".

I want to evaluate different transitions between AR and VR. In the sample fade-to-black-transition is implemented.

On the page


it is already suggested that you can use a cross-fade between AR and VR or scaling. 

There is already the hint: Fade the AR video background to transparent while you fade the VR scene to opaque, and vice versa when transitioning from VR to AR.

Unfortunately, I have no idea how to implement it. Can someone help me? 



Transitioning from AR to VR

March 20, 2019 - 5:22am #2

Hi Lukas,

you'd need to access the video background material/shader and change the alpha channel's value to 0 over a defined period of time, thus creating the "fade" effect.

There's a Vuforia sample on how to modify the VideoBackground shader here: https://assetstore.unity.com/packages/templates/packs/vuforia-background-texture-sample-102253

Interpolating values over a period of time is something you can do fairly easily in Unity and I'm sure you'll find lots of information on that if you look for it, for example this looks promising: https://answers.unity.com/questions/225438/slowly-fades-from-opaque-to-alpha.html



Hope that helps,


Log in or register to post comments