Results 1 to 7 of 7

Thread: 3D Vision?

  1. #1

    Default 3D Vision?

    I was wondering if ClanLib is capable of quad buffering so I can use 3D vision for stereoscopic development?

  2. #2
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Bergen, Norway
    Posts
    588

    Default

    i have no idea, but if OpenGL can do it, it should be possible to enable it for ClanLib as well.

  3. #3
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    CL_BufferControl contains:

    void set_draw_buffer(CL_DrawBuffer buffer);

    Code:
    enum CL_DrawBuffer
    {
    	cl_buffer_none,
    	cl_buffer_front_left,
    	cl_buffer_front_right,
    	cl_buffer_back_left,
    	cl_buffer_back_right,
    	cl_buffer_front,
    	cl_buffer_back,
    	cl_buffer_left,
    	cl_buffer_right,
    	cl_buffer_front_and_back
    };
    So clanlib "should" support it, but as far as I know, nobody has tried.

  4. #4

    Default

    Thanks for the reply, I checked the documentation for the latest ClanLib build and it seems to support front left, front right, back left and back right buffers which (as far as I know) is what is required for stereoscopic graphics.

    EDIT: @rombust, you beat me to it. Well I'll have a look into it a bit more and I'll let people know how it goes.

  5. #5
    ClanLib Developer
    Join Date
    May 2007
    Posts
    1,824

    Default

    heh heh

    On my PC:

    Code:
    	CLboolean result = CL_FALSE;
    	clGetBooleanv(CL_STEREO, &result);
    result = CL_FALSE, so I guess my card does not support it.

  6. #6

    Default

    I've only just started to look into this but I think you need to have a quadro card to actually access all four buffers.
    From what I can tell quadro cards have two displays and two "keys". Where each display is the left or right and the keys are the front/back offset.

  7. #7
    ClanLib Developer
    Join Date
    Sep 2006
    Location
    Denmark
    Posts
    554

    Default

    It is not unlikely that stereo is only available if it has been explicitly requested when you create the initial OpenGL context.

    I haven't checked if CL_OpenGLWindowDescription supports any such stereo parameters though.

Bookmarks

Bookmarks

Posting Permissions

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