Results 1 to 2 of 2

Thread: doubling color in back buffer?

  1. #1
    Member Contributor
    Join Date
    May 2002
    Location
    Irvine, CA, USA
    Posts
    51

    doubling color in back buffer?

    Is there an easy way that I can double the color in the back buffer? ie, if the color stored in the back buffer was (.5, .5, .25) it would become (1, 1, .5) after a blending operation? The best that I can find is to do glBlendFunc (GL_DST_COLOR, GL_DST_COLOR) to try to add the dst color to itself, however this is not yielding the proper results.

    Thanks for any help!

  2. #2
    Senior Member Frequent Contributor
    Join Date
    Oct 2001
    Posts
    595

    Re: doubling color in back buffer?

    hum yes, that will be wrong..
    that results in (src_color*Dest_color)+(Dest_color*Dest_color)

    you want (1*dst_color)+(1*dst_color) that is
    glBlendFunc (GL_DST_COLOR, GL_ONE); and glColor3f(1,1,1) and no light/texture or whatever can affect the source color


    edit: forgot to mention, you should draw the white quad allover the area that you want to double

    [This message has been edited by Mazy (edited 08-09-2002).]

Similar Threads

  1. Replies: 5
    Last Post: 02-10-2006, 12:56 PM
  2. glReadPixels read the front buffer or the back buffer?
    By s.hu in forum OpenGL: Advanced Coding
    Replies: 3
    Last Post: 09-16-2004, 11:15 AM
  3. Fast copy from back buffer to back buffer?
    By robosport in forum OpenGL: Advanced Coding
    Replies: 19
    Last Post: 03-04-2004, 10:12 AM
  4. front and back color
    By in forum OpenGL: Basic Coding
    Replies: 4
    Last Post: 05-30-2003, 04:31 PM
  5. doubling color values
    By naeblis in forum OpenGL: Advanced Coding
    Replies: 2
    Last Post: 07-22-2002, 01:13 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