NFSU.cc / RE Atlas / Camera Systems

Cameras (Speed.exe PC)

Camera Systems 227 verified Speed.exe addresses Speed.exe (2003, x86)

Marks: V = read in code or bytes this session, I = inferred, U = open. Tool after each claim: G = Ghidra 12.1.4 headless (tools/ghidra/gpar.sh), H = Hopper export census/hopper/decomp.c, C = capstone tools/recomp/asm.py, D = bytes read from the unpatched exe or game/Global/GLOBALB.BUN with python struct, M = PS2 map ref/docs/re/out/x86-ps2-map.tsv (class-name hint only, never proof). Names and addresses: census/names_camera.tsv. Blur side: docs/re/blur.md.

Answer

table 0x42d2f4, byte index table 0x42d330 (V, G+C). Each type is one mover object whose update is vtable slot 1.

[0x700aa4] is 1 in the unpatched exe image and Ghidra finds only reads of it (no code writer, no data pointer), so the shipped default is type 0x11 CubicCameraMover (update 0x48bcb0). Type 1 DriveCameraMover (update 0x489690) is the fallback if that byte were 0 (V for the value and the reads, G+C+D; I for "never written at runtime").

(JOY_EVENT_CAMERA_LOOKBACK); name pairs at 0x6f1850/0x6f185c (D). Event 0x75 calls Player::CyclePOV 0x42e020 (call at 0x431a32, V, C). The physical key comes from the user's control config and was not read (U).

numbers). Cycle: 0x42e020 walks 4 slots stored in options 0x758938..0x758944, 3 maps to 0, and the 4th slot needs [0x78a345] or [0x7361a4] (V code, G+C; names I).

per car, almost identical for all 35 cars: only chase height is 1.7 vs 1.9). FOV is a global table 0x6fbdf4. The smoothing and collision constants are global (V, D+C).

exists as a separate system (0x575040, 0x575200) but I did not trace what triggers it in a normal race (U).

Garage and front-end show cars with SelectCarCameraMover (not read, U). Countdown, intro, flyby and end cameras are coordinators that call the same factory (I).

1. Mover types (V, G+C: jump table; class names: EH = Ghidra unwind map V, M = PS2 map I)

TypeCtorSizeVtableUpdate (slot 1)ClassName source
0noneclears the moverV
10x4893600x3a00x6c7fc80x489690DriveCameraMoverM
20x4884200x4c0x6c7d800x488ae0DebugWorldCameraMoverEH
30x4892c00x2c0x6c7c500x40a880 (a bare ret)NullCameraMover (does nothing)V, C
4..120x4840c00xd00x6c80180x4843e0OrbitCarCameraMoverEH
0xd0x48f0900x3680x6c7b980x4901e0ZoneFreezeCameraMoverEH
0xe0x490ea00x4500x6c7b500x492700ZonePreviewCameraMoverEH
0xf, 0x100x4854e00x4700x6c7d280x485c00TrackCarCameraMover (jump views)M
0x110x48afd00x540x6c7e580x48bcb0CubicCameraMover (default race camera)EH
0x120x48c1f00x2c0x6c7f800x48c220name U; created after AutoPilotOn in 0x42d520I
0x130x48c2800x380x6c7ea80x48c820DragRaceCameraMoverM
0x140x48c9900x580x6c7dc80x48d3b0DragRaceLeaderCameraMoverM
0x150x48d6e00xa00x6c7ce00x48df00DragRaceAheadCameraMoverM
0x160x48e2100x3100x6c7c080x48e490AnimationControllerCameraMover (NIS)M

Notes.

in edx (3 for the null mover, 6 for the rear mirror) (V, C).

0x4852a0, vtable 0x6c7e10, update 0x485300), created at 0x42c3c0 into Player+0x288, outside the factory (V, C+D).

0x42dd48 (0x10), 0x42df30 (debug cycler: types ebx, 4, 2, 3), 0x430a25 (0xd), 0x430d49, 0x430d6c (0x11), 0x430da3 (1) in 0x430730, 0x47f002/0x47f795 (0x16, NIS), 0x47ef00 (IntroNis coordinator).

0x48e949), DragCameras.bin 0x6c806c (0x482fc0 = DragCameraManager::SaveData), CAMERA SETTINGS 0x6c80f4 (table 0x6fc59c) (D).

2. Special modes (V, G+C; the names of modes 3..5 are I)

Player::StartSpecialCamera 0x42da40 writes ctrl+0x60 = mode:

ModeNameMoverNotes
0NONE
1FREEZE0xd ZoneFreeze
2PREVIEW0xe ZonePreview
3SLOMOslow motion 0x420050
4SLOMO2
5WARPslow motion only
6JUMPVIEW0xf + 0x42c640jump trigger 0x426930
7JUMPVIEW20x10

