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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Parallax effect with two cameras using URP

Discussion in '2D' started by okledot, Mar 21, 2020.

  1. okledot

    okledot

    Joined:
    Dec 16, 2018
    Posts:
    2
    Greetings!
    I came across an interesting way to create the parallax effect using two cameras: orthographic and perspective.
    Link: https://www.gamasutra.com/blogs/Mic...hic_Camera_for_Parallax_Effect_in_2D_Game.php
    Demo: https://github.com/MichalBerlinger/ParallaxDemo

    This method is very popular with its optimization for 2D games. You do not need to constantly move objects for parallax, they are in the same scene throughout the scene and you can specify a checkmark for batching statics.

    But there is a problem. This method is shown on the old version and without the use of URP. An attempt to transfer it to the project was unsuccessful.

    Question: how can several cameras be used: orthographic and promising for a 2D URP project. Its possible?

    Thanks!
     
  2. okledot

    okledot

    Joined:
    Dec 16, 2018
    Posts:
    2
    Camera settings in demo 2D project:
    upload_2020-3-21_17-33-18.png
    Camera settings in 2D project with URP:
    upload_2020-3-21_17-33-8.png
     
  3. xT1TANx

    xT1TANx

    Joined:
    Nov 16, 2017
    Posts:
    17
    I am having the same issue. Any way to fix?
     
  4. harusame-

    harusame-

    Joined:
    Nov 18, 2013
    Posts:
    11