Search Unity

perspective or orthographic for 2d

Discussion in 'General Discussion' started by Gohan1, Nov 29, 2015.

  1. Gohan1

    Gohan1

    Joined:
    Nov 20, 2015
    Posts:
    28
    why do most 2d games use orthographic and just code the parralax effect. is there any reason not to use perspective when u get parralax for free?
     
  2. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Layering/sorting. Most 2D games use the third dimension as a design aid for building the game, and to sort sprites logically.

    It's also easier to work with everything in screen resolution, rather then having to mess with things being different sizes based on their distance from the camera.
     
    BrandyStarbrite and Gohan1 like this.
  3. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    Ah, memories. Designing in 16:9 and then on your mac you wonder why the edges of the screen are clipped. I'm guessing an orthographic camera makes this easier to manage?
     
    Kiwasi likes this.
  4. Kiwasi

    Kiwasi

    Joined:
    Dec 5, 2013
    Posts:
    16,860
    Somewhat.

    It's more that the mountain doesn't have to be five thousand feet high and miles away to look right.
     
  5. Tomnnn

    Tomnnn

    Joined:
    May 23, 2013
    Posts:
    4,148
    I usually have 3 units of camera depth. Most things sit on 2, foreground elements sit at 1.9 and lower, background elements sit at 2.1 and higher. I agree that's better than huge distances away so things looks right on a perspective camera.