Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm a novice. I'm working in XNA studio with simple models.

How can I turn a 3D image into two images meant for the left and right eyes respectively?

Note: I'm not referring to "magic eye" - I'm wondering how you calculate the left and right images starting from the 3D scene info.

share|improve this question
So, what you want is dualstereo and not anaglyph? – sarahm Nov 10 '11 at 3:27
yes, that's what i mean to say – Aaron Anodide Nov 10 '11 at 3:28
up vote 2 down vote accepted

Basically, you place two cameras pointing in the same direction a short distance apart, like a person's left and right eyes, and render the scene from each camera.

There's a lot of details to get right. You need nonstandard projection matrices for the stereo cameras to make the images mesh properly when viewed on a 3D TV or similar device; you have to decide how far into the scene you want the focal plane to be, and where the user's screen is relative to the scene (for instance, does anything in the scene "pop out" of the screen, or is it all behind the screen); there are also issues with comfort zones, where you can cause people to experience headaches or strain while viewing the image if you deviate outside the comfort zone.

Here is a good set of presentations that go into these issues in a lot more detail: Once you know the key terms, I'm sure you can find more on the Web as well.

share|improve this answer
That. Another good resource is – sarahm Nov 10 '11 at 3:34
thanks - my big idea is to watch my 3d amination on two ipods anchored on the inside of an ad-hoc vr helmet... – Aaron Anodide Nov 10 '11 at 3:35
@Gabriel, you would look awesome! :) – George Duckett Nov 10 '11 at 9:21

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.