Ravenfield

Ravenfield

Not enough ratings
How to make Forward Looking Infra Red camera for EA26
By Hijong park
This guide teaches how to make Proper, No X-ray FLIR in unity 2020.
   
Award
Favorite
Favorited
Unfavorite
Getting Started


FLIR is a useful tool for Modern attack aircrafts. It allows you to seek the enemies easier in dark or smoke heavy environments. Many people including me have made a FLIR system previously, but due to lack of experiences, the units were visible through walls and grounds like a X-ray. Some talented modders including Thor have made a proper Thermal camera that don't cause X-ray effect, But ravenfield is now had been ported to Unity 2020 and previous methods don't work anymore.

With my great neck-breaking and eye-straining frustrations, I have managed to make proper FLIR in Unity 2020 for EA26 and future versions.

I really hope no more modders would suffer like me, so I decided to make a guide of making FLIR for Unity 2020.
Things you need
- Unity 2020 (2020.3.25.f1 is recommended)

- Unity 2020 toolspack (https://drive.google.com/file/d/1PBHoEtdvtAkpQ3yaPSHbibtfO5EC6Onn/view)

- Post processing unity package

In Unity 5, various visual effects were available for camera but they are all gone in unity 2020. Instead you can use post-processing effects.


Post processing is not available by default, you need to download the package.

go to windows - package manager and select packages : unity registry.

then find Post processing package and install it.
how to make FLIR
1. you need 3 cameras and 2 render texture.

MMS camera back display ground and walls that are suppossed to be dark in FLIR.

MMS camera mask masks units in front of walls to make them transparent.

MMS camera unit displays units and background.

2 render textures can have exact same settings or not, your choice.









2. assign camera mask components as these pictures.

(about Post processing layer, all 3 cameras have Default, water, ragdoll, vehicle, actor, capturepoint checked)





3. assign camera back components and apply post processing effect as these pictures.





3. assign camera unit components and apply post processing effect as these pictures.

note that both back and unit camera should have same pose process volume. for some reason ravenfield can't display more than 2 post processing effects at once. (Any unity experts please explain why this happens.)






The important factors are camera depth and rendering path.

if camera depth is not in this order the FLIR will look broken, and I recommend to use legacy vertex lit as this rendering path has very primitive graphics, which is rather suitable for FLIR and boosts performance.

4. put each render textures at 2 raw images and put them in the same position. the background texture should have darker color and higher order in layer, vise versa for unit texture.



then it's finished.
Troubleshooting
while FLIR works fine in most maps, I found that my FLIR is not working properly in some of Sofa's custom maps : Oblast highway, Archipelahgo revisitied, border highlands, and wooded hills

It is completely mystery why FLIR is bugged in these specific maps. I can only assume that it's unity version issue, but most old maps that made before EA26 are working fine so It's not really right.
20 Comments
Hijong park  [author] 28 Oct, 2022 @ 5:19pm 
put camera in HUD
AoiYuui 18 Oct, 2022 @ 5:06am 
All of the vehicles share the same camera, how can i solve this
ODESSARAMBO 30 Sep, 2022 @ 3:52am 
Awesome! :rwromg: Thanks for making a detailed step-by-step guide and showing how and what needs to be done! To be honest, this is quite bizarre that there are only a few guides like this. Do you also consider doing something like this for other parts of a cockpit (GPS minimap, tilt, etc)? I would really love to see those as well
Hijong park  [author] 20 Aug, 2022 @ 4:44pm 
read description carefully.
apacheboy16 20 Aug, 2022 @ 3:52pm 
how do u use weapon system?

For like hellfires and things.
Hijong park  [author] 22 Jul, 2022 @ 4:46pm 
At someday when I fully mastered DCS world AH-64D.
luckytiger 22 Jul, 2022 @ 4:39pm 
thanks alot for the info! also, will there ever be an ah-64d?
Hijong park  [author] 21 Jul, 2022 @ 1:24pm 
And guardian had been replaced by ah-64a
Hijong park  [author] 21 Jul, 2022 @ 1:24pm 
Apache's high action display is colored green. Those black and white screens with white texts are only applied on recorded guncam videos
luckytiger 21 Jul, 2022 @ 10:56am 
hey hijong i think that maybe you should replace ah64a tads with a white text instead of green, just a thought considering it is a little bit weird, also why is the apache guardian gone?