Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Dirrogate's avatar
Dirrogate
Expert Protege
5 years ago

How to map Oculus Quest controller stick to Unity Camera focus for Virtual Cinematography?

Hi All,
My interest right now is in using Unity 2019.3.9 in VP (virtual production). I'm doing my best not to go over to UnrealEngine which is an undisputed leader right now in VP for Filmmaking. 

TL;DR: I'd like help:  Would anyone be kind enough to write a script that will allow me to map the oculus Quest touch controllers Joystick left right movement to "rack focus" of the Camera component?

My idea is to use Unity for Virtual Production as an artist would (no coding knowledge) Unity is way more intuitive in a sense, compared to UE4s overwhelming at first glance - blueprints that's needed for even the most mundane tasks.

Currently, I've setup an Oculus Quest touch controller with a "Viewfinder" (a quad with a rendertexture on it, and a camera parented to the quad that renders to the rendertex) attached.
I can thus "record" like a camera man would - a nicely animated track using Unity Recorder package.
Both, the camera path that is my hand and body (walking and tracked by the Quest) movements for framing a scene, and the Ouest touch Controller keys get recorded. Later I can even render a series of images/mp4 from timeline and the Unity Recorder.
All this is done without a single line of code being written.

Any help much appreciated.
Or if there is an asset on the Unity asset store that can expose any game objects parameters (called reflection?) that can then be assigned to input controllers.




Replies have been turned off for this discussion