Unturned

Unturned

Not enough ratings
Thermal Goggles and the effects used
By SpeedMann.
This guide will help you create your own thermal goggles or check out the effects and tricks used to add them to your own mods!

Check out my Thermal Goggles mod!

Keep in mind that thermal goggles will break multiplayer without my Plugin [imperialplugins.com]!

If you use this Guide for your own thermal goggles please add the following information to your workshop page:
   
Award
Favorite
Favorited
Unfavorite
Unity Setup
This mod uses Postprocessing screen effects that require the Post Processing unity package.

Open Window Package Manager:


Search for the Post Processing package in Packages: Unity Repository and install it:



Download and add the Thermal Goggles Package:

Thermal Goggles Package[drive.google.com]
Glasses
Open one of the Glasses Objects from the Example Package you want to edit:
  • All Thermal Effects are tied to the light of the Night Vision to only be active when the goggles are turned on.


Thermal Highlighting:


The first Front and Back Objects contain the Projector to highlight all elements in the world.
The other Front and Back Projectors handle View Model Highlights (World and View Model Projectors could most likely be combined)
  • Under Ignore you can select Objects by Tag which should NOT be highlightet.
  • To avoid flickering in the view model in some orientations the front and back projectors are offset by 0.5 to properly overlap!
  • The Far Clip Plane and Orthographic Size need to be this big because the projector is tied to the third person model which is hidden in a fixed spot under the map when the player is in first person!

The Material set in the projector will be used on all applicable objects, this means we can set the color we want but also set the shader to allow wallhack as seen in the admin goggles



Post Processing:

There are a lot of post processing options used to get the cool Thermal Effect to work but the main things are:
  • Auto Exposure and Color Grading to dimm highlights and increase dark spots and make the image black and white.
  • Additionally Vignette and Grain help to get a more realistic effect and make them a bit less op.


UI Effect:

ThermalUI is a UI Effect used in addition to the Vignette effect to restrict field of view.
  • Sort Order -1 keeps the UI behind the vanilla Menus (Inventory, Options and so on)
  • Scale with Screen Size is used to keep the Effect Full Screen on all resolutions

Asset Files
Thermal Goggles:
  • Vision Civilian: Civilian night vision for the black and white effect
  • Nightvision_Fog_Intensity: Sets fog 0.8 for the new goggles and 1 for the old goggles to restrict range of the thermal

GUID 99e5905e52c444f5b63c4729e6bfdec7 Type Glasses Rarity Mythical Useable Clothing ID 42114 Size_X 2 Size_Y 1 Size_Z 0.175 Hair Beard Vision Civilian Nightvision_Fog_Intensity 1 Nightvision_Allowed_In_ThirdPerson true

Admin Goggles:

Is a simple clear night vision with no fog
GUID 1470a3ba46f4467c836fa72031cda153 Type Glasses Rarity Mythical Useable Clothing ID 42119 Size_X 2 Size_Y 1 Size_Z 0.175 Hair Beard Vision Military Nightvision_Color_R 114 Nightvision_Color_G 114 Nightvision_Color_B 114 Nightvision_Fog_Intensity 0 Nightvision_Allowed_In_ThirdPerson true