XPMP2
X-Plane multiplayer library 2 - using instancing
Namespaces | Functions
Contrail.h File Reference

Manages contrails for an aircraft. More...

Go to the source code of this file.

Namespaces

 XPMP2
 

Functions

void XPMP2::ContrailCleanup ()
 Graceful shutdown. More...
 

Detailed Description

Manages contrails for an aircraft.

Contrails are created using X-Planes particle system. The particle emitter is embedded in one mostly empty object file in Resources/Contrail/Contrail.obj. This object is loaded once and then instanciated for any plane that needs contrails. Rendering particles can eat some FPS, hence it is up to the plugin to tell XPMP2 how many contrails to draw. Realistically, there should be one per engine, but that could dramatically increase the number of particles, so it might be advisable to just have one contrail rendered for a good effect but way less FPS hit.

See also
https://developer.x-plane.com/article/x-plane-11-particle-system/
Author
Birger Hoppe