Name table 0x700b1c, enable bytes 0x700b44 = [0,0,0,1,1,1,1,1] (D). Gates (V, G+C): [0x78a345], [0x78a346], [0x7361a0], [0x7361a4], [[0x7361f0]] == 9, [[0x73619c]] != 4, a cooldown (0x421a30, ctrl+0x70+mode*4), two players ([0x7361c4] == 2) block it, modes 6 and 7 need byte [0x78a3fa] (from option [0x758951], 0x4b47a0), modes 1..5 need [0x78a3fb]. Callers of 0x42da40 (G callers): 0x426930 (jump trigger, every 8 frames), 0x465d00 (the earlier notes call it the crash camera, I), 0x431960 (three call sites). Each start sets [0x73654c] = 1 (this is the flag that drives the blur n ramp) and ctrl+0x270 = 1 (camera cut). Jump view (V, G+C+docs): curves 0x7062fc speed, 0x7062cc height, 0x7062e4 distance; the camera point is placed at the route-node edge +- 2.0 m (0x6b7aac), z + 1.0, ground check 0x440a40; no collision after placement.

3. POV selection and options (V, G+C)

car's row table with 0x47d680, tells the mover through vtable slot +0x20 (SetPOV), and stores the cycle index in (&0x758948)[player] and the code in (&0x78a388)[player * 0x38] = (&0x758938)[idx * 4].

[0x78a388] = (&0x758938)[[0x758948] * 4] (index 3 reset to 0 unless [0x78a345] or [0x7361a4]). Player 1 uses 0x78a3c0 and [0x75894c]. The options screen is 0x4be6c0 (I). The defaults of 0x758938 are not in the raw exe image (runtime data, U).

4. The per-car rows (V, D+C; names of the codes I)

Each CarTypeInfo record (chunk 0x34600 in game/Global/GLOBALB.BUN, file 0x199e00, payload +8, 35 records of 0xc90; the record name is at +8 in the file, the in-memory struct is 8 bytes earlier) holds a table at info+0xb50:

the car; aux goes to a mover field (500 and 3040 look like pitch words, 65536 = 360 degrees, I).

First set, identical in all 35 records except the chase height (D; all 35 records read):

POV idRole (I)distanceheightlateralaux
0far chase-5.81.7 (GOLF, FOCUS, PEUGOT: 1.9)00
1close chase-4.71.7 (same three: 1.9)00
2hood0.720.790500
3bumper-0.190.81-0.440
4high chase-5.83.4503040

Second set (printed for GOLF and FOCUS only, the other 33 records NOT VERIFIED): 0: -8.2 / 1.85, 1: -6.8 / 1.7, 2: 0.72 / 0.64 aux -1342, 3: -0.26 / 0.77 lateral -0.31, 4: -8.2 / 3.45 aux 2027.

In 0x489690, POV 0, 1 and 4 add a speed-blend term to the distance: (1 - v) * k - row.distance with v = 1 - 0.5 * (f + 1), f from 0x564b10 (constants [0x6cc7bc] = 1.0, [0x6cc7dc] = 0.5, k a local; the meaning of f and k is U); the other POVs use -row.distance (V, C). A tweaker ([0x735ee8] != 0) replaces the rows by [0x6fbde8]/[0x6fbdec] (2.3125)/[0x6fbdf0] (10000) defaults (I).

5. FOV (V, G+C+D)

Global table 0x6fbdf4, s16 per POV code, 65536 = 360 degrees: codes 0, 1, 4 = 0x32dc = 13020 = 71.5 degrees; codes 2, 3 = 0x4000 = 90 degrees. Read by 0x489690 (write to *(ctrl+0xc4), +0xbc = [0x6fbf1c] for POV 3), by the Cubic mover 0x48b8c0 and by 0x480750 (Ghidra scalar search of 0x6fbdf4). The rear mirror forces 0x4e20 = 109.9 degrees when [0x735f5c] == 0 (0x485300, also +0xbc = 0.75 [0x6b6cbc], +0xc0 = 192.0 [0x6b6cc0]). Projection builder 0x40dd00, focal 0x40dcb0 (I).

6. DriveCameraMover (type 1, the fallback) 0x489690

Verified structure (V, G+H+C): it picks the player's car (ebx[0xb], or a debug id [0x6fbf18]), moves a heading filter toward the car's velocity heading, finds the row (0x47d680), builds an eye from distance and height, adds road-roughness noise (0x441d80, surface table 0x6ef2d0 stride 0x94), and runs the wall push-out 0x4838e0 (sweep 0x441030, then up to 3 passes). Bumper and hood types clamp z to ground (0x440a40) + 0.7. Heading history lives at ebx[0xcd..0xe5].

