CParticleEmitter2
struct · models · 656 bytes
- Vtable
0x81d83c- Meaning
- Holds a model particle emitter: its particles, parameters, gradients, matrices and flags
- Confidence
- verified, proof one
- Finding
- models/emission#record-to-emitter
Finding: Record to emitter in models: emission
The record's scalars land in the emitter as follows; the twinkle, spin and follow terms are used by the draw and the update.
| record | emitter |
|---|---|
+0x180, +0x184 | twinkle speed +0x1b0, visible fraction +0x1b4 |
+0x188, +0x18c | twinkle scale: minimum +0x1b8, range +0x1c0 = max − min |
+0x190 | inherited velocity scale +0x1c4 |
+0x194, +0x198 | drag +0x1e0, spin +0x18c |
+0x19c to +0x1b0 | model particle minimum and maximum vectors, +0x1c8 to +0x1dc as minimum and range |
+0x1b4, +0x1c0 | wind +0x1e4, wind time +0x1f0 |
+0x1c4 to +0x1d0 | follow mapping (s0, f0, s1, f1): slope +0x1f8, intercept +0x1f4 |
+0x1d4 | spline points, through 0x7b9a80 for type 3 |
The derivation is in the doc.
Fields 42
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x000c | 4 | uint32_t | m_columnShift | Holds log2 of the texture grid columns | verified, proof one | models/particles#head-quads |
0x0010 | 8 | float[2] | m_cellSize | Holds the cell width and height in texture space | verified, proof one | models/particles#head-quads |
0x0028 | 4 | uint32_t | m_hasModel | Holds 1 once the emitter has a particle model, which makes its particles model particles | verified, proof one | models/particles#emitter-model-loads |
0x002c | 8 | NTempest::CRndSeed | m_random | Holds the random state spawns draw from | verified, proof one | models/emission#speed-and-birth |
0x003c | 4 | CParticle2 * | m_particles | Holds the 0x20-byte particles of an emitter without a model | verified, proof one | models/particles#frame-change |
0x004c | 4 | void * | m_modelParticles | Holds the 0x40-byte model particles | verified, proof one | models/particles#frame-change |
0x005c | 4 | uint32_t * | m_live | Holds the live particle indices | verified, proof one | models/particles#particle-life |
0x0064 | 4 | uint32_t | m_liveCount | Holds the number of live particles | verified, proof one | models/particles#particle-life |
0x0070 | 4 | uint32_t * | m_free | Holds the free particle indices | verified, proof one | models/particles#particle-life |
0x007c | 4 | uint32_t | m_childCount | Holds the number of child emitters | verified, proof one | models/particles#child-emitters |
0x0080 | 16 | CParticleEmitter2 *[4] | m_children | Holds the four child emitter slots each particle carries | verified, proof one | models/particles#emitter-model-loads |
0x0090 | 4 | CM2Model * | m_model | Holds the model each particle draws | verified, proof one | models/particles#emitter-model-loads |
0x0094 | 4 | M2Scene * | m_modelScene | Holds the scene the particle model was made in | verified, proof one | models/particles#emitter-model-loads |
0x0098 | 4 | CM2Model * | m_childModel | Holds the model whose emitters become the children | verified, proof one | models/particles#emitter-model-loads |
0x009c | 4 | uint32_t | m_vertsPerParticle | Holds 4 per head or tail, the vertices one particle writes | verified, proof one | models/particles#draw-order-and-batches |
0x00a0 | 4 | uint32_t | m_indicesPerParticle | Holds 6 per head or tail, the indices one particle takes | verified, proof one | models/particles#draw-order-and-batches |
0x00ac | 4 | float | m_lifespan | Holds the particle lifespan in seconds | verified, proof one | models/particles#particle-life |
0x00b4 | 4 | float | m_tailLength | Holds the tail length factor | verified, proof one | models/particles#tail-quads |
0x00bc | 192 | uint8_t[192] | m_gradients | Holds the two 0x60-byte gradients | verified, proof one | models/particles#gradients |
0x017c | 4 | float | m_speed | Holds the emission speed | verified, proof one | models/emission#speed-and-birth |
0x0180 | 4 | float | m_gravity | Holds the gravity | verified, proof one | models/particles#particle-motion |
0x0184 | 4 | float | m_speedVariation | Holds the speed variation | verified, proof one | models/emission#speed-and-birth |
0x0188 | 4 | float | m_zSource | Holds the z source, 0 when under 0.001 in magnitude | verified, proof one | models/emission#plane-spawn |
0x018c | 4 | float | m_spin | Holds the spin in radians per second | verified, proof one | models/particles#head-quads |
0x0198 | 8 | uint32_t[2] | m_grid | Holds the texture grid rows and columns | verified, proof one | models/particles#head-quads |
0x01a8 | 4 | float | m_alpha | Holds the instance alpha the colours scale by | verified, proof one | models/emission#per-frame-parameters |
0x01ac | 4 | uint32_t | m_flags | Holds the emitter flags | verified, proof one | models/emission#record-flags |
0x01b0 | 4 | float | m_twinkleSpeed | Holds the twinkle speed | verified, proof one | models/particles#twinkle |
0x01b4 | 4 | float | m_twinkleVisible | Holds the fraction of particles twinkle leaves visible | verified, proof one | models/particles#twinkle |
0x01b8 | 12 | float[3] | m_twinkleScale | Holds the twinkle scale minimum, maximum and range | verified, proof one | models/particles#twinkle |
0x01c4 | 4 | float | m_inheritScale | Holds the scale of the velocity the emitter derives from its motion | verified, proof one | models/emission#record-to-emitter |
0x01c8 | 24 | float[6] | m_modelRanges | Holds the model particle minimum and range for each axis | verified, proof one | models/emission#record-to-emitter |
0x01e0 | 4 | float | m_drag | Holds the drag | verified, proof one | models/particles#particle-motion |
0x01e4 | 12 | float[3] | m_wind | Holds the wind | verified, proof one | models/particles#particle-motion |
0x01f0 | 4 | float | m_windTime | Holds the age under which wind applies | verified, proof one | models/particles#particle-motion |
0x01f4 | 8 | float[2] | m_follow | Holds the follow mapping intercept and slope | verified, proof one | models/emission#record-to-emitter |
0x01fc | 64 | float[16] | m_matrix | Holds the emitter matrix, relative to the reference frame in world space | verified, proof one | models/particles#particle-view-space |
0x023c | 12 | float[3] | m_cameraPosition | Holds the camera position the draw translates by | verified, proof one | models/particles#particle-view-space |
0x0248 | 12 | float[3] | m_lastPosition | Holds the emitter position of the previous update | verified, proof one | models/particles#child-emitters |
0x0258 | 12 | float[3] | m_velocity | Holds the emitter velocity particles inherit | verified, proof one | models/emission#spawn-space |
0x0264 | 4 | float | m_scale | Holds the length of the emitter matrix first row | verified, proof one | models/particles#particle-view-space |
0x0284 | 12 | float[3] | m_flatAxis | Holds the emitter z axis in view space that flat quads turn about | verified, proof one | models/particles#head-quads |