Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Page 2 of 2 FirstFirst 12
Results 11 to 12 of 12

Thread: glDrawPixels (or how to lose your time infinitely)

  1. #11
    Intern Newbie
    Join Date
    Mar 2003
    Location
    barcelona,spain
    Posts
    48

    Re: glDrawPixels (or how to lose your time infinitely)

    Hi again.

    And sorry, I was using 56.72 on windows and 53.36 on linux (the same behaviour on both)

    See you!

  2. #12
    Senior Member OpenGL Guru Relic's Avatar
    Join Date
    Apr 2000
    Posts
    2,527

    Re: glDrawPixels (or how to lose your time infinitely)

    I tried glRasterPos3f(-1,-1,0) before, but not worked.
    That's with default identity modelview and projection matrices? Then (-1.0f, -1.0f) is the lower left corner of the lower left pixel in the client area. The slightest floating point rounding error and you fall outside the viewing frustum and the rasterpos gets invalid.

    Check the GL_CURRENT_RASTER_POSITION_VALID flag in the case where you don't see something.
    If that's the case try setting up a gluOrtho2D projection and use float coordinates which lie a tiny bit inside the pixel, or better try using http://oss.sgi.com/projects/ogl-samp...erpos_clip.txt

Posting Permissions

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