Night Vision Effect

Night Visio Effect has been Released!
Asset Store

Requires Unity 3.5.7 or higher.
Requires Unity Pro.

The Night Vision Effect is seen in many first-person shooter game in the market today.It is the effect of brightening the whole image using that very distinct lime green color.

*Tinted green
*Scan lines
*Noises
*Vignette

More details:
Youtube Video
Here is the web demo

If you have any questions/issues please contact me at kuangtoby8105@gmail.com . I will be glad to help you out.

Looks fantastic.

Thank you!

Small susgestion, can you make any sources of light more exaggerated.
So if looking direct at a light source with night vision on would amplify the light signature.

thats excellent cant wait to get it.

Thanks for your suggestion! You can adjust the “constrast” value to make sources of light more exaggerated.

1413550--74088--$Screen Shot 2013-11-11 at 上午9.48.06.png

1413550--74087--$Screen Shot 2013-11-11 at 上午9.41.10.png

Thanks,it won’t take long. :smile:

The package has been released now!

I really like this effect, it has a convincing and realistic look and is super easy to use…

However found a little trick for those that are interested…

I needed to toggle the night-vision effect on and off - which is easy enough to do… but while using the effect I noticed that in a really dark scene the visible ambient light level was not actually boosted like real-life NV equipment should/would do… perhaps I’ve just spent too many hours on guard-duty in real life with a NV scope pressed up to my eyes :slight_smile:

So I knocked up a simple little script that seems to work well for me… simply attach it to the same camera object your NightVisionEffect is attached to:

namespace Assets
{
    [RequireComponent(typeof(NightVisionEffect))]
    public class NightVisionBooster : MonoBehaviour
    {

        public KeyCode NighVisionToggleKey = KeyCode.N;
        public bool BoostVisibleLight;
        [Range(0, 20)]
        public float BoostedVisibleLightValue = 10;

        private NightVisionEffect _nightVision;
        private float _originalAmbientLight;

        void Start ()
        {
            _nightVision = gameObject.GetComponent<NightVisionEffect>();
            _originalAmbientLight = RenderSettings.ambientIntensity;
        }
 
        void Update () {
            if (Input.GetKeyDown(NighVisionToggleKey))
            {
                _nightVision.enabled = !_nightVision.enabled;
                RenderSettings.ambientIntensity = BoostVisibleLight && _nightVision.enabled ? BoostedVisibleLightValue : _originalAmbientLight;
            }
        }
    }
}

The designated input key (defaultg “N”) toggles the Night Vision on and off and you have the option of boosting the ambient light and to which level… in my scene somewhere between 5 and 10 worked well. but this will depend on a lot of other factors.

Hope this helps someone, perhaps the option of boosting light and the amount can be included in a future update?

I was also looking for something similar, but I realized that writing this myself or finding a ready-made one is unrealistic. Since I need the effect to work from complete darkness. Not forgetting about the particles of transparent materials and the like. In addition, “set replacement shader”, which will increase optimization, and not kill it.