What the wheels and the exhausts of the vehicles throw up: the spray of the tyres, the smoke of the tyres in the dry, and the exhaust in the snow.
More...
Go to the source code of this file.
|
| struct | Particle |
| | A puff of smoke or exhaust, in a list of the pool linked by index. More...
|
|
| s32 | ComputeScreenDepthZ (f32 z, f32 w) |
| | Take a depth to the units of the depth buffer through the viewport.
|
| void | SpawnExhaustParticle (Vehicle *vehicle) |
| | Count down to the next puff of exhaust, faster as the engine revs, and blow it out behind the vehicle when the pool has a free puff.
|
| void | EmitTireSpray (Vehicle *vehicle) |
| | Throw the newest segment of the spray of each wheel from the surface under it, while the wheel is on the ground and a few frames after.
|
| void | DrawTireSpray (void) |
| | Draw the spray of the wheels of every racer, except in the snow away from the tracks that show it there.
|
| void | SpawnTireSmoke (Vehicle *vehicle) |
| | Count down to the next puff of smoke of each wheel, faster with the speed of the vehicle and the spin of the wheel, and raise one from a wheel on a surface that smokes.
|
| void | UpdateExhaustParticles (void) |
| | Drift, grow, and fade the exhaust, and free the puffs that have faded.
|
| void | UpdateTireSmoke (void) |
| | Drift, grow, and fade the tyre smoke, and free the puffs that have faded or fall too fast.
|
| void | InitParticleSystem (void) |
| | Free every puff of the pool and stop the exhaust of the vehicles.
|
| void | UpdateAllVehicleEffects (void) |
| | Update the effects of every racer for the weather: the exhaust in the snow, the tyre smoke in the dry, and the spray in all.
|
| void | RenderBillboardParticles (s32 head, s32 red, s32 green, s32 blue) |
| | Draw a list of puffs of the pool as rectangles of the particle texture facing the screen.
|
| void | RenderTireSmoke (void) |
| | Set g_afBillboardMatrix for the current view, and draw the tyre smoke in the colours of the track, except at night.
|
| void | RenderExhaustAndTireSpray (void) |
| | Draw the exhaust in the snow with the matrix RenderTireSmoke() set, then the spray.
|
What the wheels and the exhausts of the vehicles throw up: the spray of the tyres, the smoke of the tyres in the dry, and the exhaust in the snow.
◆ PARTICLES
The puffs of the pool.
The first is never used, so that index 0 ends a list.
◆ ComputeScreenDepthZ()
Take a depth to the units of the depth buffer through the viewport.
- Parameters
-
| z | The depth. |
| w | The w it is divided by. |
- Returns
- The depth in the units of the depth buffer.
- Ghidra address:
- USA: 0x8023b130
- Ghidra address:
- Asia: 0x8023AC80
- Ghidra address:
- EUR: 0x8023c640
- Ghidra address:
- JPN: 0x8023c140
◆ SpawnExhaustParticle()
| void SpawnExhaustParticle |
( |
Vehicle * | vehicle | ) |
|
Count down to the next puff of exhaust, faster as the engine revs, and blow it out behind the vehicle when the pool has a free puff.
- Parameters
-
| vehicle | The vehicle whose exhaust puffs. |
- Ghidra address:
- USA: 0x8023b178
- Ghidra address:
- Asia: 0x8023ACC8
- Ghidra address:
- EUR: 0x8023c688
- Ghidra address:
- JPN: 0x8023c188
◆ EmitTireSpray()
| void EmitTireSpray |
( |
Vehicle * | vehicle | ) |
|
Throw the newest segment of the spray of each wheel from the surface under it, while the wheel is on the ground and a few frames after.
- Parameters
-
| vehicle | The vehicle whose wheels throw the spray. |
- Ghidra address:
- USA: 0x8023b418
- Ghidra address:
- Asia: 0x8023AF68
- Ghidra address:
- EUR: 0x8023c928
- Ghidra address:
- JPN: 0x8023c428
◆ DrawTireSpray()
| void DrawTireSpray |
( |
void | | ) |
|
Draw the spray of the wheels of every racer, except in the snow away from the tracks that show it there.
- Ghidra address:
- USA: 0x8023bb50
- Ghidra address:
- Asia: 0x8023B6A0
- Ghidra address:
- EUR: 0x8023d060
- Ghidra address:
- JPN: 0x8023cb60
◆ SpawnTireSmoke()
| void SpawnTireSmoke |
( |
Vehicle * | vehicle | ) |
|
Count down to the next puff of smoke of each wheel, faster with the speed of the vehicle and the spin of the wheel, and raise one from a wheel on a surface that smokes.
- Parameters
-
| vehicle | The vehicle whose wheels smoke. |
- Ghidra address:
- USA: 0x8023c800
- Ghidra address:
- Asia: 0x8023C350
- Ghidra address:
- EUR: 0x8023dd10
- Ghidra address:
- JPN: 0x8023d810
◆ UpdateExhaustParticles()
| void UpdateExhaustParticles |
( |
void | | ) |
|
Drift, grow, and fade the exhaust, and free the puffs that have faded.
- Ghidra address:
- USA: 0x8023cbfc
- Ghidra address:
- Asia: 0x8023C74C
- Ghidra address:
- EUR: 0x8023e10c
- Ghidra address:
- JPN: 0x8023dc0c
- Ghidra address:
- BRD3D: 0x1003a200
- Ghidra address:
- BRGlide: 0x10033880
◆ UpdateTireSmoke()
| void UpdateTireSmoke |
( |
void | | ) |
|
Drift, grow, and fade the tyre smoke, and free the puffs that have faded or fall too fast.
- Ghidra address:
- USA: 0x8023cd60
- Ghidra address:
- Asia: 0x8023C8B0
- Ghidra address:
- EUR: 0x8023e270
- Ghidra address:
- JPN: 0x8023dd70
- Ghidra address:
- BRD3D: 0x1003a340
- Ghidra address:
- BRGlide: 0x100339c0
◆ InitParticleSystem()
| void InitParticleSystem |
( |
void | | ) |
|
Free every puff of the pool and stop the exhaust of the vehicles.
- Ghidra address:
- USA: 0x8023cf30
- Ghidra address:
- Asia: 0x8023CA80
- Ghidra address:
- EUR: 0x8023e440
- Ghidra address:
- JPN: 0x8023df40
- Ghidra address:
- BRD3D: 0x1003a4d0
- Ghidra address:
- BRGlide: 0x10033b50
◆ UpdateAllVehicleEffects()
| void UpdateAllVehicleEffects |
( |
void | | ) |
|
Update the effects of every racer for the weather: the exhaust in the snow, the tyre smoke in the dry, and the spray in all.
- Ghidra address:
- USA: 0x8023cfc4
- Ghidra address:
- Asia: 0x8023CB14
- Ghidra address:
- EUR: 0x8023e4d4
- Ghidra address:
- JPN: 0x8023dfd4
- Ghidra address:
- BRD3D: 0x1003a530
- Ghidra address:
- BRGlide: 0x10033bb0
◆ RenderBillboardParticles()
| void RenderBillboardParticles |
( |
s32 | head, |
|
|
s32 | red, |
|
|
s32 | green, |
|
|
s32 | blue ) |
Draw a list of puffs of the pool as rectangles of the particle texture facing the screen.
- Parameters
-
| head | The index of the first puff. |
| red | The red of the colour of the puffs, of which the low 8 bits count. |
| green | The green of the colour. |
| blue | The blue of the colour. |
- Ghidra address:
- USA: 0x8023d134
- Ghidra address:
- Asia: 0x8023CC84
- Ghidra address:
- EUR: 0x8023e644
- Ghidra address:
- JPN: 0x8023e144
◆ RenderTireSmoke()
| void RenderTireSmoke |
( |
void | | ) |
|
Set g_afBillboardMatrix for the current view, and draw the tyre smoke in the colours of the track, except at night.
- Ghidra address:
- USA: 0x8023d714
- Ghidra address:
- Asia: 0x8023D264
- Ghidra address:
- EUR: 0x8023ec24
- Ghidra address:
- JPN: 0x8023e724
◆ RenderExhaustAndTireSpray()
| void RenderExhaustAndTireSpray |
( |
void | | ) |
|
Draw the exhaust in the snow with the matrix RenderTireSmoke() set, then the spray.
- Ghidra address:
- USA: 0x8023dbc0
- Ghidra address:
- Asia: 0x8023D710
- Ghidra address:
- EUR: 0x8023f0d0
- Ghidra address:
- JPN: 0x8023ebd0
◆ g_aParticlePool
The pool of smoke and exhaust particles linked by index.
- Ghidra address:
- USA: 0x80366a80
- Ghidra address:
- Asia: 0x80366530
- Ghidra address:
- EUR: 0x80368f80
- Ghidra address:
- JPN: 0x80367bf0
- Ghidra address:
- BRD3D: 0x10a99bb8
- Ghidra address:
- BRGlide: 0x10ac0c48
◆ g_wParticleFreeListHead
| u16 g_wParticleFreeListHead |
|
extern |
The list of the free puffs of the pool.
- Ghidra address:
- USA: 0x8028c830
- Ghidra address:
- Asia: 0x8028C380
- Ghidra address:
- EUR: 0x8028ef90
- Ghidra address:
- JPN: 0x8028e9e0
- Ghidra address:
- BRD3D: 0x10a99ba8
- Ghidra address:
- BRGlide: 0x10ac0c38
◆ g_wExhaustParticleListHead
| u16 g_wExhaustParticleListHead |
|
extern |
The list of the exhaust.
- Ghidra address:
- USA: 0x8028c834
- Ghidra address:
- Asia: 0x8028C384
- Ghidra address:
- EUR: 0x8028ef94
- Ghidra address:
- JPN: 0x8028e9e4
- Ghidra address:
- BRD3D: 0x10a99bb0
- Ghidra address:
- BRGlide: 0x10ac0c40
◆ g_wTireSmokeListHead
The list of the tyre smoke off the paved road.
- Ghidra address:
- USA: 0x8028c838
- Ghidra address:
- Asia: 0x8028C388
- Ghidra address:
- EUR: 0x8028ef98
- Ghidra address:
- JPN: 0x8028e9e8
- Ghidra address:
- BRD3D: 0x10a99bac
- Ghidra address:
- BRGlide: 0x10ac0c3c
◆ g_wPavedTireSmokeListHead
| u16 g_wPavedTireSmokeListHead |
|
extern |
The list of the tyre smoke on the paved road.
- Ghidra address:
- USA: 0x8028c83c
- Ghidra address:
- Asia: 0x8028C38C
- Ghidra address:
- EUR: 0x8028ef9c
- Ghidra address:
- JPN: 0x8028e9ec
- Ghidra address:
- BRD3D: 0x10a99bb4
- Ghidra address:
- BRGlide: 0x10ac0c44
◆ g_afBillboardMatrix
| f32 g_afBillboardMatrix[4][4] |
|
extern |
The matrix from the world to the screen of the current view, with the axes of the screen as the puffs take them.
- Ghidra address:
- USA: 0x80368a80
- Ghidra address:
- Asia: 0x80368530
- Ghidra address:
- EUR: 0x8036af80
- Ghidra address:
- JPN: 0x80369bf0
- Ghidra address:
- BRD3D: 0x1039b6d0
- Ghidra address:
- BRGlide: 0x10396eb8
◆ g_aTireSprayTexture
The texture of the spray, 32 by 64 texels of 4-bit intensity.
- Ghidra address:
- USA: 0x802a2978
- Ghidra address:
- Asia: 0x802A24C8
- Ghidra address:
- EUR: 0x802a5138
- Ghidra address:
- JPN: 0x802a4bd8