views:

203

answers:

2

Hello,

We are trying to make 3D stereoscopy work within XNA for Windows PC Games using NVidia 3D Vision, we really have no idea how this would be achieved and are just now skimming through the XNA documentation, while we found some examples for anaglyph 3D, we were wondering if there was any way to make it work with the Active glasses that NVidia bundles with its 3D Vision package.

We would also love to hear any alternatives as to how we could make this work on Xbox360, without the glasses of course.

Thanks in advance :3

A: 

I managed to find a handly little CodePlex project after browsing the XNA forums, I'm not sure exactly how it works (The details are in Spanish) but here is what the translation works out as:

Curious example you will learn how to play your games immerse the user beyond a 2D screen, there are several techniques to achieve this but this is based on the use of spectacles in which the left eye has a red lens and right eye a blue or green lens.

I hope it's of some use to you anyway even if it's not really suited to your needs.

3D Projection in XNA

Jamie Keeling
yeah! we found this very same example and are working our way around it, however, this seems to work with red and blue glasses, by rendering twice in different colors and then adding them all up in one final render, we're looking for ways to do this actively, like how NVidia 3D Vision works, by sending frames at different intervals to each eye.
Aru
Hmmm.. I'm not sure how it could be done using XNA, maybe something they could release in 4.1 lol?
Jamie Keeling
+2  A: 

To enable quad-buffering, in XNA 3.1, what you are looking for is (MSDN):

PresentationParameters.BackBufferCount = 3;

You will also want to have VSync turned on.

You may find you need to either not use the Game class or use it "unusually". If you find yourself having to write your own draw loop, the function you want is GraphicsDevice.Present.

Now the bad news is that according to the XNA 4.0 documentation for PresentationParameters, that feature has been moved or removed. But 4.0 is still in beta, so the API and documentation are not final yet.

Andrew Russell
Many thanks! This is great help! :3
Aru