Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only.

    Please, do not make any changes to your username or email addresses at id.unity.com during this transition time.

    It's still possible to reply to existing private message conversations during the migration, but any new replies you post will be missing after the main migration is complete. We'll do our best to migrate these messages in a follow-up step.

    On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live.


    Read our full announcement for more information and let us know if you have any questions.

How to increase camera blur for background?

Discussion in 'Virtual Production' started by akent99, Sep 9, 2021.

  1. akent99

    akent99

    Joined:
    Jan 14, 2018
    Posts:
    588
    I am using 2021.2 (a beta), standard pipeline, with "Depth of Field". But I cannot make the background blur as much as I want to. I have tried fiddling all the settings - is there a way to blur the background more? I want to increase the feeling of depth in some scenes, and blur is a common way to do it, but it only blurs a bit, not as much as I want.

    E.g. look through the windows - the trees are a LONG way away, but I cannot blur them out more. Do I have to move to HDRP or similar? (Some assets I purchased from the asset store turn pink when I tried last time, so I have stuck to date with the standard render pipeline.)

    upload_2021-9-9_11-39-16.png

    I tried cranking up the aperture as far as I can, but the face/head has a certain degree of depth, so pushing to say 0.99 the clothes start to go out of focus (with with focal size increased).
     
  2. imaginationrabbit

    imaginationrabbit

    Joined:
    Sep 23, 2013
    Posts:
    349
    That script does not look familiar to me- We use the Unity Post processing package v2 and settings like this give you a narrow focus area and heavy bokeh



    The terms are photographic- in general, the larger the focal length is more of the scene will be blurred and the smaller the aperture is the area in focus will be smaller-
     
  3. akent99

    akent99

    Joined:
    Jan 14, 2018
    Posts:
    588
    Thanks for replying! There are a couple of reasons why I am not using Post Processing v2.
    1. I cannot get it to work (!!!). I create a new empty scene, put a character in it, put a camera and light in. I add PostProcessing 3.1.1 (v2) to the project via package manager. I add Post-Processing Layer component to the Camera in the scene I add Post Processing Volume to a separate game object. I create a profile with bloom on, set to global. (Basically I followed a YouTube video tutorial step by step.) But at the end of the day, nothing happens - I can see no effect of the post processing!
    2. V2 actually looks less functional! The old Depth of Field component has a "visualize" mode that is really useful. I could also specify a target that it would lock onto automatically (important as the character may move towards the camera, so the focus point needs to move as well)
    I mean I know it must work and I am doing something wrong, but I cannot for the life of me work out what. No errors on console, it just does not do anything. (I am turning on Bloom and some other things at random.)
     
  4. imaginationrabbit

    imaginationrabbit

    Joined:
    Sep 23, 2013
    Posts:
    349
    Hmm with post processing v2 make sure you give it layers to process or else it doesn't do anything. Here's some images of my current working setup- the components are on the camera




    You can use the focal distance with v2 to track an object to keep in focus as well. Just need to write a simple script that gets the distance between the camera and the target object and use that for the "Focus distance"