Skip to content

Fix widescreen camera FOV and world rendering - #5564

Open
MohabCodeX wants to merge 3 commits into
multitheftauto:masterfrom
MohabCodeX:fix/widescreen-fov-and-rendering
Open

MohabCodeX wants to merge 3 commits into
multitheftauto:masterfrom
MohabCodeX:fix/widescreen-fov-and-rendering

Conversation

@MohabCodeX

@MohabCodeX MohabCodeX commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #2753
image
image

Switches camera field of view scaling to Hor+ on aspect ratios wider than 4:3 so vertical visibility stays consistent across 16:9, 21:9, and 32:9 displays without changing 4:3 behavior or the FOV slider range. Third-person aiming and crosshairs align with the widened frustum, world LOD distances and scripted camera FOV queries stay tied to the base FOV to avoid premature LOD pop-in or zoom loops, coronas, the moon, stars, and clouds keep their intended proportions, and sky backdrop geometry widens to prevent side gaps. Combined with the preceding widescreen HUD scaling PR (#5563), this completes the full fix for #2753.

Copilot AI balanced review requested due to automatic review settings November 18, 2026 11:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The new FOV clamps alter valid scripted zooms between 0 and 1 or 179 and 180 degrees, affecting both rendering and values returned by getCameraMatrix.

1 open issue
What changed in this PR

Updates the GTA: San Andreas client’s camera and world rendering for widescreen displays, complementing the HUD changes in #5563 toward resolving #2753.

Changes:

  • Adds Hor+ field-of-view scaling and adjusts third-person aiming to match.
  • Separates base FOV from rendered FOV for script queries and level-of-detail calculations.
  • Adjusts sprite proportions and widens sky geometry for widescreen rendering.

Include the goals, implementation reasoning, and testing details in the commit message.

File Description
Client/​sdk/​game/​CSettings.h Exposes base FOV through the settings interface.
Client/​mods/​deathmatch/​logic/​CClientCamera.cpp Uses base FOV for camera queries outside transitions.
Client/​game_sa/​CSettingsSA.h Declares the base-FOV accessor implementation.
Client/​game_sa/​CSettingsSA.cpp Implements FOV scaling, aiming hooks, and world-rendering adjustments.

Review effort: Balanced

Comment thread Client/game_sa/CSettingsSA.cpp Resolved
Copilot AI balanced review requested due to automatic review settings November 18, 2026 15:49

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ultrawidescreen (32:9) HUD and FOV issue

2 participants