Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

How to change the saturation for a single GameObject?

Discussion in 'High Definition Render Pipeline' started by Hannibal_Leo, Mar 23, 2021.

  1. Hannibal_Leo

    Hannibal_Leo

    Joined:
    Nov 5, 2012
    Posts:
    292
    In Games it is important to show the player which objects in the game world are interactable.
    Using certain environmental assets, we can't change every single one of the 1000 materials in the game, but we could easily desaturate everything with a post processing effect - but we need to exclude certain objects.

    In the example below, there are only two important objects, the player can interact with (marked with green "circles")

    upload_2021-3-23_13-31-22.png
     
  2. dgoyette

    dgoyette

    Joined:
    Jul 1, 2016
    Posts:
    3,715
    Well, you mentioned not being able to change the 1000 materials in your game... but why would you need to change 1000 materials to do this? I wouldn't expect all 1000 materials are potentially interactable? In which case, only a small number of materials would need to support this?

    In my game, I use a slightly different approach which doesn't require changes to the original object or its materials. At runtime, I make a copy of the renderer and assign a special material to it that gives the objects a "glow". It's pretty simple to implement this sort of thing. Not quite the approach you're describing (visually the opposite, in fact).
     
  3. Hannibal_Leo

    Hannibal_Leo

    Joined:
    Nov 5, 2012
    Posts:
    292
    Well, looking at the example picture I attached to OP, I have no idea what level of glow would be needed to make those two objects shine more than their surrounding xD
    In this specific scene, I guess we'll kill all the red tones and make them some brownish color, then remove the emission from all screens and the server-box on the left, then turn down all the lights and put two point lights at the spots that are important. And we will do this in every single area we have so far...
    Because right now, it is colorful visual clutter thats in the way of our gameplay. Players are lost, they don't know where to look and making some objects even more shiny won't help I guess.
     
  4. id0

    id0

    Joined:
    Nov 23, 2012
    Posts:
    404
    chap-unity likes this.
unityunity