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 8 of 8

Thread: stereoscopic screenshot

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    6

    stereoscopic screenshot

    Hello everyone.
    I'm trying to figure out how to take a screenshot of a stereo application. I'd like to capture both left and right components of the image so I can recreate the stereo effect later. How should I approach this problem? I have no experience with openGL but I'm willing to learn!

    Thanks!

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2002
    Location
    Bonn, Germany
    Posts
    1,652

    Re: stereoscopic screenshot

    I assume you take your screenshots with glReadPixels ... if not, well, you should.

    Then you can simply do this:

    glReadBuffer(GL_BACK_LEFT);

    glReadPixels(blabla, pointer to memory buffer for left image);

    glReadBuffer(GL_BACK_RIGHT);

    glReadPixels(same blabla, pointer to memory buffer for right image);

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    6

    Re: stereoscopic screenshot

    Thanks for your help. I took your advice and applied it to a simple openGL sample I found and it worked.

    Now for the new problem...
    I want to take screenshots of apps that are not my own. ie. say I'm running openGL app Y, I want run my command simulaneously and have it save the screen. Is this possible? I tried it and I got a black picture

    In essence, I want to gain access to another application's framebuffer. How can I do this?

  4. #4
    Junior Member Regular Contributor
    Join Date
    Dec 2001
    Location
    Belmont, CA, USA
    Posts
    224

    Re: stereoscopic screenshot

    Originally posted by ellepi:
    Thanks for your help. I took your advice and applied it to a simple openGL sample I found and it worked.

    Now for the new problem...
    I want to take screenshots of apps that are not my own. ie. say I'm running openGL app Y, I want run my command simulaneously and have it save the screen. Is this possible? I tried it and I got a black picture

    In essence, I want to gain access to another application's framebuffer. How can I do this?
    That is a very OS-specific thing and OpenGL can't help you at all. If you are using windows, you could just use the "Print Screen" button.

  5. #5
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    6

    Re: stereoscopic screenshot

    but I need two capture the left and right channels so that the stereo effect can be recreated later so something like the print screen button can't do that.

    By the way, the system is running Solaris. I'm trying to capture images produced by gocad.

    [This message has been edited by ellepi (edited 03-10-2002).]

  6. #6
    Advanced Member Frequent Contributor
    Join Date
    Apr 2000
    Location
    Adelaide, South Australia, Australia
    Posts
    839

    Re: stereoscopic screenshot

    Howdy,

    xv runs under solaris, and it has a capture thing. There are probably others... I vaguely remember somthing like xgrabscreen, or something?

    I don't know if xv will capture quadbuffered stereo images, tho'. In fact, i suspect it wouldn't.

    cheers,
    John

  7. #7
    Junior Member Newbie
    Join Date
    Mar 2002
    Posts
    6

    Re: stereoscopic screenshot

    I've checked out xv. It uses XGetImage to capture the screen, so it can't capture stereoscopic images. I'll take a look at the other programs though.

  8. #8
    Advanced Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    668

    Re: stereoscopic screenshot

    Press print screen quickly twice! :-)
    j/k

Posting Permissions

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