Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Best way to blur out distant objects (tried DoF already)

Discussion in 'Image Effects' started by heromade, Jun 21, 2018.

  1. heromade

    heromade

    Joined:
    Aug 27, 2017
    Posts:
    33
    Hey,

    So, the player moves around in the red building and when looking out of windows he can see the green buildings around. These green buildings should be blurred out but nothing inside the red building. I tried to achieve it with the DoF from the post processing stack but I can't get it working because the line between blurred and not blurred is hard to find. The best I could do was to get the second row of building blurred but the first ones not at all.
    Is there a different/better way to blur them out? Something to define the red area as not blurred and the rest should be blurred based on the distance.

    Thanks already,
    made

     
  2. heromade

    heromade

    Joined:
    Aug 27, 2017
    Posts:
    33
    Can someone please help me with this?
     
  3. TeddyGad

    TeddyGad

    Joined:
    Sep 12, 2017
    Posts:
    74
    I also found it difficult to achieve DOF w/ the PP stack, but got better results using the older Effects, so give that a try. I'm sure more experienced users can chime in as well