jak-project/test/decompiler/reference/jak1/engine
Tyler Wilding 92c4390f0a
jak1: Adjust sprite positioning or hide them where appropriate when using non-standard aspect ratios (#3596)
This attempts to do a best-effort quick fix for the sprite alignment in
the menus and first person views on higher aspect ratios. This:
- Hides the binocular borders completely when using a non-standard ratio
![Screenshot 2024-07-20
021430](https://github.com/user-attachments/assets/c56d3a6c-13b0-43e1-b99b-83292993728c)
- Hides the borders in jak's first person view when using a non-standard
ratio
![Screenshot 2024-07-20
021310](https://github.com/user-attachments/assets/fefca993-960b-4741-87b7-6d7c17efe89d)
- Uses a combination of manual alignment and approximation to get the
pause menu closer.
![Screenshot 2024-07-20
151725](https://github.com/user-attachments/assets/2c8aa759-b33a-4fbe-abc6-b5861fc33208)
> 32:9 screenshot.

I accomplished the last one by manually aligning all of the core sprites
and text for the most popular aspect ratios. This means that from a
practical standpoint, things should align "perfectly". However, I then
used all of those values to derive a polynomial for each adjustment
based on the aspect ratio. This allows the game to do a half-decent
approximation/interpolation for every aspect ratio in-between the common
ones. It won't be perfect, but it will be better than this:

![image](https://github.com/user-attachments/assets/420b1e38-6f88-436a-8e8c-21df6b49428e)
2024-07-26 23:15:51 -04:00
..
anim decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
camera `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
collide decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
common-obs decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
data `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
debug decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
dma `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
draw decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
engine `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
entity decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
game decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
geometry `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
gfx decomp3: more engine stuff, support boxed stack arrays in compiler (#3424) 2024-03-15 20:28:26 -04:00
level decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
load decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
math `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
nav decomp3: more misc files (#3349) 2024-01-31 18:25:06 -05:00
physics `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
ps2 `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
sound `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00
target jak1: Adjust sprite positioning or hide them where appropriate when using non-standard aspect ratios (#3596) 2024-07-26 23:15:51 -04:00
ui wrap sprite rgba to 0-255 (#3549) 2024-06-04 07:57:52 +01:00
util `deftype` and `defmethod` syntax major changes (#3094) 2023-10-30 03:20:02 +00:00