apit
07-14-2003, 11:22 PM
i have make a split screen program..
i'm using glut....
this how the code and program looks like..
-----------------------------------------
void renderSceneLeft() {
glutSetWindow(subWindowleft);
glLoadIdentity();
gluLookAt(x, y, z,
x + lx,y + ly,z + lz,
0.0f,1.0f,0.0f);
renderScene2(subWindowleft);
}
void renderSceneRight() {
glutSetWindow(subWindowright);
glLoadIdentity();
gluLookAt(x, y, z,
x + lx,y + ly,z + lz,
0.0f,1.0f,0.0f);
renderScene2(subWindowright);
}
download executable
-------------------- http://www.sahabatrimba.com/download/glutsubwin.exe
---------------------------------------------
i want to make a stereo program...
that mean i have to put some calculation to the left and right function(in the code) so that the image would display a stereo mode...
the calculation is like this:: http://www.sahabatrimba.com/picture/formulab.jpg
the problem is, how can i impliment it to my code?
this is where i get the calculation(full version).. http://www.stereographics.com/support/downloads_support/handbook.pdf
can anybody help me?
i'm using glut....
this how the code and program looks like..
-----------------------------------------
void renderSceneLeft() {
glutSetWindow(subWindowleft);
glLoadIdentity();
gluLookAt(x, y, z,
x + lx,y + ly,z + lz,
0.0f,1.0f,0.0f);
renderScene2(subWindowleft);
}
void renderSceneRight() {
glutSetWindow(subWindowright);
glLoadIdentity();
gluLookAt(x, y, z,
x + lx,y + ly,z + lz,
0.0f,1.0f,0.0f);
renderScene2(subWindowright);
}
download executable
-------------------- http://www.sahabatrimba.com/download/glutsubwin.exe
---------------------------------------------
i want to make a stereo program...
that mean i have to put some calculation to the left and right function(in the code) so that the image would display a stereo mode...
the calculation is like this:: http://www.sahabatrimba.com/picture/formulab.jpg
the problem is, how can i impliment it to my code?
this is where i get the calculation(full version).. http://www.stereographics.com/support/downloads_support/handbook.pdf
can anybody help me?