Search code examples
google-project-tango

change video overlay resolution in unity


I'm using Unity VideoOverlayListener to retrieve video overlay from tango tablet camera. But fps is too low, I guess this is because the resolution of the video is too high (1280 x 720). Is there a way to lower resolution?


Solution

  • The reason for the slow-down is multiple buffer copies on the image byte data. Currently the API does allow the desired resolution to be specified. No matter what you do on the Unity side, this method of getting the video overlay will always be slow and is experimental.

    If you're not using depth information in your application, you can still use the built-in functionality for grabbing the overlay in Unity. This is because usage of the depth provider causes the Tango APIs to consume the camera, so no other applications can access it.