Real-Time Video Capture with Unity 5
Hello!
I'm attempting to record video live in-app similar to the way Tilt Brush works. In fact, Google published an article on how they were able to accomplish recording video with Unity on the Vive: https://medium.com/google-developers/real-time-image-capture-in-unity-458de1364a4c#.iq1ccomw9.
Unfortunately, the way they were able to make it work without having ~20ms refresh rates was by hacking the SteamVR render loop. The Oculus SDK doesn't allow for that as far as I know, so I tried every single event in Unity (https://docs.unity3d.com/Manual/ExecutionOrder.html) to try placing ReadPixels and GetPixels in places where the GPU wouldn't be used. None of them made the refresh rate go below the needed 10ms (or 0.5ms like what Google accomplished), though some events were clearly worse than others.
Does anybody have any ideas or solutions for how to record video in-app in real time using Unity as the game engine?
Thanks!
Nathaniel
I'm attempting to record video live in-app similar to the way Tilt Brush works. In fact, Google published an article on how they were able to accomplish recording video with Unity on the Vive: https://medium.com/google-developers/real-time-image-capture-in-unity-458de1364a4c#.iq1ccomw9.
Unfortunately, the way they were able to make it work without having ~20ms refresh rates was by hacking the SteamVR render loop. The Oculus SDK doesn't allow for that as far as I know, so I tried every single event in Unity (https://docs.unity3d.com/Manual/ExecutionOrder.html) to try placing ReadPixels and GetPixels in places where the GPU wouldn't be used. None of them made the refresh rate go below the needed 10ms (or 0.5ms like what Google accomplished), though some events were clearly worse than others.
Does anybody have any ideas or solutions for how to record video in-app in real time using Unity as the game engine?
Thanks!
Nathaniel
