Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Amblix's avatar
Amblix
Honored Guest
11 years ago

WebcamTexture 2 cams, 2 planes, 1 per eye...working but...

I don't know how to use the OVRCameraController or manager to place one plane per eye.

I have two planes stacked on top of each other playing the feeds from two identical webcams. I'm trying to hide one stream from one eye and the other from the other eye.

At first I tried placing the places at eye distance apart and moving the camera anchorpoints for left and right eye but this did not work.

Any tips on how to accomplish this?

I'm getting the attached image at this point

1 Reply

Replies have been turned off for this discussion
  • The easiest way is probably to write a script with an OnRenderImage(..) function that uses Graphics.Blit(..) to copy each webcam texture to each eye texture. But there are other ways to do it. You could also draw full-screen quads that are different for each eye. Or you could use Graphics.DrawTexture(..).