I’m currently developing an experience for a big brand using playcanvas in combination with Zapworks. In this experience we have to use a lot of video footage on 3D meshes to set the scene.
I was wondering if this was possible and if so how to do this. I watched a lot of projects on this forum but can’t seem to find something that works for me (watched a lot of falling tv projects). (getting a lot of “cannot parse audio file” errors).
My second question is if you are able to use a video or sequence as an animated opacity mask. We want to do a grand reveal of the background using the opacity to animate an image.
Looking forward to hearing from you guys, thanks in advance!
I’ve tried that tutorial several times now but the problem here is that I keep getting the error: "Error loading audio URL: “Unable to decode audio data”. Now that I’m typing this error, i’ve come to the realisation that the video itself probably doesnt have audio. Is that an issue for the use of this mp4 you think?
My main browser is chrome, this one is up to date. I’ve tried it on the Safari browser and this gives a network error when trying to find the mp4 file. The video is set on preload as are the scripts so I guess the script has to see the video and that that’s not the problem.
Hmm, I can confirm it doesn’t start autoplay (Chrome, Ubuntu) if the link opens the example directly, or refreshed on it. However it starts, if I pick some other example, then click on video texture example.
I’ve seen the grey screen few times last week as well when doing some cleanup to the examples. Sometimes I had to open new tab to get it to work, sometimes switch to different example and then back to the video one. Sometimes it felt like it could play only one time and needed some reset somewhere. I assumed it was only my local built … but managed to see it on that link above just now few times as well.
I’ve tried importing my 3D model into the example project and the video starts playing there without any issues. Could it be that it’s because I have to try this on mobile because of the Zapworks connection? or shouldn’t this be a problem?
Ok if I turn of “mobile only” on the zapparBrowserUtil script the animation starts playing! But for some reason this doens’t happen on mobile, since it will be a mobile filter to use in stores we really need this to work on mobile devices too…