Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: how to make a stereo library ?

  1. #1
    Intern Newbie
    Join Date
    Nov 2001
    Location
    malaysia
    Posts
    36

    how to make a stereo library ?

    hii...
    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/pa...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/~haf...leftright2.JPG
    so, how can i do that?
    apit

  2. #2
    Advanced Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    612

    Re: how to make a stereo library ?

    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.

  3. #3
    Intern Newbie
    Join Date
    Nov 2001
    Location
    malaysia
    Posts
    36

    Re: how to make a stereo library ?

    do you have any code or website to refer...
    apit

  4. #4
    Intern Newbie
    Join Date
    Nov 2001
    Location
    malaysia
    Posts
    36

    Re: how to make a stereo library ?

    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() {
    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/suppor...t/handbook.pdf
    can anybody help me?
    apit

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •