Thread: Some Graphics Questions:

  1. #1
    People Love Me
    Join Date
    Jan 2003

    Question Some Graphics Questions:

    Can someone tell me what exactly a depth buffer is, and what a filter is?

    Also, for glClearColor(r,g,b,alpha), what does the last parameter do? I've messed around with it before, and nothing happens. What's it for?

  2. #2
    Join Date
    Jan 2003
    The depth buffer (also known as the z buffer) is what determines what objects are in front of other objects. Your video card holds a certain depth value for each pixel, and only the closest value for each pixel is rendererd.

    The clear color function sets the background color (where nothing gets drawn). The alpha value is the transparency value, but I don't think it has any effect in this situation. But I could be wrong

    What is a filter? That's kind of vague but it's just something that touches up the way the scene looks. i.e anisotropic filtering improves the texture quality of polygons at a distance.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. A very long list of questions... maybe to long...
    By Ravens'sWrath in forum C Programming
    Replies: 16
    Last Post: 05-16-2007, 05:36 AM
  2. Beginning Game Programming Type Books
    By bumfluff in forum Game Programming
    Replies: 36
    Last Post: 09-13-2006, 04:15 PM
  3. Graphics library questions
    By linkofazeroth in forum Game Programming
    Replies: 10
    Last Post: 09-10-2005, 09:42 PM
  4. Graphics Programming :: Approach and Books
    By kuphryn in forum Windows Programming
    Replies: 4
    Last Post: 05-11-2004, 08:33 PM
  5. 2 Graphics Questions
    By bookworm in forum A Brief History of
    Replies: 3
    Last Post: 08-28-2003, 05:15 PM