Posts: 200
Threads: 39
Joined: Feb 2013
Reputation:
0
Using GetPlayerCameraAspectRatio on my game results in 1.333333, while my resolution is 1280x1024, clearly 1.25. Why is that?
Posts: 2,203
Threads: 154
Joined: Oct 2009
Reputation:
0
GetPlayerCameraAspectRatio is actually to detect if player has widescreen turned on. 1.333 i think means its not on. When i say widescreen i mean option for graphics (the one you setup in main menu of GTA)
Posts: 3,324
Threads: 96
Joined: Sep 2013
Quote:
Originally Posted by DRIFT_HUNTER
GetPlayerCameraAspectRatio is actually to detect if player has widescreen turned on. 1.333 i think means its not on. When i say widescreen i mean option for graphics (the one you setup in main menu of GTA)
|
No. Not exactly. It CAN be used to detect widescreen, but that is NOT what is is made for.
@OP: My laptop is 1280x1024 too, and I'm pretty sure it returns 1.25 for me. It must be something to do with your settings and such.
Posts: 453
Threads: 1
Joined: Feb 2011
Reputation:
0
I tried this,
640x480 = 1.333333 (lowest)
720x480 = 1.333333 (incorrect)
720x576 = 1.333333 (incorrect)
800x600 = 1.333333
1024x768 = 1.333333
1152x864 = 1.333333
1280x720 = 1.333333
1280x800 = 1.333333 (incorrect)
1280x960 = 1.333333
1280x1024 = 1.333333 (max, incorrect)
The values are same, but when i enable widescreen it's changed to: 1.776470
I'm not sure, either it returns the lowest value available in option (640x480 = 1.333333 = 4:3), or the most ones (4:3),
instead of max/native resolution for my display (1280x1024 = 1.25 = 5:4)
Posts: 3,324
Threads: 96
Joined: Sep 2013
That's definitely weird. Before I know it worked, I had used it on multiple monitors at every resolution I could when I was testing the ScreenToWorld include improvements.