Search Unity

Camera blend with vanishing point change

Discussion in 'Cinemachine' started by xiaofan1228, Nov 19, 2021.

  1. xiaofan1228

    xiaofan1228

    Joined:
    Nov 19, 2021
    Posts:
    15
    1.jpg
    2.jpg
    Like the image above, I want to change the UI layout with Camera vanishing point changed to rightside, the OFFSET extension only shift the aim position, but the vanishing point remains in the center of canvas.

    Is there anyway to achieve this ?
     
  2. xiaofan1228

    xiaofan1228

    Joined:
    Nov 19, 2021
    Posts:
    15
    upload_2021-11-19_16-54-12.png

    Like these two parameter in Blender, if you ever touched it
     
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,728
    If you switch to a physical camera, the vcam will expose lens shift properties:

    upload_2021-11-19_6-32-18.png

    upload_2021-11-19_6-32-39.png
     
  4. xiaofan1228

    xiaofan1228

    Joined:
    Nov 19, 2021
    Posts:
    15
    Wow !!! Thank you very much !!!

    BTW, switching to physical camera also fixed my solo live update issue XD
     
    Gregoryl likes this.
  5. xiaofan1228

    xiaofan1228

    Joined:
    Nov 19, 2021
    Posts:
    15
    One more thing!

    Why is this parameter not exposed to FOV but only for focal length?
    I found that even after runtime in editor, there is a short time to calculate from FOV to focal length, was there some coding principles underneath?
     
  6. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,728
    The physical camera is a simulation of a lens, so operates using physically-based parameters.
    What do you mean? Are you talking about the trigonometry calculations used when converting back and forth? Are you seeing actual performance degradation because of this?
     
  7. xiaofan1228

    xiaofan1228

    Joined:
    Nov 19, 2021
    Posts:
    15
    No performance degradaton, the conversion in editor may affect appearance of Lens Shift parameter, sometimes the calculation was not done 100%, there were few camera remain FOV with no Lens Shift, so I have to tickle the Physical Camera to recalculate them all.

    It's totally ok for me, I was just curious why Lens Shift is not with FOV but only Physical Camera ?
     
  8. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,728
    What version of Cinemachine are you using?
     
  9. xiaofan1228

    xiaofan1228

    Joined:
    Nov 19, 2021
    Posts:
    15
    2.6.10
     
  10. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,728
    Can you try upgrading to 2.7 or 2.8? You might be tripping over a bug.