Reputation: 990
I am trying to come up with an app that renders two videostreams from webcams in a way that they are perceived as stereoscopic image on a 3D display. I have never dealt with stereoscopic 3D before, but thoretically this should be as simple as rendering the streams to two different surfaces and showing each for the appropriate eye (sorry, not fully familiar with terminology). I know that NVidia drivers can "stereoscopize" any 3D application. I also know that video games include this feature as a separate setting, so turning this on and working with it should be simple.
Nevertheless, I wasn't able to find any guides in MSDN or NVidia website on how to do this.
I would appreciate any kind of help in this area.
Thanks!
Upvotes: 2
Views: 603
Reputation: 48587
I have attached a link to a small project I found a while ago, but it was in XNA 3.1, so I've converted it to XNA 4. It uses RenderTargets
in order to create the effect. You'd need to store the image from the Webcam into a Texture2D
or a RenderTarget
in order to amend the code.
Upvotes: 1