Search Unity

Darken Scene excluding the AR Object

Discussion in 'Vuforia' started by BorisBlocksberg, Jan 31, 2018.

  1. BorisBlocksberg

    BorisBlocksberg

    Joined:
    Dec 12, 2017
    Posts:
    5
    Hey everyone!
    I’m wondering how to darken (e.g. 60% grey) my camera view while the ImageTarget is detected but excluding the ARObject (which is text).
    I want to provide a better legibility. All I tried so far leads to a darkened screen also darkening my white colored text.

    What worked so far is bluring the scene via
    GameObject.Find("ARCamera").GetComponent<DepthOfField>().enabled = true;
    in the DefaultTrackableEventHandler

    Any suggestions?
    Thanks!
     
  2. BorisBlocksberg

    BorisBlocksberg

    Joined:
    Dec 12, 2017
    Posts:
    5