Forum Discussion

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

Video Passthrough using the Unity Plugin

I've been working on a video passthrough application for the rift for quite a while and have been using the 0.2.x SDK and the DK1 where I've modified the distortion shader to also do some simple compositing using a green screen.

Now I'm trying to update my application for the DK2 and I'm not really sure where to start since lots of things have changed.
I know I can't access the shader anymore but is there a point in the scripts where I could access the current frame and do a blit() ?

Any suggestions would be appreciated.

1 Reply

Replies have been turned off for this discussion
  • Absolutely. You should still be able to blit to or from the eye RenderTextures in OnRenderImage(..). Just attach your script the left and right eye anchor GameObjects. They are children of OVRCameraRig.