I have enabled the stereo viewing in my PIXELFORMATDESCRIPTOR structue. I have used from the instructions suggested by *Advanced graphics programming with OpenGL*:
glMatrixMode(GL_MODELVIEW);
glLoadIdentity(); /* the default matrix */
glPushMatrix()
glDrawBuffer(GL_BACK_LEFT)
gluLookAt(-IOD/2.0, 0.0, EYE_BACK,
0.0, 0.0, 0.0,
0.0, 1.0, 0.0);
<viewing transforms>
<modeling transforms>
draw()
glPopMatrix();
glPushMatrix()
glDrawBuffer(GL_BACK_RIGHT)
gluLookAt(IOD/2.0, 0.0, EYE_BACK,
0.0, 0.0, 0.0,
0.0, 1.0, 0.0);
<viewing transforms>
<modeling transforms>
draw()
glPopMatrix()
I believe that nothing is wrong in my code. But the result is too bad.Actually i see two independet objects and it's not like a thing that our eyes see.When i decrease the value of IOD-As an example to 0.5-Then i see the problem that is occured in decaling a picture on another picture.The resulting scene in this case is like a scene that a cross eyed person sees!
-Ehsan-



Thanks for your replies.