I have a major problem here. I have made two programs separetly one is to display the stereo images and then second one is two draw a mouse cursor on the two images. Now when I have come to integrate the two programs together I have realised that the ortho projections for both the programs is different.
- For stereo image it is : glOrtho(0.0, (GLfloat)width, 0.0, (GLfloat)height, -1.0, 1.0);
- For the mouse is : glOrtho(0, width, height, 0, -1.0, 1.0);
I know that the only difference is of float and integer but that is causing alot of trouble.
-
If I use the ortho projection for the stereo image then to control the mouse cursor( drwan) is very difficult and the image that are being displayed are very dark infact you cant see them properly.
-
If I use the ortho projection for the mouse cursor then the images are not displayed at all but the mouse cursor is displayed fine.
I was wondering if anyone could give me suggestions as to how to go about it now.
Many thanks
pranay