Jump to content

NVG Mod


Recommended Posts

Mr_mojo97, your problem were the curled braces {}. They need to enclose both lines. However, in your graphics.cfg the lines were outside the braces:

PrecompiledEffects
{
}    //mode = "USE_PRECOMPILED_EFFECTS_FOR_UNCHANGED_FILES";
    //mode = "USE_PRECOMPILED_EFFECTS_ONLY";

 

It should be:

 

PrecompiledEffects
{
     mode = "USE_PRECOMPILED_EFFECTS_FOR_UNCHANGED_FILES";
   //mode = "USE_PRECOMPILED_EFFECTS_ONLY";
}

 

The double slashes // are the block comment symbol for this file type. It means the program disregards any code after that on the same line.

The curled braces signify a grouping, so the program knows that mode belongs to PrecompiledEffects.

 

I can confirm the mod works exactly the same in 1.2.3

[sIGPIC][/sIGPIC]

  • CPU i7 4970k @ 4.7 GHz
  • RAM 16GB G.Skill TridentX 1600
  • ATX ASUS Z97-PRO
  • DSU Samsung 850 PRO 256GB SSD for Win10, Plextor M6e 128GB SSD for DCS exclusively, RAID-1 HDDs
  • GFX Aorus GTX 1080 Ti 11GB Xtreme Edition, ASUS ROG Swift PG279Q, 27" with G-Sync, Oculus Rift CV1

  • HID TM HOTAS Warthog + 10 cm extension, MFG Crosswind pedals, TrackIR 5, Obutto oZone

 

My TM Warthog Profile + Chart, F-15C EM Diagram Generator

Link to comment
Share on other sites

Thanks, man. I´ll try to set this new mod this afternoon.

 

Here you are:

Sizes:

const float2 EYE_SIZE = float2(0.31091f,1.03636f);
const float2 MASK_SIZE = float2(0.58295f,1.03636f);

 

Centers:

const float2 EYE_CENTER = float2(0.26667f,0.55250f);
const float2 MASK_CENTER = float2(0.50000f,0.55250f);

 

Blurred Rim:

const float INNER_RANGE_MIN = 0.825f;
const float INNER_RANGE_MAX = 0.883f;
const float OUTTER_RANGE_MIN = 0.927f;
const float OUTTER_RANGE_MAX = 1.000f;
const float INNER_RANGE_DIST_MIN = 0.869f;
const float INNER_RANGE_DIST_MAX = 0.927f;

 

You must decide for yourself if you want a zoomed NVG

const int RENDER_MODE = 1;

or one without zoom

const int RENDER_MODE = 0;

and if you like the lens distortion effect:

const bool ENABLE_RIM_DISTORT = true; // (false to disable) 

 

The rest (color and noise) you can leave as they are. Have fun!

 

It didn´t work! Attached there is a picture of the results.

Screen_130303_122411_zps03e7f8c2.png

The NVG is too big, off to the left, and there is a NVG mask in the HUD (I believe some remainings from PeterP´s mod).

Another thing: You tell me to set some config to MASK_SIZE and MASK_CENTER, but I didn´t find it in the file nvg_mod.hlsl. Where are these lines?

SO, can you tell me what is wrong and how to get rid of this NVG mask?

Just for remember: my monitors are a 1920 x 1080 and a 1680 x 1050, so I believe my config is 3600 x 1080, right?

Link to comment
Share on other sites

For the other NVG mask in the HUD look for all files associated with PeterP's mod and return them to their original (unmodded) version. If problems remain run "repair DCS World" in the start menu, but be sure to backup any other mods you have installed.

 

For this NVG mod, try this version. You'll find the MASK_SIZE and MASK_CENTER lines in there.

 

I can't explain the off-center placement. Perhaps it had to do with the version you're using. Try these values for a smaller goggle:

 

Sizes:

const float2 EYE_SIZE = float2(0.29075f,0.96915f);
const float2 MASK_SIZE = float2(0.54515f,0.96915f);

 

Centers:

const float2 EYE_CENTER = float2(0.26667f,0.59719f);
const float2 MASK_CENTER = float2(0.50000f,0.59719f);

 

Blurred Rim:

const float INNER_RANGE_MIN = 0.790f;
const float INNER_RANGE_MAX = 0.860f;
const float OUTTER_RANGE_MIN = 0.912f;
const float OUTTER_RANGE_MAX = 1.000f;
const float INNER_RANGE_DIST_MIN = 0.843f;
const float INNER_RANGE_DIST_MAX = 0.912f;


Edited by PhoenixBvo
link updated

