Hello, again I need help, and with night vision, which starts When I press “n”. Does anyone know how to do it?
Do you want technically accurate night vision or just kind of faked night vision?
I would like night vision, such as the Call of Duty Modewn Warfare.
Its that thread again
So, very, very faked night-vision?
You’ll need post-processing for this. Take the built-in noise effect (http://unity3d.com/support/documentation/Components/script-NoiseEffect.html), work with it to make it green filtered and call it a day. You should probably add some depth-of-field effect to it as well. Up the brightness as well.
remember that all Post-Processing in Unity is Unity Pro only.
Yup. Without Pro, your ability to implement any NVG-type effects are limited.
Thanks a lot. And is there any way to do this without Unity Pro?
No, not really. You could give everything a greenish material and swap them all at the appropriate time, that would intensive.
I have a post process shaders pack for PRO only here and it has nightvision as well as many others.
Couldn’t you put a green, semi transparent plane in front of the camera?
That’s not a bad idea at first, but color blending would not result in a lot of green colors. You would just blend the colors a bit.
NVGs give you a brightness based on the reflected or emitted near IR, which is then made into a green monochrome display. The human eye distinguishes shades of green well, which makes green a good color.
Suppose I have a Unity Pro version. So how do night vision?
I just told you a few posts ago, Aubergine also has a resource you can buy. I’m not going to walk you through it, post-processing is something you have to understand on a basic level before I could give you much advice.
Personally I think http://unity3d.com/support/documentation/Components/script-ColorCorrectionEffect.html would work well with the Noise filter to make a really nice Night Vision effect. And as a plus you could really tweak the ramp effect to get the ideal light amplifying effect.
Try a GUITextue with a green texture. It looks pretty good and can be adjusted it in script. I don’t like to use GUITextures that much but for this type of effect it works swell. (lol)
Those orange-brown hues are what the plane in front of the camera did when I tried that for a second. The result is pretty bad.
Are you looking for something like this?
I have this : http://leteckaposta.cz/164450464
Hey, please do not necessarily need help as I had two cameras, one normal and one with night vision, and I used the script:
var cam1 : Camera;
var cam2 : Camera;
private var camToggle : boolean;
function Awaker(){
cam1.enabled=true;
cam2.enabled=false;
camToggle=false;
}
function Update () {
if(Input.GetKeyUp(“n”)){
if(camToggle){
cam1.enabled=true;
cam2.enabled=false;
camToggle=false;
}
else{
cam1.enabled=false;
cam2.enabled=true;
camToggle=true;
}
}
}
When I shoot with an RPG so it kills me. Because do not charge flips and slams at me. And when I delete one camera then it goes again. You do not know how to do this to work? For when you shoot it with an RPG round explodes right at that moment? I have afterward bad script?