- Home /
Vuforia Videobackground Is Black In AssetBundle Scene
Hi ... anybody,
I've seen posts on this subject but either with no replies or suggested workarounds are not the solution.
I'm using Vuforia 8.5.9 (not an option to go to newer version) and Unity 2019.4.22 for Android project.
It's a quite simple task which works perfectly in editor but not when the app is built and run on mobile device: AR scene is stored in assetbundle.
It really does not matter whether dataset is stored in the StreamingAssets or loaded from AssetBundle because the problem remains the same.
When the scene is loaded (completely) videobackground is black although recognition works. When I point camera to the marker it triggers it and brings digital content. But the rest of the screen is black. It is not up to the Android device because everything works if the scene is not stored in AssetBundle.
What I tried w/o success: Solution 1) I've put all Vuforia shaders in Resource folder to have them present all the time. Just in case
Solution 2) I've included Custom/Videobackground shader via ProjectSettings
Solution 3) I've refreshed (re-assigned) Videobackground shader on BackgroundPlane child object of ARCamera through OnVuforiaStarted
Solution 4) I've tried to exclude OpenGL 3.0 from the build
Solution 5) I've refreshed all shaders after loading Scene/Assets from AssetBundle
Solution 6) I even created new material requiring VideoBackground shader to refresh the shader upon loading AssetBundle
I'm checking the status of BackgroundPlane object and its renderer. Its true. I'm checking status of BackgroundBehaviour and it's true. Once again, markers tracking works. It's only about the fact that VideoBackground is black.
Obviously it's something about material or shader. I've explained what I did with the shaders. Since this version of Vuforia instantiates material itself (I can't find it anywhere in Vuforia files) I don't know how to place it in AssetBundle.
I simply ran out of the solutions
Can anybody give a hand?