[sIGPIC][/sIGPIC]

  • CPU i7 4970k @ 4.7 GHz
  • RAM 16GB G.Skill TridentX 1600
  • ATX ASUS Z97-PRO
  • DSU Samsung 850 PRO 256GB SSD for Win10, Plextor M6e 128GB SSD for DCS exclusively, RAID-1 HDDs
  • GFX Aorus GTX 1080 Ti 11GB Xtreme Edition, ASUS ROG Swift PG279Q, 27" with G-Sync, Oculus Rift CV1

  • HID TM HOTAS Warthog + 10 cm extension, MFG Crosswind pedals, TrackIR 5, Obutto oZone

 

My TM Warthog Profile + Chart, F-15C EM Diagram Generator

Link to comment
Share on other sites

For the other NVG mask in the HUD look for all files associated with PeterP's mod and return them to their original (unmodded) version. If problems remain run "repair DCS World" in the start menu, but be sure to backup any other mods you have installed.

 

For this NVG mod, try this version. You'll find the MASK_SIZE and MASK_CENTER lines in there.

 

I can't explain the off-center placement. Perhaps it had to do with the version you're using. Try these values for a smaller goggle:

 

Sizes:

const float2 EYE_SIZE = float2(0.29075f,0.96915f);
const float2 MASK_SIZE = float2(0.54515f,0.96915f);

 

Centers:

const float2 EYE_CENTER = float2(0.26667f,0.59719f);
const float2 MASK_CENTER = float2(0.50000f,0.59719f);

 

Blurred Rim:

const float INNER_RANGE_MIN = 0.790f;
const float INNER_RANGE_MAX = 0.860f;
const float OUTTER_RANGE_MIN = 0.912f;
const float OUTTER_RANGE_MAX = 1.000f;
const float INNER_RANGE_DIST_MIN = 0.843f;
const float INNER_RANGE_DIST_MAX = 0.912f;

 

You´re right about the version. I was using the previous one. I did like you told me to, and everything is working like a charm (so far)! My mods (Helios and TARS) are working well. You´re the man!

Link to comment
Share on other sites

I think I'm to stupid to figure the nrs out.

 

