Search Unity

Resolved Video in AR becomes too light

Discussion in 'AR' started by Gonzofossa, Jul 12, 2021.

  1. Gonzofossa

    Gonzofossa

    Joined:
    Jun 8, 2021
    Posts:
    3
    Hi!
    I am a complete newbie to Unity. I made an app with augmented reality (for android), in which a small video is played when you hover over a picture. The problem is that the video in augmented reality becomes very light. Is AR being affected by phone camera settings and ambient lighting? Is it possible to turn them off somehow?
    Thank you!
     
  2. jokigenki

    jokigenki

    Joined:
    Jul 19, 2014
    Posts:
    41
    If you have lighting in your AR scene, the video plane will also be affected by it. There are several ways to fix this, the simplest being to use an unlit shader for your video material. Assuming you are using a 3d plane to display the video (if not the steps will be broadly the same):
    1. Create a new material
    2. Select the material and change the shader to Unlit->Texture in the inspector
    3. Select your video plane, find the materials array in the MeshRenderer component, and change the Default-Material to your new material.
    hth

    Owen
     
  3. Gonzofossa

    Gonzofossa

    Joined:
    Jun 8, 2021
    Posts:
    3
    It works!!! Million thanks! And thank you for taking the time to answer newbie questions!
     
    jokigenki likes this.