Wildfire simulation

From FlightGear wiki
Jump to: navigation, search

A wildfire (woodland, grassland etc) simulation is available in FlightGear 2.0.0 and later.

It is based on a cellular automata model of how wildfires spread. It is possible to set up fires that are shared (replicated) among users over MP for joint fire fighting efforts.



Wildfire dialog.jpg

The wildfire simulation can be configured via the configuration dialog available from "Environment->Wildfire settings":

Enabled: Fire simulation on/off. Cycling Enabled resets the fire simulation.

Share over MP: When set fire events, i.e. ignition and fire fighting, are sent/received over the MP network.

Show 3d models: Enable/disable rendering of the wildfire 3d models.

Crash starts fire: If your aircraft crashes somewhere inflammable there will be a fire.

Report score: Copilot reports success/failure of firefighting actions.

Save on exit: Save the fire event log when FlightGear exits. (Experimental)

Load Wildfire log: Load and execute a save fire event log. (Experimental)

Note: The fire and smoke models are particle systems so to see them Particle Systems must be enabled in the View->Rendering Options dialog.

Fire fighting

The Consolidated Aircraft PBY Catalina air tanker / water bomber can be used to drop water on wildfires.

Developer information

See Docs/README.wildfire.

Known problems

  • Huge fires are expensive and cause significant fps drop.
  • It appears the wildfire models are not removed properly from the scene graph. The frame rate impact (or part of) remains when 3d models are disabled and even after the Wildfire module has been reset.
  • Wind is not considered.
  • Crash starts fire does not consider the type of aircraft and the circumstances of the impact/crash, only the inflammability of the terrain.
  • Prior to FG 2.4.0, to save the wildfire state you need to add the line "WRITE ALLOW $FG_HOMEWildfire/fire_log.xml" to $fgroot/Nasal/IOrules. In FG 2.4.0 this is no longer needed.
  • Sharing the wildfire state over the multiplayer network doesn't work in FlightGear 2.0.0. This is fixed in later versions.

External links