Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion psprecomp/games/dissidia/docs/native-build.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ wraps the battle camera update (`ovl_battle FUN_08B3CA24`, once per frame) and r
around the fighter you control (the fighter nearest to the game's own eye; the whole rig, eye and look-at, turns about him, so he keeps his place on the screen; `PSPRECOMP_CAM_PIVOT=0` orbits the game's look-at point instead, the old way) by an accumulated yaw/pitch offset, so the game's own d-pad camera, lock-on framing,
auto-centring and collision pull-in keep working underneath (the stick is an offset on top: when you let go of the stick it
eases back to the game's camera after 0.5 s, with a time constant of 1 s; `PSPRECOMP_CAM_RECENTER=<s>` changes the time constant,
`PSPRECOMP_CAM_RECENTER_DELAY=<s>` the pause, `PSPRECOMP_CAM_RECENTER=0` holds the offset until you move it again); R3 (right stick click) or the C key puts the camera back at once. Stick right turns the view right (`PSPRECOMP_CAM_INVERT_X=1` for the other way). While the view is turned, the left stick is turned by the same angle (`PSPRECOMP_CAM_MOVE_REL=0` turns that off), so "up" goes into the screen instead of towards the opponent. When the fighter has no lock-on target (after having had one in the fight, or 10 s into it: `PSPRECOMP_CAM_HOLD_ARM=<ticks>`) the camera keeps following the fighter but holds its direction and distance: the left stick never turns it and it does not re-centre, only the right stick turns it (`PSPRECOMP_CAM_UNLOCK_HOLD=0` turns this off; `PSPRECOMP_CAM_FORCE_UNLOCK=<s>` is a test aid that reports 'not locked' that many seconds after the first lock; `PSPRECOMP_CAMLOCK_LOG=<n>` logs lock changes). Walls that block the view of your fighter while you move the camera yourself (turned view or hold) fade to see-through, like the game's own wall fade does for its own camera (`PSPRECOMP_CAM_BLOCKER_FADE=0` turns it off): rays from the camera to the fighter's feet, knees, chest, head and shoulders; any non-skinned stage draw (up to 1500 vertices) they pass through is drawn blended with constant factors and no depth writes (`ge_draw_set_view_blocker`). Faded walls still count for the ray-traced shadows (the RT scene is captured separately from drawing). Outside battle (menus) the right stick acts as the
`PSPRECOMP_CAM_RECENTER_DELAY=<s>` the pause, `PSPRECOMP_CAM_RECENTER=0` holds the offset until you move it again); R3 (right stick click) or the C key puts the camera back at once. Stick right turns the view right (`PSPRECOMP_CAM_INVERT_X=1` for the other way). While the view is turned, the left stick is turned by the same angle (`PSPRECOMP_CAM_MOVE_REL=0` turns that off), so "up" goes into the screen instead of towards the opponent. When the fighter has no lock-on target (after having had one in the fight, or 10 s into it: `PSPRECOMP_CAM_HOLD_ARM=<ticks>`) the camera keeps following the fighter but holds its direction and distance: the left stick never turns it and it does not re-centre, only the right stick turns it (`PSPRECOMP_CAM_UNLOCK_HOLD=0` turns this off; `PSPRECOMP_CAM_FORCE_UNLOCK=<s>` is a test aid that reports 'not locked' that many seconds after the first lock; `PSPRECOMP_CAMLOCK_LOG=<n>` logs lock changes). The turned view is smoothed: the stick drives a turn speed that eases in and out (`PSPRECOMP_CAM_STICK_TC`, s), the view orbits your own fighter (not whichever fighter is nearest the lens) through a pivot that follows him with a short lag (`PSPRECOMP_CAM_PIVOT_TC`), its distance eases after the game's (`PSPRECOMP_CAM_DIST_TC`; the game zooms and pulls in for its own view direction), the held view follows jumps with a lag (`PSPRECOMP_CAM_HOLD_TC`), and re-centring ramps in. Your own view (turned or held) collides with the stage: the runtime keeps the main view's static stage geometry in world space and traces the line from the fighter's chest to the eye (`ge_draw_camera_probe_*`, a frame late); the eye pulls in fast when it is blocked and lets out slowly, so a turned view stays inside a room instead of looking at the back of a wall (`PSPRECOMP_CAM_COLLIDE=0` turns it off). What still blocks the view of your fighter fades to see-through (`PSPRECOMP_CAM_BLOCKER_FADE=0` turns it off, `PSPRECOMP_CAM_BLOCKER_ALPHA` sets how opaque, default 0.25): rays from the camera to the fighter's knees, chest, head and shoulders; each drawn instance of a non-skinned stage draw (up to 1500 vertices, not lower than his knees) they pass through is drawn blended with constant factors and no depth writes (`ge_draw_set_view_blocker`); it fades out in 0.08 s and back in over 0.3 s, also after the view returns to the game's. `PSPRECOMP_CAMF_LOG=<n>` logs the final eye of n camera updates (tests; the test script's `rstick <x> <y>` holds the right stick). Faded walls still count for the ray-traced shadows (the RT scene is captured separately from drawing). Outside battle (menus) the right stick acts as the
D-pad. Options: `PSPRECOMP_CAM_FREE=0` (stick is a plain D-pad everywhere, the game's own camera), `PSPRECOMP_CAM_SENS`
(default 1.0 = ~150 deg/s at full deflection), `PSPRECOMP_CAM_INVERT_Y=1`, `PSPRECOMP_CAM_PITCH_MIN/MAX` (eye elevation
limits in degrees, default -5..80), `PSPRECOMP_RSTICK_DEADZONE` (default 0.20), `PSPRECOMP_RSTICK_DPAD=0` (right stick
Expand Down
Loading
Loading