Skip to content

Crosshair Sizing Fixes Again#210

Merged
themrdemonized merged 3 commits intothemrdemonized:landerfrom
Lander-Modding:crosshair-sizing-fixes-zwei
May 3, 2025
Merged

Crosshair Sizing Fixes Again#210
themrdemonized merged 3 commits intothemrdemonized:landerfrom
Lander-Modding:crosshair-sizing-fixes-zwei

Conversation

@ProfLander
Copy link
Contributor

Crosshair sizing was inaccurate to vanilla, so has been switched to a pixel-based metric to ensure proper 3x3 display independent of resolution and FOV. New commands have been added to control near/far scaling range, and the default distance metrics have been modified accordingly.

It was also incorrectly applying crosshair roll when g_firepos was turned off, which is now gated by a conditional.

ProfLander added 3 commits May 2, 2025 00:07
- Switched to a pixel-based metric instead of a screen-based one
- Proper use of projected W for depth-inverse scaling
- Refactored vertex drawing logic into reusable code
- Introduced g_crosshair_depth_* commands to control scaling range
- Adjusted default crosshair sizing params to account for changes in metric
- Avoids edge-cases in rasterization coverage at size 1
@ProfLander ProfLander mentioned this pull request May 3, 2025
@themrdemonized themrdemonized changed the base branch from all-in-one-vs2022-wpo to lander May 3, 2025 16:09
@themrdemonized themrdemonized merged commit 88f79a0 into themrdemonized:lander May 3, 2025
9 of 10 checks passed
@themrdemonized
Copy link
Owner

Please make changes to the current PR related to the problem instead of creating new PR, it will ease the life for both of us. Mark the PR as draft if its not ready to be merged

@ProfLander
Copy link
Contributor Author

ProfLander commented May 3, 2025

Noted - is that possible with a PR that's already been merged? I assumed not, but if so then I'll target the base branch if the suboptimal situation of after-the-fact bugs comes up in future.

And apologies for the last-minute epsilon amend; that was a shower thought that occurred while away from the machine after the fact.

@themrdemonized
Copy link
Owner

Make a new PR and that will be your new changes base

@ProfLander ProfLander deleted the crosshair-sizing-fixes-zwei branch May 24, 2025 06:12
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.

2 participants