Search Unity

Multiple Perspectives in One Camera?

Discussion in 'General Graphics' started by Dave_LeDev, Aug 12, 2018.

  1. Dave_LeDev

    Dave_LeDev

    Joined:
    Apr 14, 2015
    Posts:
    33
    Is it possible to create a camera with multiple perspectives being rendered?

    Scenario: The environment is being presented in an oblique perspective via Camera Perspective Editor. Props and characters are rendered in isometric.

    Example in 2D:
     
  2. Dave_LeDev

    Dave_LeDev

    Joined:
    Apr 14, 2015
    Posts:
    33
    I think I just found the solution. Had no idea you can handle GUI like this. :p

     
  3. SunnyChow

    SunnyChow

    Joined:
    Jun 6, 2013
    Posts:
    360
    i guess you can render props and characters to indiividual RenderTexture, and render it to main scene as Sprite. Directly render t to the screen will be very challenge because of the depth test
     
  4. bgolus

    bgolus

    Joined:
    Dec 7, 2012
    Posts:
    12,352
    The other way is to not use any kind of special camera, and just build all of your environment and characters to look like they're oblique / isometric.

    For example:
    Zelda: A Link Between Worlds
     
  5. neoshaman

    neoshaman

    Joined:
    Feb 11, 2011
    Posts:
    6,493
    Or use a vertex shader to perform the deformation