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.
  2. Dismiss Notice

Post processing depth of field, cannot fully focus camera in Android

Discussion in 'General Graphics' started by TabsTheCat, Nov 3, 2020.

  1. TabsTheCat

    TabsTheCat

    Joined:
    Nov 3, 2020
    Posts:
    4
    Hi

    I am using post processing depth of field to increase the focal length with increasing camera zoom and then changing the focus distance to the same raycast distance that the camera is looking at.

    This works perfectly for Windows build giving a good depth of field zoom effect with only the object currenty in centre of view in focus and everything else behind and in front of the target out of focus. But for Android, setting the focal length to a value >1 results in the camera not being in focus regardless of the focus distance. This problem gets worse with increasing focal length.

    Is there a problem with post processing depth of field for Android builds?
     
  2. Paulwoerks

    Paulwoerks

    Joined:
    Jun 9, 2016
    Posts:
    7
    I actually have the same problem with a custom DOF solution from the asset store. Did you manage to solve it?

    My suggestion is that unity itself isn't able to detect depth at a certain distance anymore on android builds, since we stumbled upon the same problem with completely different solutions