View Full Version : how to make a stereo library ?

07-11-2003, 02:19 AM
i'm doing my research for stereo 3d view for hmd(head mounted disply)...
the output from this project is, i should make a library for stereo application...
below is my project flowchart...
correct it if i'm wrong... http://members.lycos.co.uk/kylixx/pangkor2/flowchart_stereoview.jpg
i have devide the window to two view...
one for the left eye and one for the right eye..
i made a 3D ball inside the window scene...
so it display two ball(the left and right window)
the problem is, i want to show the different between left and right eye...
the ball at the left window should appear quiet different compare to the right one
example :: http://gmm-student.fsksm.utm.my/~hafiz/pic/leftright2.JPG
so, how can i do that?

07-11-2003, 02:29 AM
This depends much on how your HMD wants the data, if it can handle the stereo encoded into a single image, or if it prefers the flickering between the eyes. If your gfxcard have opengl drivers, and are manufactured to work together with the HMD i think that it would use opengls stereomode, where you can render into 2 separate stereobuffers ( for left and right image) and then the HW will take care of the output to the HMD for you.

07-11-2003, 02:32 AM
do you have any code or website to refer...

07-17-2003, 10:12 PM
this my full explanation about my project..
i have make a split screen program..
i'm using glut....
this how the code and program looks like..
void renderSceneLeft() {
gluLookAt(x, y, z,
x + lx,y + ly,z + lz,

void renderSceneRight() {

gluLookAt(x, y, z,
x + lx,y + ly,z + lz,

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?