Results 1 to 4 of 4

Thread: getting z- and frame-buffer without glReadPixels()

  1. #1
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    2

    getting z- and frame-buffer without glReadPixels()

    Hi there.

    problem:
    I need to read the entire Z- und
    frame-buffer

    my solution:
    glReadPixels(...)

    question:
    Is there a faster way to do this!?
    maybe a way to get the memory offset of
    both, z- and framebuffer directly?

    thanks in Advance

    Tobias

  2. #2
    Senior Member Regular Contributor
    Join Date
    May 2000
    Location
    Oxford, England
    Posts
    472

    Re: getting z- and frame-buffer without glReadPixels()

    Not really.

  3. #3
    Junior Member Newbie
    Join Date
    Oct 2001
    Posts
    2

    Re: getting z- and frame-buffer without glReadPixels()

    I don't know, there should be some way to get this information. Some way OpenGL must get this info too. I've tried to get the info out of the Mesa source code, but haven't had any luck with this yet.

    So any suggestions how I could get simply a pointer to the OpenGL-frame- and -z-buffer (might not be the hole screen, I am working right now with GLUT in window-mode)?

    I am working under linux with a GeForce3, but I think there must be function to do this platform and hardware independent!?

    thanks in advance

    Tobias

  4. #4
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Cardiff University
    Posts
    653

    Re: getting z- and frame-buffer without glReadPixels()

    Well I have no idea how the data is stored in the frame buffer so is there really a point to getting a pointer to it? I wouldn't think that it is a nice array of unsigned char pixel values! Hence the need for glreadpixels as opposed to glgetpixelpointer, or something. Oh I dunno....

Similar Threads

  1. Re-create FBO (frame buffer object) each frame
    By Yossi Koren in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 06-15-2017, 03:25 PM
  2. Alpha blending issues, when drawing frame buffer into default buffer.
    By Goran Milovanovic in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-08-2015, 08:11 AM
  3. can't bind a texture depth buffer to a frame buffer
    By sczybt in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 02-23-2014, 06:37 AM
  4. Replies: 5
    Last Post: 04-20-2011, 08:30 PM
  5. Replies: 1
    Last Post: 02-23-2004, 08:04 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean