Search Unity

[SOLVED] Blur distant object in camera view?

Discussion in 'Image Effects' started by Inferi, Jun 12, 2018.

  1. Inferi

    Inferi

    Joined:
    Sep 28, 2015
    Posts:
    145
    Hi all.

    How do I blur object after a custom distance from the camera.

    Example:
    If I look at a sign from 1000 meters , it should be blurred out, but if I look at the same sign from 5 meters, it will be clear and sharp.

    Any ideas?
     
  2. Kronnect

    Kronnect

    Joined:
    Nov 16, 2014
    Posts:
    2,905
    I think you’re referring to Depth of Field with a fixed focal point.
     
  3. Inferi

    Inferi

    Joined:
    Sep 28, 2015
    Posts:
    145
    I have tried PostProcessing Depth of Field, but cant get it to work . It always blurs to close to the camera, no matter how I set it. It blurs from bottom as from the above.
    From 0 to about 1000 meters it should be clear/sharp and then slowly be blurred.
     
  4. Kronnect

    Kronnect

    Joined:
    Nov 16, 2014
    Posts:
    2,905
    I see. Beautify's DoF includes additional control settings for "foreground" blur (objects between focal point and camera) so you can have near objects always crisp.
     
  5. Inferi

    Inferi

    Joined:
    Sep 28, 2015
    Posts:
    145
    Ah, sadly to expensive for me right now :( . But thanks for the tip :)
     
  6. Inferi

    Inferi

    Joined:
    Sep 28, 2015
    Posts:
    145
    I used the old DoF " from Old standard Assets Effects " and that still seem to work.
     
  7. TeddyGad

    TeddyGad

    Joined:
    Sep 12, 2017
    Posts:
    74
    I'm having the same problem w/ the latest post processing DOF- no mater what setting combination I try, it doesn't blur out the background while keeping the foreground in focus- it doesn't seem to have adequate controls
     
  8. Inferi

    Inferi

    Joined:
    Sep 28, 2015
    Posts:
    145
    Yes, I got it to work with the Legacy Image Effects. You can download that from the store: https://assetstore.unity.com/packages/essentials/legacy-image-effects-83913
     
  9. SunnySunshine

    SunnySunshine

    Joined:
    May 18, 2009
    Posts:
    976
    The legacy depth of field allows for near/far blur setting. Unfortunately, the asset linked above has been deprecated and cannot be downloaded unless you've downloaded it before. Luckily, I had already done that, but for anyone else looking for the legacy cinematic effects, you can find them here:

    https://bitbucket.org/Unity-Technologies/cinematic-image-effects/src/trunk/
     
  10. rufulz2494

    rufulz2494

    Joined:
    Dec 12, 2017
    Posts:
    1
  11. JauntyBearGames

    JauntyBearGames

    Joined:
    Mar 26, 2018
    Posts:
    57