Repository navigation
Camera: smoother turned view, stage collision, wall fade only for what really blocks - #71
Merged
Merged
Conversation
… only for what really blocks Camera (camera.cpp): - orbit the player's own fighter (the nearest fighter to the lens could switch to the opponent and throw the view) - pivot follows the fighter with a short lag; orbit radius eases after the game's distance (the game zooms and pulls in for its own view direction), faded out as the offset returns to zero - stick drives an eased turn speed with a response curve; re-centring ramps in; held rig follows jumps with a lag; relock ease is time-based (was per update) - turned / held view collides with the stage (ge_draw_camera_probe_*): fast pull-in, slow let-out Wall fade (psp_ge_draw.cpp): - fade state per drawn instance (vertex data + world position): one hit pillar no longer fades every copy - time-based easing per frame (not per draw call), fades back in after the custom view ends instead of popping - rays start 0.35 m behind the eye (was 2 m), no feet ray, nothing lower than the knees fades (floors, kerbs) - alpha 0.25 (PSPRECOMP_CAM_BLOCKER_ALPHA) Test aids: script command `rstick <x> <y>`, PSPRECOMP_CAMF_LOG=<n>. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The right-stick camera felt jumpy and its distance pumped in and out, and the wall fade made unrelated walls see-through.
Camera (
games/dissidia/runtime/camera.cpp)ge_draw_camera_probe_*). The renderer keeps the main view's static stage geometry in world space and traces the line from the fighter's chest to the eye, one frame late. The eye pulls in fast and lets out slowly, so it no longer ends up outside the room looking at the back of a wall (Pandaemonium).Wall fade (
runtime/src/psp_ge_draw.cpp)PSPRECOMP_CAM_BLOCKER_ALPHA).New env options for tuning or turning the smoothing and collision off are listed in
docs/native-build.md. Test aids: the test script commandrstick <x> <y>andPSPRECOMP_CAMF_LOG=<n>.Tests
Headless, old vs new build with the same scripted input:
Tested in real play on Android by the user.
Release notes
🤖 Generated with Claude Code