Hello,
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
https://library.vuforia.com/articles/Best_Practices/Best-practices-for-hybrid-VRAR-experiences
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?
Thanks
Lukas
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,
Peter