Search Unity

Question Video and image before/after compare slider

Discussion in 'Audio & Video' started by victoraceron, Dec 6, 2021.

  1. victoraceron

    victoraceron

    Joined:
    Dec 6, 2021
    Posts:
    2
    Hi all,

    I'm developing a 360 video and image player to play 3d 360 videos and images. I want to implement a feature that let the user compare and image and a video with a comparison slider but I'm not being able to find any information about this in unity. The feature i want to implement is just like the following gif:

     
  2. The_Island

    The_Island

    Unity Technologies

    Joined:
    Jun 1, 2021
    Posts:
    502
    What you are probably looking for is a Panoramic skybox. You would need to create a custom shader to blend both images. You can probably start with the Panoramic skybox shader and add blending.
     
  3. victoraceron

    victoraceron

    Joined:
    Dec 6, 2021
    Posts:
    2
    I got what I wanted by setting 2 spheres, 1 for each 360 component. Then I set up a camera for each one. When you have that you just have to set the Viewport Rect of a camera to 0.5 and done.