Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Removing specific channels of color

Discussion in 'Editor & General Support' started by itachi4365, May 11, 2014.

  1. itachi4365

    itachi4365

    Joined:
    Sep 24, 2012
    Posts:
    40
    Hi,
    I am working on diving simulation. I diving as you go deeper color starts disappearing, for eg: after 20m you don't see the color red, after 30m you won't see green, after 50m you won't see blue everything turns to grey. I have to simulate this, I am not able to figure out how this could be done. Please share some ideas, code, or plugin. It would be of tremendous help to me.

    Thanks in advance!!
     
    Last edited: May 22, 2014
  2. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,683
    I am no expert in the matter, as there may be an internal way to do this, with in Unity, barring that tho, what could work is to have 3 textures, that simulate each scenario. If you can make a transparent texture that you could place between the camera and world, this might achieve this effect.
     
  3. Birdlay

    Birdlay

    Joined:
    Jul 28, 2012
    Posts:
    39
    One way is to use color adjustment image effects to desaturate individual channels (PM me if you have Pro and want an example). There probably is another way, but that's all I can think of at the moment.
     
  4. itachi4365

    itachi4365

    Joined:
    Sep 24, 2012
    Posts:
    40
    Thanks @CPTechnologies for the help.