I have a 1920*1680 game resolution, with a 1920*1080 main viewport... (have some small LCD screens under the main monitors with the MFD's)

 

Help !

dUJOta.jpg

 

Windows 11 | i9 12900KF | 64GB DDR4 | RTX 3090 | TM Warthog HOTAS | Saitek Combat Rudder Pedals | TM MFDs + Lilliput 8" | TIR5 Pro

Link to comment
Share on other sites

I think I'm to stupid to figure the nrs out.

 

I have a 1920*1680 game resolution, with a 1920*1080 main viewport... (have some small LCD screens under the main monitors with the MFD's)

 

Help !

 

Use this version and try these settings:

 

Sizes:

const float2 EYE_SIZE = float2(0.57722f,0.65967f);
const float2 MASK_SIZE = float2(0.57722f,1.02616f);

 

Centers:

const float2 EYE_CENTER = float2(0.50000f,0.71943f);
const float2 MASK_CENTER = float2(0.50000f,0.57467f);

 

Blurred Rim:

const float INNER_RANGE_MIN = 0.790f;
const float INNER_RANGE_MAX = 0.860f;
const float OUTTER_RANGE_MIN = 0.912f;
const float OUTTER_RANGE_MAX = 1.000f;
const float INNER_RANGE_DIST_MIN = 0.843f;
const float INNER_RANGE_DIST_MAX = 0.912f;


Edited by PhoenixBvo
link updated
  • Like 1

[sIGPIC][/sIGPIC]

  • CPU i7 4970k @ 4.7 GHz
  • RAM 16GB G.Skill TridentX 1600
  • ATX ASUS Z97-PRO
  • DSU Samsung 850 PRO 256GB SSD for Win10, Plextor M6e 128GB SSD for DCS exclusively, RAID-1 HDDs
  • GFX Aorus GTX 1080 Ti 11GB Xtreme Edition, ASUS ROG Swift PG279Q, 27" with G-Sync, Oculus Rift CV1

  • HID TM HOTAS Warthog + 10 cm extension, MFG Crosswind pedals, TrackIR 5, Obutto oZone

 

My TM Warthog Profile + Chart, F-15C EM Diagram Generator

Link to comment
Share on other sites

Any idea how to get this working for a 1920*1200 res? There was me thinking it'd just work as I only use a single monitor.

 

Spoiler

Intel 13900K (5Ghz), 64Gb 6400Mhz, MSi RTX 3090, Schiit Modi/Magi DAC/AMP, ASUS PG43UQ, Hotas Warthog, RealSimulator FSSB3, 2x TM MFDs + DCS MFDs, MFG Crosswinds, Elgato Steamdeck XL

 

Link to comment
Share on other sites

Any idea how to get this working for a 1920*1200 res? There was me thinking it'd just work as I only use a single monitor.

 

Try:

 

Sizes:

const float2 EYE_SIZE = float2(0.55882f,0.89412f);
const float2 MASK_SIZE = float2(0.55882f,0.89412f);

 

Centers:

const float2 EYE_CENTER = float2(0.50000f,0.62000f);
const float2 MASK_CENTER = float2(0.50000f,0.62000f);

 

Blurred Rim:

const float INNER_RANGE_MIN = 0.850f;
const float INNER_RANGE_MAX = 0.900f;
const float OUTTER_RANGE_MIN = 0.938f;
const float OUTTER_RANGE_MAX = 1.000f;
const float INNER_RANGE_DIST_MIN = 0.887f;
const float INNER_RANGE_DIST_MAX = 0.938f;

Link to comment
Share on other sites

Perfect, cheers.

 

Spoiler

Intel 13900K (5Ghz), 64Gb 6400Mhz, MSi RTX 3090, Schiit Modi/Magi DAC/AMP, ASUS PG43UQ, Hotas Warthog, RealSimulator FSSB3, 2x TM MFDs + DCS MFDs, MFG Crosswinds, Elgato Steamdeck XL

 

Link to comment
Share on other sites

I'm a fool who can't figure this out. Can you hook a brother up with those mumbo jumbo numbers? :) I have two monitors. The left one(main) is 1920x1080. The right one is 1440x900. Combined resolution is 3360x1080. I don't have any other night vision mod installed but I edited the focus.png file awhile back. At the time it was off center to the right because of Helios for some reason. Would I have to put the original focus.png back in its place before I do this mod?

Thanks a great deal for any help.

Link to comment
Share on other sites

Hi!

 

First off: love the mod, well done!! However found 1 thing (might be operator error, don't know :) ):

The "clickzones" in the NVG sight are offset so to speak. What I mean is that when I try to click a button, my mouse isn't "on the switch" if you know what I mean.. Not sure if I'm explaining myself properly :D

Link to comment
Share on other sites

I'm a fool who can't figure this out. Can you hook a brother up with those mumbo jumbo numbers? :) I have two monitors. The left one(main) is 1920x1080. The right one is 1440x900. Combined resolution is 3360x1080. I don't have any other night vision mod installed but I edited the focus.png file awhile back. At the time it was off center to the right because of Helios for some reason. Would I have to put the original focus.png back in its place before I do this mod?

Thanks a great deal for any help.

 

Leave focus.png as is, this mod doesn't use it.

 

Use this version of the mod and try these (copy - paste into nvg_mod.hlsl to replace the existing lines):

 

Sizes:

const float2 EYE_SIZE = float2(0.32984f,1.02616f);
const float2 MASK_SIZE = float2(0.57722f,1.02616f);

 

Centers:

const float2 EYE_CENTER = float2(0.28571f,0.57467f);
const float2 MASK_CENTER = float2(0.50000f,0.57467f);

 

Blurred Rim:

const float INNER_RANGE_MIN = 0.790f;
const float INNER_RANGE_MAX = 0.860f;
const float OUTTER_RANGE_MIN = 0.912f;
const float OUTTER_RANGE_MAX = 1.000f;
const float INNER_RANGE_DIST_MIN = 0.843f;
const float INNER_RANGE_DIST_MAX = 0.912f;


Edited by PhoenixBvo
link updated

[sIGPIC][/sIGPIC]

  • CPU i7 4970k @ 4.7 GHz
  • RAM 16GB G.Skill TridentX 1600
  • ATX ASUS Z97-PRO
  • DSU Samsung 850 PRO 256GB SSD for Win10, Plextor M6e 128GB SSD for DCS exclusively, RAID-1 HDDs
  • GFX Aorus GTX 1080 Ti 11GB Xtreme Edition, ASUS ROG Swift PG279Q, 27" with G-Sync, Oculus Rift CV1

  • HID TM HOTAS Warthog + 10 cm extension, MFG Crosswind pedals, TrackIR 5, Obutto oZone

 

My TM Warthog Profile + Chart, F-15C EM Diagram Generator

Link to comment
Share on other sites

Hi!

 

First off: love the mod, well done!! However found 1 thing (might be operator error, don't know :) ):

The "clickzones" in the NVG sight are offset so to speak. What I mean is that when I try to click a button, my mouse isn't "on the switch" if you know what I mean.. Not sure if I'm explaining myself properly :D

 

Hey DarkEagle,

 

you have Matlab as well, don't you? ;)

 

The problem you describe is quite simply due to the zoom effect of the NVG. You'll notice that the cursor position matches the buttons in the center of the goggle field of view and the offset becomes larger towards the edges.

The only workaround is to choose RENDER_MODE = 0 (without zoom). This isn't unrealistic either since the real ANVIS-9 and OVN-1 have no noticeable zoom themselves.

[sIGPIC][/sIGPIC]

  • CPU i7 4970k @ 4.7 GHz
  • RAM 16GB G.Skill TridentX 1600
  • ATX ASUS Z97-PRO
  • DSU Samsung 850 PRO 256GB SSD for Win10, Plextor M6e 128GB SSD for DCS exclusively, RAID-1 HDDs
  • GFX Aorus GTX 1080 Ti 11GB Xtreme Edition, ASUS ROG Swift PG279Q, 27" with G-Sync, Oculus Rift CV1

  • HID TM HOTAS Warthog + 10 cm extension, MFG Crosswind pedals, TrackIR 5, Obutto oZone

 

My TM Warthog Profile + Chart, F-15C EM Diagram Generator

Link to comment
Share on other sites

Hi!

 

First off: love the mod, well done!! However found 1 thing (might be operator error, don't know :) ):

The "clickzones" in the NVG sight are offset so to speak. What I mean is that when I try to click a button, my mouse isn't "on the switch" if you know what I mean.. Not sure if I'm explaining myself properly :D

 

Open nvg_mod.hlsl in notepad++

go to line 75, change value from 1 to 0

const int RENDER_MODE = 0;

Link to comment
Share on other sites

Leave focus.png as is, this mod doesn't use it.

 

Use this version of the mod and try these (copy - paste into nvg_mod.hlsl to replace the existing lines):

 

Sizes:

const float2 EYE_SIZE = float2(0.32984f,1.02616f);
const float2 MASK_SIZE = float2(0.57722f,1.02616f);

 

Centers:

const float2 EYE_CENTER = float2(0.28571f,0.57467f);
const float2 MASK_CENTER = float2(0.50000f,0.57467f);

 

Blurred Rim:

const float INNER_RANGE_MIN = 0.790f;
const float INNER_RANGE_MAX = 0.860f;
const float OUTTER_RANGE_MIN = 0.912f;
const float OUTTER_RANGE_MAX = 1.000f;
const float INNER_RANGE_DIST_MIN = 0.843f;
const float INNER_RANGE_DIST_MAX = 0.912f;

 

Thank you thank you thank you. Great mod :thumbup:

Link to comment
Share on other sites

Hey DarkEagle,

 

you have Matlab as well, don't you? ;)

 

The problem you describe is quite simply due to the zoom effect of the NVG. You'll notice that the cursor position matches the buttons in the center of the goggle field of view and the offset becomes larger towards the edges.

The only workaround is to choose RENDER_MODE = 0 (without zoom). This isn't unrealistic either since the real ANVIS-9 and OVN-1 have no noticeable zoom themselves.

 

Yes, I do have matlab :)

 

The zoom-effect is one of the great features I think :pilotfly:

Will try the alteration. But seeing it's "known" I will try to live as is, untill a fix is made for this. Will see.

 

Thanks!

Link to comment
Share on other sites

  • 2 weeks later...
Just a suggestion, but I used to fly on these all the time and the bezel is a bit too small. Double what it is now would be closer to actual imo.

 

Great mod! I'm going to try it out tonight.

 

Hi johnv2pt0

Yes the bezel is to small in the nvg_mod_1.0v4b2.zip.

 

If you download and use the ver of Peterp nrgized nvgmod_1.0v3 with Ka-50.zip

It's simply perfect!!!! If you have a 1920x1200 monitor i send you my modify file for improve realism like true FOV tube and reduced Noise.

 

Bye Bye

[sIGPIC][/sIGPIC]

Link to comment
Share on other sites

  • 3 weeks later...

Hi all, having an issue. I've just installed another monitor for use with iControl only to get my CDU on my iPad but now the nvg mod has stretched. The new resolution is 1920 (left and main monitor) x 2104, it has an aspect ration of 0.91 if that's any use. Could anyone please tell me how to fix this. Ta

MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case |

 

Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |

Link to comment
Share on other sites

Anyone help at all? I understand the numbers game now but I can't see where to change them! Which file am I supposed to be looking in with Notepad++ - nvd.fx or nvg_mod.hlsl? Either way I can't find the sections I'm supposed to edit. Cheers

MSI M5 z270 | Intel i5 7600k (OC) 4.8GHz | MSI GTX1080ti Gaming X 11Gb | 500gb Samsung 970 Evo NVME M.2 (DCS World) | 500gb Samsung 850 Evo SSD (OS and Apps) | 32Gb 2400MHz DDR4 - Crucial Ballistix | Be Quiet Silent Loop 240mm | NZXT H440 case |

 

Thrustmaster Warthog - 47608 with Virpil Mongoose joystick base | MFG Crosswinds - 1241 | Westland Lynx collective with Bodnar X board | Pilot's seat from ZH832 Merlin | JetSeat | Oculus Rift S | Windows 10 | VA |

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...