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.

Editing Tilt Shift (Image effect)

Discussion in 'Scripting' started by Wildcore, Dec 22, 2011.

  1. Wildcore

    Wildcore

    Joined:
    Dec 22, 2011
    Posts:
    2
    Hey guys, just a quick question:

    >> How could I edit Tilt Shift.js so that when the player presses a key (Q for example) the Focal Distance changes, and he can focus the background? This would give a realistic effect.
    Any ideas?
     
  2. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,602
  3. Wildcore

    Wildcore

    Joined:
    Dec 22, 2011
    Posts:
    2
    Oh, I wasn't refering to DoF... how can I explain it?

    >>For example, let's think of a FPS game where the background is blured, and when the player aims the weapon, it focuses and you can clearly see the bg, while the weapon such is now blured. I think it would be like inverting the distance of the Tilt Shift
     
  4. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,602
    hmm.
    not sure.

    I dont really play many fps games. Do you mean the peripheral of the view is blurry?
     
unityunity