Night Vision the RIGHT Way | Unity Tutorial
HTML-код
- Опубликовано: 20 сен 2024
- Learn how to create a night vision effect in Unity without shaders that even works in complete darkness, just like Splinter Cell.
SUBSCRIBE
Subscribe for more game dev tips and tutorials: bit.ly/3edJUA5
CODE
NightVisionController: pastebin.com/H...
Wonderful work! People like you deserve much more recognition for sharing knowledge in such a simple and easy follow way. Great job!
Simple, short and to the point videos without adding any unnecessary details. I would love to see more from you.
looks awsome!
just some little bits of info from someone who has night vision that might help someone if they want to make realistic night vision in a game:
1. light blooming: light sources apear much brighter under nods, like staring at the sun bright.
2. focus: nightvision is always focused to a distance that you choose, most people focus it to a long distance to see most things clearly, but this means that anything within a few feet of you will appear blurry and out of focus.
3. Blems: many used night vision devices have blemishes on the tube, appearing as small black dots and blotches in your view.
4. Colors: theres actually a number of different colors for night vision: Green Phosphor, White Phosphor(blue), and Amber(slightly more yellowish green)
Idk if this will ever help anyone but i just thought to spread some of my knowlage just incase it could be usefull to anyone :)
Thanks for the extra info! For anyone reading this comment, here's how you can achieve this by changing your post processing profile:
1. Light blooming: Add Bloom and tweak the threshold and intensity values until you get the desired effect
2. Focus: Add Depth of Field and tweak the start and end values
3. Blemishes: Add a dirt texture to the Bloom effect
4. Colour: Adjust the colour grading profile to match the different colours
Just out of curiosity, does it make a noise when they're turned on, or is that just in the games? :D
@@JamesMakesGamesYT i wish it made the noise, sadly it doesnt. but on much older night vision like the soviet PNV57, the battery pack does make a slight whine sound :)
Short sweet epic unity tricks... keep em coming!
Here before 50 subscribers, soon you'll have 50k
Thanks for the kind words Gabriel!
Nice tutorial! Can you make a video about getting high performance realistic lighting for a mixed movability scene (both static and non-static objects in scene). What I mean is performance efficient lighting, not just all realtime lights. There are a lot of features like light probes and stuff, but I don't know how to use those features to get good lighting quality of UE with good performance.
Thank you so much it's so easy and help me a lot of in my project
No problem! What project are you working on?
@@JamesMakesGamesYT horror game
Oh yeah, the night vision will work really well with that! Best of luck!
Gran trabajo 👌 más adelante pondré en práctica muchas gracias saludos desde Argentina
como te fue bro? terminaste el proyecto?
Correct me if i'm wrong, but this won't work with baked lights as the ambient light is already baked into the lightmaps, doesn't it?
Good question! I'm not 100% sure as I haven't worked with baked lights before, but I'll have to try it out with baked lighting in the future
Sadly you are correct.
So, with mine, It somewhat works. The keybind works, etc etc. shows green in editor, HOWEVER, When actually playing on that map, pressing N doesn't make the camera lens go green, it just brightens up the world a little. Any reason on why?
nvm I broke it even more, upgraded to urp and it doesn't even show anything now.
Grazie, video interessante
More of these please
I have some more videos on the way! What other topics are you interested in?
@@JamesMakesGamesYT My favorite videos have to be the ones on how to optimize your code
Don't get me wrong- this is a great video, well explained- but "Night Vision Right Way", there is no "right way" for aesthetics :D
Good video but i have a question.. if game is multiplayer, the ambiente light is changing for all players?
Na man, it's only you!
how come just tinting the scene green is the "RIGHT" way? i don't even wanna know what the wrong way is then
This tutorial also includes changing the lighting so you can see in dark areas
For some reason the nightvision affect isn't applying to my camera, I'm using HDRP so I don't know if that could be why. As when I added the Color Grading feature it never changed everything to green
Interesting, if you go to your main camera, can you double check if the post processing checkbox is checked?
@@JamesMakesGamesYT I couldn't seem to find a check box for post processing. I do know the cameras in HDRP are quite different from URP cameras as the HDRP cameras are like physical cameras you can everything you could change with a real life camera so I don't know if that's why it could not be working like maybe something in the settings but I'm sure I'll figure it out
what if i have other post effects, will it turn those off too
I think if you create a separate post processing profile for general effects and night vision, then they wont affect each other
@@JamesMakesGamesYT oaky thanks
Pl make more toutorual on how ti make games
Night Vision the WRONG Way. Doesn't work with baked lighting, and is completely unrealistic.
This is HDRP only