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: Bad pixels in PBuffer for some viewport sizes

  1. #1
    Intern Newbie
    Join Date
    Feb 2001
    Location
    berlin, germany
    Posts
    30

    Bad pixels in PBuffer for some viewport sizes

    In my application Im using offscreen rendering in a Pbuffer for rendering images files of the scene. Reading the Pbuffer content (using glReadPixels()) I get some invalid colored pixels near the upper left and the lower right corner of the rectangle. But this effect occurres only for selected viewport dimensions (e.g. 720x576 and 100x100 pixels is ok, but 400x230 pixels will fail. NVidia GeforceFX5900 used.

    Any ideas?
    ravo

  2. #2
    Junior Member Newbie
    Join Date
    May 2004
    Posts
    8

    Re: Bad pixels in PBuffer for some viewport sizes

    This is funny, and I don't have a real answer. , but if it's windows and in a windowed mode, try clipping regions to see what happens. otherwise, the basic rendering interface does this when rendering.

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Apr 2004
    Posts
    999

    Re: Bad pixels in PBuffer for some viewport sizes

    I had the same problem a few months ago. The applications i'm writing have DV resolution as input (720x576). At certain subsample levels my textures were completely messed up and I had no idea why. The only way I could slve it was by using POTD textures and POTD viewport.
    Originally I also used texture rectangles to support NPOTD textures, so maybe the bug could have been there.

    It's very strange indeed...

    N.

  4. #4
    Intern Newbie
    Join Date
    Feb 2001
    Location
    berlin, germany
    Posts
    30

    Re: Bad pixels in PBuffer for some viewport sizes

    Thanks for replying!

    To Krisztian:
    I checked clipping planes, and the bug seems to depend on clipping. The effect occurres:
    - only in ortho projection (using perspective projection everything is ok.)
    - when objects will be clipped at viewing frustum borders

    I'm still checking this subject and I guess that it's enough when one clipping plane is multiple defined.

    To NiCo:
    Yes, my textures aren't powers of two dimensioned. But I have to use it in this dimensions. Hmm.

    ravo

Posting Permissions

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