Results 1 to 3 of 3

Thread: newbee question about glClear...

  1. #1
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    2

    newbee question about glClear...

    Hi everyone,

    why am i forced to clear the buffers?
    I suspected that i could just "overdraw" the last drawing operation. But when i tried and removed the glClear command from the source-code, the display was not updated correctly.

    thanks for your help
    natural stupidity beats artificial intelligence everytime

    HEIMDALL

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Aug 2000
    Location
    Portsmouth, Hampshire, England
    Posts
    926

    Re: newbee question about glClear...

    You dont have to clear the color buffer, if your rendering covers the whole screen. But you still need to clear the Z buffer, or the majority of the scene wont be rendered again after the 1st frame. Because it will be comparing the depth values of the last frame, not of a clean Z buffer.

    Nutty

  3. #3
    Junior Member Newbie
    Join Date
    Nov 2002
    Location
    Germany
    Posts
    2

    Re: newbee question about glClear...

    Thank you very much...

    HEIMDALL
    natural stupidity beats artificial intelligence everytime

    HEIMDALL

Similar Threads

  1. Newbee is back with spotlight question...
    By StinkyPete in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 04-12-2012, 08:38 AM
  2. glClear Question
    By MaxH in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 12-12-2007, 04:20 AM
  3. Question about glClear()
    By CoGiTo in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 03-10-2006, 09:32 AM
  4. newbie question regarding glClear
    By surya24 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 08-13-2003, 12:45 AM
  5. newbee question,,, pls,,, thanks :)
    By imu2002 in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-10-2002, 07:07 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