Results 1 to 6 of 6

Thread: Weird Viewport problem

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2002
    Location
    Sherbrooke, Qc, Canada
    Posts
    5

    Weird Viewport problem

    Hi, I'm currently testing an OpenGL viewer I made on a PC with a 8mg Card ( An ATI XL or something like that ).

    There seems to be a problem when setting the glViewport. The opengl is drawing only part of the viewport, and the other part isn't drawed at all BUT, it's being cleared by the glClear command. WTF is going on? Not enough VRAM?? I'm using double buffer pixel format also..

    Does anyone ever had something like that?

    Thks

  2. #2
    Member Contributor
    Join Date
    Feb 2002
    Location
    Wiesbaden, Germany
    Posts
    95

    Re: Weird Viewport problem

    Hi,

    do you have the source for this tool?? Take a look at the drawing func, maybe there is something like a scissor test, or the other possibility is you might be standing partly inside the model.

    Martin

  3. #3
    Member Contributor
    Join Date
    Aug 2001
    Location
    Berkeley, Ca., USA
    Posts
    52

    Re: Weird Viewport problem

    how large a portion of the viewport isn't being drawn? I'm having a similar problem where a band down the left edge of the viewport gets cleared but no geometry will draw there... only I'm having the problem on a GeForce3, so I don't think it's a card issue...

    Currently I'm suspecting my viewport resizing code, but the fact that the area gets cleared confuses me a lot.

    Does glClear() not restrict istself to the viewport for some reason?

  4. #4
    Senior Member Regular Contributor
    Join Date
    Apr 2011
    Posts
    288

    Re: Weird Viewport problem

    I am aware you mention "left" side instead of "right" side and also glClear works.
    But I still want to mention this infamous bug:
    http://support.microsoft.com/default...;ES-VE;q272222

  5. #5
    Member Contributor
    Join Date
    Aug 2001
    Location
    Berkeley, Ca., USA
    Posts
    52

    Re: Weird Viewport problem

    Ah, yeah... it's not that one (at least for me)... good info though...

  6. #6
    Member Contributor
    Join Date
    Aug 2001
    Location
    Berkeley, Ca., USA
    Posts
    52

    Re: Weird Viewport problem

    Hey, I ended up solving my problem by ugrading my drivers - the ones that shipped with my card (Hercules 3D Prophet III - GeForce 3 based) seemed to be buggy.

    I don't know if a driver upgrade is an option for your card, but you might give it a shot.

Similar Threads

  1. Problem in viewport
    By pnpvivek in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 11-28-2008, 06:19 AM
  2. Problem with gluLookAt and Viewport
    By alexjascott in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 08-13-2004, 01:29 AM
  3. glReadPixels and viewport problem
    By pmatos in forum OpenGL: Advanced Coding
    Replies: 1
    Last Post: 11-26-2003, 02:46 PM
  4. problem with viewport
    By Swift in forum OpenGL: Basic Coding
    Replies: 16
    Last Post: 04-01-2003, 10:50 PM
  5. viewport problem
    By Mr.Freeze in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 12-18-2001, 07:31 PM

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