Skip to reading
Shaders, Effects & Layered Scenery

33. Author a lightning bolt

Edition 0.86.4.0

Revised 0.86.4.0 edition with new supplements; earlier 0.86.3.4 lessons and screenshot labels are retained within the supplied PDF.

Download PDFView illustrations

Figure 23. Lightning has dedicated bolt controls. Amount and ordinary particle speed do not shape the bolt.

Source table from 33. Author a lightning bolt, page 37
ControlMeaning
Bolt Width / Bolt LengthOuter thickness and source-to-tip distance in scene units.
Flash DurationSeconds for one visible flash.
Time Between FlashesDark interval after a flash. Zero makes a continuous beam.
Bolt Jaggedness / SegmentsSideways irregularity and the number of line segments.
Primary / Emission ColorThe outer bolt and bright core.
Ribbon EffectA camera-facing flat strip instead of volumetric bolt geometry.
One Shot / Emit In GameOne flash, or repeating flashes; disable and re-enable to start again.

For a small spark try width 0.025, length 0.5, duration 0.05, interval 0.2 and 12 segments. For an important cue at low frame rates, make the flash longer so it is not missed.

Ribbon is not a trail. Moving the emitter moves the whole bolt. The bolt has no automatic sound, damage, collision, branching or scene light. Direction and the emitter/attach-point rotation define its orientation.

Page 37 of 93Permalink
Go to page