By philspitler
on Tue, 10/22/2019 - 03:01
I have my Unity App set to play a video when Vuforia detects an image.
It works great other than the first time Vuforia detects the image I see the white quad displayed while the video is loading.
It's only a split second but it really does kill the user experience. I don't mind the delay it's really just seeing the white square that bugs me.
So, I suppose there are a few options....
1) Preload the video, this could be an issue as I have 30 different videos to play based on images in a book.
2) Make the quad transparent until the video is loaded.
I have no idea how to do either :-)
Any thoughts?
Thanks.
Phil
Hi,
Hi,
In the core sample apps we provide the video with the Assets and there is no delay after clicking the Play button. Scene: 3 - ImageTargets
Once consideration that pops to mind when considering the pre-loading of the 30 videos is size, depending on the quality etc.
Hi, attached is a screen shot
Hi, attached is a screen shot of my quad to see if that gives you any ideas and here is a link to a video showing the issue.
As soon as my phone detects the image target you see it show the white quad for a split second before the video starts.
Hi,
Hi,
Thank you for the video, below is the link to the core samples: https://assetstore.unity.com/packages/templates/packs/vuforia-core-samples-99026
Just tweak the "video
Just tweak the "video Material"...
choose "unlit transparent" shader and load a little empty texture(16pix x 16 pix totally transparent) in it.
So before video is completely loaded it only shows a transparent quad.
It works great for me on mobile.
Thanks @ioio I'll give that a
Thanks @ioio I'll give that a shot, it sounds exactly what I'm wanting.
Cheers
Phil