Constants it reads (D values; meaning of each is U unless a note says otherwise): 0x6fbec0 = 1.0 (rewritten every frame, scale of all following), 0x6fbec4 0.03, 0x6fbec8 0.012, 0x6fbecc 2.0, 0x6fbed0 25, 0x6fbed4 0.05, 0x6fbed8 0.02, 0x6fbedc 6.0, 0x6fbee0 0.6, 0x6fbee4 0.045, 0x6fbee8 0.7, 0x6fbeec -0.3, 0x6fbef0 1.0, 0x6fbef4 1.0, 0x6fbef8 500, 0x6fbefc 0.2, 0x6fbf00 6.0, 0x6fbf04 -1, 0x6fbf08 0.4, 0x6fbf0c 3.0, 0x6fbf10 250, 0x6fbf1c 0.4. In the code 0x6fbee4 * scale * x is compared with 0x6fbeec * scale (I: a lateral-speed threshold and gain, each to pick a sign branch) and 0x6fbee0/0x6fbee8 form a second band (I). Values with [0x7364a0] == 3: 0x6b6c5c = 18.0, 0x6b6c60 = -3.0, 0x6b6c64 = 16.0, 0x6b6c68 = -1.0 (blend distance and height between modes). Airborne ramp step 0x6b6c78 = 0.24316 (only read by 0x489690, G xref), sweep trim 0x6b6c80 = 0.01, wall push-out 0x6b6c98 = 0.7, speed curve 0x705b20 through 0x583f20 (I).

7. CubicCameraMover (type 0x11, the default) 0x48bcb0

What is verified (V, G+H+C unless noted): ctor 0x48afd0 allocates smoothing sub-objects of size 0x30 and 0x90 (0x42ad10(x, 10.0), 0x4830f0(10.0)) and calls 0x48ead0(0.5). Update 0x48bcb0 (about 2200 lines in Hopper, most of it duplicated branches) chooses the player's car like 0x489690, calls 0x48ec00 to produce the target and eye parameters, runs the sub-objects, applies Camera::ApplyNoise 0x483640, ApplyCameraShake 0x575040, MinGapTopology 0x483b90, and ends in Camera::SetCameraMatrix 0x47d070. SetDesired 0x48b8c0 (M name) reads the desired distance, height and lateral from the car row (its first argument is the row, because it indexes the FOV table with the row's first s16): V for the FOV read, I for "same row data". Fallback numbers when the car's dword at car+0xa4 is 0 and mover flag [0x45] is set: table 0x705af0, stride 16, set 0 = (-17.2, 6.0, aux 5200 [0x6b6c58]), set 1 (when [0x7364a0] == 3) = (-15.8, 4.4, aux 3540 [0x6b6c5a]) (D; use I). Debug values 0x705c60..68 = (-10, 0, 5). Not done (U): the per-constant meaning of the 10.0 smoothing parameters, the 0x48ec00 math, and the speed behaviour of this mover.

8. Shake and noise (I/U)

0x704508, 0x704514, 0x704518; called by 0x485300 (rear mirror, V) and by the Cubic update (V, call sites). The trigger is U.

9. Free Run vs race vs garage

(re_jumpcam) shows the same gates in Free Run. A difference by game mode exists in the factory block list ([[0x7361f0]] in {5, 6, 10}) and in [0x7364a0] (row set, view count kind). Which row set a normal single-player race uses ([0x7364a0] value) is U: the values 0..3 are set by 0x408370/0x408410 from the view list [0x740504] (G xrefs, C).

0x4870c0, GetMainStaticCameraPosition 0x487590). Not read.

FlyBy 0x47ea20, PostRace 0x47eca0, DemoCamera 0x47e250.

Open (U)

Second-tool agreement (10 names drawn with random.seed(20261029) from the V/I rows of both registries)

NamePrimarySecond tool and resultResult
0x6b6c78 CamAirborneRampStep (blur doc not involved)D value, CG xref: one read, in 0x489690 at 0x48a3b6; value 0.24316agree on the read and value; the meaning stays I
0x6c7fc8 vtable_DriveCameraMoverDG xref: data refs in the ctor 0x489360 and in 0x4894b0 (destructor); slot 1 = 0x489690 read from bytesagree
0x6cc9d8 4.0C+DG xref: four reads in 0x40cd40, plus 0x438b60 and 0x606110agree; shared constant
0x705b34 RearView_Offset_xC+DG xref: one read, in 0x485300agree (0.5)
0x48c1f0 type 0x12 ctorCG decompile: ctor only sets vtable 0x6c7f80 and zeroes camera+0x280 when [0x735f5c] == 0disagree on the name: "AutoPilotCameraMover" dropped, now "CameraMover_Type12" (I)
0x7364a0CG xrefs: writers 0x408370, 0x408410; readers include 0x42e020, 0x47d680, 0x489690, 0x592100, 0x56dc30disagree: it is a view-count kind (0..3), not a game flow; renamed gViewCountKind
0x465d00CG callers of 0x42da40: 0x4662f3 in 0x465d00agree on the call; "crash camera" not confirmed (I)
0x73641cCG xref: only 0x40cd40, writes at 0x40cd8a, 0x40cd9eagree
0x4b47a0CG decompile: copies options to player settings ([0x78a3fa] = [0x758951], [0x78a388] from 0x758938)disagree on the name: not "Save", it is "Apply"; renamed
0x700e9c OPT_LIGHTSTREAKSCG xref: readers 0x40cb80 0x40b3f0 0x409580 0x4160b0 0x410ce0; writers 0x410a00 0x410ce0 0x410ed0 0x416a40agree

Result: 7 agree, 3 corrected (two names, one class identity), all in the registry.