UPDATE, Sep 6, 2020: New version for download. Improved further, with all-new addition of code to smoothly vary illumination by Sun angular elevation during transition from day through night! Overall more realistic.
The following 3-panel image shows the transition from day to twilight to night. In each successive frame the viewpoint has been pulled farther back, in order to show the increasing coverage of ground lighting as darkness proceeds. This makes the central bright spot at the strike location appear to not increase in brightness the way it actually does due to attenuation by the fog effect. In all instances the cloud base is at 1000m.
From the Readme.txt file included:
This mod improves the lightning effect seen during "Thunder" type weather.
It should be compatible with all game versions--I think.
It's important that the Body.msh I supply here, wherein the size has been doubled, is used with this mod.
=============================================================
Several elements go into the total effect, all lasting 0.5 second. In the stock implementation:
- A lightning bolt is drawn, extending from the surface (but not quite so for 2 variants) up to the set height of the cumulus cloud base.
- The lightning bolt is randomly selected from 5 variations in the mesh.
- The interval between flash events is randomly 4 to 8 seconds.
- A light surce is placed 100m below the ground, and is used to light the landscape tiles ONLY. (If this light source is placed above ground, no landscape tile illumination occurs.)
- A light source is placed above ground, 1/3 the way from the surface to the cloud base. This lights up ground objects and 3-D trees (not the layered forests), and the cloud above.
- A sort of 'blast'-like circular texture is placed on the ground, brightest in the center, and is controlled in part at least by the above-ground light source.
=============================================================
The changes:
- Increased the overall size of the lightning bolt mesh, from 1000m to 2000m tall, but retained the same bolt width. Gives a sharper line.
- Fixed the two bolt variations that formerly didn't quite reach the surface.
- Altered the bolt scaling so that they now extend to 1000m higher than the cloud base. Looks much better to see bolts fading up into the clouds, instead of suddenly stopping at their top ends at the cloud base.
- Moved the underground light source from -100m to -500m, decreased its intensity and increased its range. This makes for a subtler ground lighting that extends (at night) to several km.
- Moved the formerly above-ground light source (which varied as 0.3 times the cloud base height) to always 50m below the surface. Also decreased the intensity, but retained the same range. This reduces the brilliance of object and (to a lesser extent) the cloud brightness.
- Altered the illumination from pure white to pinkish.
- Changed the event interval from 4-8s to 1-5s.
- Added all-new code to take into account the altitude of the Sun, so as to smoothly control the illumination during the twilight period (Sun altitude between +6 and -17 degrees). In the daytime the cloud lighting is noticeably weaker, and the ground lighting very much so. During the darkening of twilight, illumination intensity increases. More realistic!
=============================================================
I include the original Body.msh, as well as my Java code in Zip.java (with many comments for ease of interpretation.)
As always with my mods, this work is offered for use or alteration by anyone for any purpose, without restriction.
WxTech
Sep 6, 2020
Get it here
https://www.mediafire.com/file/u2sk302hli9mo8z/file