CRibbonEmitter
struct · models · 360 bytes
- Meaning
- Holds a ribbon emitter: its edge ring, node frames, texture cell, materials, colour and heights
- Confidence
- verified, proof one
- Finding
- models/ribbons#ribbon-ring
Finding: Ribbon ring in models: ribbons
A ribbon keeps its edges in a ring of n = ceil(ceil(rate)·L) + 2 slots, with rate the record's
edges per second (+0x94) and L its lifespan (+0x98) raised to at least 0.25. Each slot holds
an age and a 40-byte vertex pair, bottom then top, each a position and texture coordinates; edges
live from the tail to the head, and the head slot holds the uncommitted edge at the bone. The
index array holds i mod 2n for i below 4n, so a draw of the live run reads straight through
the wrap. A new ribbon starts hidden, 10 above and 10 below, with no gravity.
The derivation is in the doc.
Fields 28
| offset | size | type | name | meaning | confidence | finding |
|---|---|---|---|---|---|---|
0x0008 | 4 | uint32_t | m_capacity | Holds the ring capacity in edges | verified, proof one | models/ribbons#ribbon-ring |
0x000c | 4 | float * | m_ages | Holds each ring slot edge age | verified, proof one | models/ribbons#edge-curve |
0x0014 | 4 | uint32_t | m_head | Holds the head slot, the uncommitted edge at the bone | verified, proof one | models/ribbons#ribbon-ring |
0x0018 | 4 | uint32_t | m_tail | Holds the oldest live slot | verified, proof one | models/ribbons#ribbon-ring |
0x001c | 4 | float | m_carry | Holds the fraction of an edge carried to the next update | verified, proof one | models/ribbons#ribbon-update |
0x0020 | 12 | float[3] | m_lastPosition | Holds the last node position | verified, proof one | models/ribbons#node-frame |
0x003c | 4 | uint32_t | m_vertexCount | Holds the number of ring vertices, two per slot | verified, proof one | models/ribbons#ribbon-frame-change |
0x0040 | 4 | void * | m_vertices | Holds the ring vertices, 20 bytes each with the position first | verified, proof one | models/ribbons#ribbon-frame-change |
0x0058 | 4 | float | m_inverseLifespan | Holds 1 over the lifespan | verified, proof one | models/ribbons#ribbon-ring |
0x005c | 8 | float[2] | m_cellSize | Holds the cell width in u and height in v | verified, proof one | models/ribbons#ribbon-texture-cells |
0x006c | 16 | float[4] | m_cell | Holds the cell v0, u0, v1 and u1 | verified, proof one | models/ribbons#ribbon-texture-cells |
0x007c | 12 | float[3] | m_lastUp | Holds the last node up axis, matrix row 1 | verified, proof one | models/ribbons#node-frame |
0x0088 | 12 | float[3] | m_up | Holds the current node up axis | verified, proof one | models/ribbons#node-frame |
0x0094 | 12 | float[3] | m_lastForward | Holds the last node forward axis, matrix row 2 | verified, proof one | models/ribbons#node-frame |
0x00a0 | 12 | float[3] | m_forward | Holds the current node forward axis | verified, proof one | models/ribbons#node-frame |
0x00ac | 24 | float[6] | m_tangents | Holds the last and current node tangents | verified, proof one | models/ribbons#node-frame |
0x00c4 | 48 | float[12] | m_edgeEnds | Holds the last and current bottoms, then the last and current tops | verified, proof one | models/ribbons#node-frame |
0x00f4 | 4 | float | m_rate | Holds the edges per second, rounded up | verified, proof one | models/ribbons#ribbon-ring |
0x00f8 | 4 | float | m_lifespan | Holds the lifespan, at least 0.25 | verified, proof one | models/ribbons#ribbon-ring |
0x012c | 4 | uint32_t | m_color | Holds the colour word every vertex takes | verified, proof one | models/ribbons#ribbon-draw |
0x0130 | 16 | float[4] | m_rect | Holds the texture rectangle | verified, proof one | models/ribbons#ribbon-texture-cells |
0x0140 | 8 | uint32_t[2] | m_grid | Holds the texture grid rows and columns | verified, proof one | models/ribbons#ribbon-texture-cells |
0x0148 | 4 | uint32_t | m_flags | Holds the flags: 1 started, 2 initialized, 4 visible, 8 updated | verified, proof one | models/ribbons#ribbon-update |
0x014c | 12 | float[3] | m_position | Holds the current node position | verified, proof one | models/ribbons#node-frame |
0x0158 | 4 | uint32_t | m_textureSlot | Holds the texture cell index | verified, proof one | models/ribbons#ribbon-texture-cells |
0x015c | 4 | float | m_above | Holds the height above the bone, 10 by default | verified, proof one | models/ribbons#node-frame |
0x0160 | 4 | float | m_below | Holds the depth below the bone, 10 by default | verified, proof one | models/ribbons#node-frame |
0x0164 | 4 | float | m_gravity | Holds the gravity | verified, proof one | models/ribbons#ribbon-update |