I'm trying to set something up to display the FOVE Eye cameras directly in a unity scene. I want my users to be able to see the eye camera view without needing to use the debug tool.
I can get them to display in a scene using a standard webcam setup (WebCamTexture.Play() on a RawImage component, see below for exact code), but this interferes with the eye tracking. Either the eye cameras can play in the scene, or they will show in the debug tool, but not both. When the cameras play in the scene, eye tracking gets disabled ([0,0,1] for both eye vectors), and the eye camera view shows a black screen in the debug tool.
Is there any way to display the eye cameras directly in the scene while still keeping eye-tracking enabled?
Edit: Code I'm currently using:
public class DisplayFoveEyes : MonoBehaviour
public RawImage webCamImage;
WebCamTexture webCamTexture = new WebCamTexture("FOVE Eyes");
webCamImage.texture = webCamTexture;
webCamImage.material.mainTexture = webCamTexture;
Please sign in to leave a comment.