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
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

2D multi-environment overlapping effect (Camera-based, perhaps)

Discussion in 'General Graphics' started by Miguel_TagaiArts, Feb 2, 2022.

  1. Miguel_TagaiArts

    Miguel_TagaiArts

    Joined:
    Jan 12, 2018
    Posts:
    39
    Hey there,

    I am working on a 2D game that deals with a "multiple scenes intertwined" scenario and I'm trying to achieve a very particular camera usage that I'm not really sure how to approach. Here's the deal:

    Our game consists of a world populated by cards that contain characters and/or scenes. Those cards act as characters you can interact with, as seen in the first attachment,

    tarotworld_1.jpg

    Then, once you come across a card-character, you will be able to "enter its domain" in order to solve their particular problem. At that precise moment, the size of the card expands, as seen in the second attachment,

    tarotworld_2.jpg

    As the card boundaries get bigger and bigger, they will eventually reach the borders of the screen, so you will be fully transported into that character's "world" until you solve their situation and are able to be back again (third attachment),

    tarotworld_3.jpg

    Any ideas on how should I work on this? I am guessing that this is a matter of cameras setup, rendered in different layers, but I am not completely sure due to the card boundaries expansion effect, which is a bit tricky. Maybe this could be achieved with a RenderTexture, but I have an interest in knowing if there could be some tool or setup inside Unity that I could use to explore this avenue.


    Thanks in advance!
     
    Last edited: Feb 2, 2022
  2. Miguel_TagaiArts

    Miguel_TagaiArts

    Joined:
    Jan 12, 2018
    Posts:
    39
    Hm now I'm thinking that maybe this could be achieved easily via a stencil. I'll try that for now.