The particle file format is a simple ASCII listing of the current status of every particle in the system. Rendering, mass, generator, and other information is carried in the wire file or SDL file. The file is all space-separated:
Field | Type | Comments |
<file_type> | Integer | Two possible values currently: 4 or 5 |
<num_blobs> | Integer | The number of particles in this file. |
<blob_info> (See the following table. There are 'num_blobs' entries of this type.)
For type 4 particles (normal), information for each blob is described below.
Field | Type | Comments |
<start_x> | Float | X position of particle at start of frame. |
<start_y> | Float | Y position of particle at start of frame. |
<start_z> | Float | Z position of particle at start of frame. |
<end_x> | Float | X position of particle at end of frame. |
<end_y> | Float | Y position of particle at end of frame. |
<end_z> | Float | Z position of particle at end of frame. |
<R> | Float | Red color of particle in this frame. |
<G> | Float | Green color of particle in this frame. |
<B> | Float | Blue color of particle in frame. |
<cycles_left> | Integer | Number of cycles left in the particle’s life. |
<cycles_total> | Integer | Total number of cycles in the particle’s life. |
For type 5 particles (diffusing gas particles), information for each blob is described below.
Field | Type | Comments |
<start_x> | Float | X position of particle at start of frame. |
<start_y> | Float | Y position of particle at start of frame. |
<start_z> | Float | Z position of particle at start of frame. |
<end_x> | Float | X position of particle at end of frame. |
<end_y> | Float | Y position of particle at end of frame. |
<end_z> | Float | Z position of particle at end of frame. |
<R> | Float | Red color of particle in this frame. |
<G> | Float | Green color of particle in this frame. |
<B> | Float | Blue color of particle in this frame. |
<cycles_left> | Integer | Number of cycles left in the particle’s life. |
<cycles_total> | Integer | Total number of cycles in the particle’s life. |
<start_size> | Float | Size of particle at start of frame. |
<end_size> | Float | Size of particle at end of frame. |