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

Mixing 2D and 3D camera

Discussion in 'Cinemachine' started by Turborilla, Dec 1, 2017.

  1. Turborilla

    Turborilla

    Joined:
    Sep 10, 2014
    Posts:
    5
    Hi,

    We have a situation where we would like blend from perspective to orthographic view and vice versa, but the virtual cameras are forced to be either 3D or 2D.
    It this something you're working on, or is there a workaround?
     
  2. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658
    You know, this idea came up and we said: "nah, nobody is EVER going to want to do that!" :eek:

    One direction which you might try to investigate:

    You can approximate an orthographic camera with a 3D camera that is "infinitely" far away, with the FOV set small enough that the amount of stuff visible on screen is the same as what an ortho camera would show, given a specific ortho size.

    You blend from your 3D view to such a camera, and at the end of the blend, do a crossfade (or, if the blend is fast enough, you could probably just cut) to a real orthographic camera. You'll have to set up a second Unity camera for this, orthographic, with its own brain and its own vcams.
     
    Last edited: Dec 1, 2017
  3. Gregoryl

    Gregoryl

    Unity Technologies

    Joined:
    Dec 22, 2016
    Posts:
    7,658