Search Unity

Transparent sphere making objects invisible/transparent

Discussion in 'Scripting' started by LordDarkmoon, Apr 4, 2014.

  1. LordDarkmoon

    LordDarkmoon

    Joined:
    Mar 7, 2014
    Posts:
    6
    I was just playing the Beta of Divinity Original Sin and it seems to me that there is a transparent sphere floating in front of the camera that makes everything invisible/transparent that passes through it. This way objects blocking your view on the hero become invisible.

    Is it possible to create such a sphere in Unity, too? Maybe someone has already tried it and has idea how to do it?

    I played around with some scripts that make walls or objects transparent once they are in front of the camera, but the effect in Divinity looks much cooler.
     
  2. nbg_yalta

    nbg_yalta

    Joined:
    Oct 3, 2012
    Posts:
    378
    Just use raycast from camera to player and if there is any object - change its material to something like particle addictive.