Hi! I have written a program to display to stereo images and tried to view it with the stereo glasses. It was nothing like the stereo effect it should have, I could see both the images and the glasses were not shutting donw for left and right image.
- I am using stereographics’s stereo glasses.
- The two images that were being displayed well
they were one above the other and not on the
screen out side the screen. I was not able to
see the images.
I was wondering is it possible that something was wrong with the glasses or the way I have written my program. The main in the program looks like:
int main( int argc, char *argv[], char *envp[] )
{
glutInitDisplayMode(GLUT_RGB |GLUT_DOUBLE|GLUT_DEPTH|GLUT_STEREO);
glutInitWindowPosition(250,250);
glutCreateWindow("Stereo Image Viewer");
InitGL();
BitmapBits1 = LoadDIBitmap("pic1.bmp", &BitmapInfo1);
BitmapBits2 = LoadDIBitmap("pic.bmp", &BitmapInfo2);
glutInitWindowSize((int)BitmapInfo1->bmiHeader.biWidth,(int)BitmapInfo1->bmiHeader.biHeight);
glutReshapeFunc(Resize);
glutDisplayFunc(Redraw);
glutKeyboardFunc(keyboard);
glutMainLoop();
return (0);
}
I was wondering if someone could help me out as I am really confused.
Many Thanks
Pranay
P.s- DO I need to use the screen for stereo affect instead of the glasses?