Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 6 of 6

Thread: black & white

  1. #1
    Junior Member Regular Contributor
    Join Date
    Jun 2004
    Location
    mexico
    Posts
    125

    black & white

    how can i make a black and white effect ??

  2. #2
    Guest

    Re: black & white

    hey zukko, could you be a bit more specific?

  3. #3
    Advanced Member Frequent Contributor
    Join Date
    Nov 2002
    Location
    Latvia
    Posts
    626

    Re: black & white

    Fragment shader -> outcol.rgb = (in.r+in.g+in.b)/1.5-0.3

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

    Re: black & white

    Originally posted by M/\dm/\n:
    Fragment shader -> outcol.rgb = (in.r+in.g+in.b)/1.5-0.3
    Huh? Where does that come from?
    The usual NTSC conversion from color to greyscale is:
    out.rgb = (in.r * 0.3 + in.g * 0.59 + in.b * 0.11)

  5. #5
    Guest

    Re: black & white

    i am trying to achieve some grayscale effect, without shaders is there a way to do it??

  6. #6
    Junior Member Regular Contributor
    Join Date
    Jun 2004
    Location
    mexico
    Posts
    125

    Re: black & white

    and how do i set that??
    im using nehe's basecode.

Posting Permissions

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