Results 1 to 6 of 6

Thread: black & white

  1. #1
    Senior 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
    Senior 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,450

    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
    Senior 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.

Similar Threads

  1. Using a black & white image as a mask
    By ericb81 in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 11-29-2010, 03:29 AM
  2. Black and white mask
    By Bitblit in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 06-23-2010, 03:18 AM
  3. blend the white out and not the black?
    By c_olin in forum OpenGL: Basic Coding
    Replies: 1
    Last Post: 05-08-2003, 02:29 PM
  4. Why its black and white?
    By lsdi in forum OpenGL: Basic Coding
    Replies: 10
    Last Post: 01-06-2002, 01:01 AM
  5. Black&White scene
    By Arath in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 10-17-2000, 05:35 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