Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: Control the density of fog via a mission file's Weather section parameter  (Read 1022 times)

0 Members and 1 Guest are viewing this topic.

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6065

It's annoying to always have the fog density rigidly tied to the weather type. The game has an established trend whereby progressively worse weather has:
- More and deeper cumulus cloud.
- Denser fog.
- More disturbed sea state.

Nature doesn't always work that way. There can be inclement weather with calm air. And fog is generally disrupted by wind, it being far more common in still air or with a rather light wind.

It appears that the cumulus cloud and water states are inaccessible to us mortals, probably being controlled in a .dll.

But I see that fog would appear to be within our ability to control, via Mission.class and PlMission.class. In my own  4.12.2 game I had hard-coded an alteration to the fog density for a couple of weather types, making the fog denser for one and less dense for another. But in B.A.T. I'm unable to successfully work on Mission.class, it causing the game to hang when a mission is about to start.  :(

I suppose I could test out the following on my still-present 4.12.2 game...

My idea is to introduce another [Weather] section parameter in a mission file, by which to specify which of the fog densities to apply. In this way, for example, one could establish the densest fog in Clear weather, or have little or no fog in Rain/snow weather. This parameter could be called FogDensity, or something like that.

If this parameter is missing in a mission file, the usual defaults would apply.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

vonofterdingen

  • Missioneer
  • member
  • Offline Offline
  • Posts: 1326
Re: Control the density of fog via a mission file's Weather section parameter
« Reply #1 on: December 11, 2021, 12:37:24 PM »

That would be a great addition for mission building. As far as I know that is no current capacity to create ground fog at takeoff. Could/Would that be included in some way?  Non-standard additions to the .mis file in the current game, like a [MODS] section, get overwritten when editing files in the FMB. Would that be the case here as well?
Logged

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9556
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Control the density of fog via a mission file's Weather section parameter
« Reply #2 on: December 11, 2021, 01:02:55 PM »

I suppose you know this trick?
If it helps you!
https://www.sas1946.com/main/index.php/topic,48588.msg531782.html#msg531782
by vpmedia
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

vonofterdingen

  • Missioneer
  • member
  • Offline Offline
  • Posts: 1326
Re: Control the density of fog via a mission file's Weather section parameter
« Reply #3 on: December 11, 2021, 01:42:23 PM »

I had not seen those mods before. Many thanks.
Logged

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 8630
Re: Control the density of fog via a mission file's Weather section parameter
« Reply #4 on: December 11, 2021, 02:09:56 PM »

This never worked.
Logged

genXgamer

  • member
  • Offline Offline
  • Posts: 1384
Re: Control the density of fog via a mission file's Weather section parameter
« Reply #5 on: December 11, 2021, 02:38:15 PM »

G'day WxTech

I really hope you can improve this.
My Morning Glory mission suffered badly from this, 75 squadron flies all the way from 7 mile to Lae and when they arrive you can't even see the runway and the 30 planes neatly lined up either side of the strip.
If was very disappointing.
Logged
Go in quickly - Punch hard - Get out!

Epervier

  • 4.09 Guardian Angel !
  • SAS Team
  • member
  • Offline Offline
  • Posts: 9556
  • I'm French and Rebel_409! Nobody is perfect!
    • Some tinkering here
Re: Control the density of fog via a mission file's Weather section parameter
« Reply #6 on: December 11, 2021, 03:09:05 PM »

This never worked.
I had never tested this mod... indeed it doesn't work!  ::(
It's a shame !  :-X
Logged
If your results do not live up to your expectations, tell yourself that the great oak was once an acorn too. - Lao Zi -

WxTech

  • Modder
  • member
  • Offline Offline
  • Posts: 6065
Re: Control the density of fog via a mission file's Weather section parameter
« Reply #7 on: December 11, 2021, 03:16:43 PM »

Gabriel,
That little mod you pointed to deals only with the texture that fakes a kind of 'dynamic fog' in the immediate vicinity of the player's POV. It gives a sense of movement as the camera POV moves. I think it's only used during the infamous morning fog, as well as when flying through cloud.

The fog I'm discussing is the widespread hazing of the landscape, and which impacts surface visibility even if the player's POV is above it.
Logged
Great minds discuss ideas. Average minds discuss events. Small minds discuss people. - Hyman Rickover (but probably predating his use.)

Vampire_pilot

  • member
  • Offline Offline
  • Posts: 8630
Re: Control the density of fog via a mission file's Weather section parameter
« Reply #8 on: December 12, 2021, 01:53:13 AM »

If was very disappointing.

You slept in. Blame mission planning brass for it.

Seriously speaking, mission building at dawn involves fine calculation to avoid mist over target (or actually just encounter the right amount of mist, if that's a choice).
All you have to do is place  camera, run a few time settings and chose the situation you want.
Never simply rely on a timestamp in IL-2 to turn out exactly as described in some book. Make the mission fit. Most of the time it's just a question of +/- 30 minutes or so anyway
Logged
Pages: [1]   Go Up
 

Page created in 0.033 seconds with 24 queries.