By Pixel-punch
on Tue, 07/21/2015 - 14:22
Hi, I want to enable camera video in Digital Eyewear (BT-200 on Unity). I know that it is disabled on purpose, i.e. glasses are see through and camera view doesn't match eye view, etc. I don't care. I want to enable it and put some effect on it (like in BackgroundTextureAccess sample). I might even put it only on a part of the screen, so I really don't care that glasses are see-though or that there is a mismatch. I tried enabling video in Eyewear sample without luck. I noticed that renderer is disabled and MeshFilter doesn't exist on BackgroundPlane GameObject. Calling VideoBackgroundBehaviour.ResetBackgroundPlane or CameraDevice.Instance.GetCameraImage didn't work. I tried building BackgroundTextureAccess (i.e. Mobile version) into BT-200 without any luck - I get black screen. I tried to find methods which allow direct access to OpenGL texture (used to be QCARBRenderer.SetVideoBackgroundTextureID), but that doesn't seem to be available anymore. This article still mentions it <https://developer.vuforia.com/library/articles/Solution/How-To-Access-the-Camera-Image-in-Unity>, but the article seems to be outdated and equivalant methods do not exist anymore. Back in good old days all Vuforia scripts were available as C# scripts, and that allowed us to fix things in situations like these. But now everythings is compiled into a lib, and we have no way of knowing which component disables rendering. So could you give some advice how to enable video background (with effects) on BT-200 glasses? Thanks,Paulius