Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for 21:9 resolutions to CBA optics addon #1245

Merged
merged 4 commits into from
Oct 26, 2019
Merged

Add support for 21:9 resolutions to CBA optics addon #1245

merged 4 commits into from
Oct 26, 2019

Conversation

JonBons
Copy link
Contributor

@JonBons JonBons commented Oct 24, 2019

When merged this pull request will:

  • Add support for 21:9 resolutions to CBA optics addon via scaling the optic model outwards and adjusting the camera fov.

I did some tests by starting the virtual arsenal mission and running player setPosASL [4229.13,4221.35,5.00144]; player setDir 125.176; then bringing up the CBA optic and snapping a pic to compare differences after making changes to the model and camera fov.

pics
  • Before on 16:9
    https://steamuserimages-a.akamaihd.net/ugc/760471717863529982/85179A342FE9636890F7D8C7A963E77DE40DB506/

  • After on 16:9
    https://steamuserimages-a.akamaihd.net/ugc/762724151519872589/16072C983C9610F550E3CF7A7E5D874515419327/

  • Before on 21:9
    https://steamuserimages-a.akamaihd.net/ugc/760471717863519343/8A59AAF9E0DFF2E2975CBF56BE5FAF3A7F7B6AF6/

  • After on 21:9
    https://steamuserimages-a.akamaihd.net/ugc/760471717863510710/3BF0A4EA77C3D59877A81582DC8A514C9C51612A/

@PabstMirror PabstMirror added this to the 3.13 milestone Oct 25, 2019
@JonBons
Copy link
Contributor Author

JonBons commented Oct 26, 2019

Per request from @commy2 I tried to match up the camera FOV with your unscoped FOV which should result in objects staying in the same place they when unscoped while scoped in using the PIP camera.

pics

Unscoped: https://steamuserimages-a.akamaihd.net/ugc/762724151528166139/C022CF81E80BAC387FE6F2D00924B501904BDD04/
Scoped 0.7 camera FOV: https://steamuserimages-a.akamaihd.net/ugc/762724151528169012/5563A58A525CC9F84CF7D504ADE359CA05269F64/
Scoped 1.02 camera FOV: https://steamuserimages-a.akamaihd.net/ugc/762724151528167267/0C29444D23DCBCF94D2D8C07026C23BBD8B029B1/

…h what you saw before scoping in.

See #1245 (comment) for comparison of old value.
@JonBons
Copy link
Contributor Author

JonBons commented Oct 26, 2019

With 21:9 the FOV is too wide but I don't know if we want to mess with scaling based on resolution/aspect ratio right now?

pics

Unscoped: https://steamuserimages-a.akamaihd.net/ugc/762724151528208740/DB77A0A9660542D48B189FE003E61CE0F5DF146A/
Scoped: https://steamuserimages-a.akamaihd.net/ugc/762724151528208311/0981F0F43F27186F27D76DC809465549EEBC9FC3/

@commy2 commy2 merged commit a2b02af into CBATeam:master Oct 26, 2019
@JonBons JonBons deleted the optics-21by9 branch October 27, 2019 05:18
@jonpas jonpas changed the title Add support for 21:9 resolutions to CBA optics addon. Add support for 21:9 resolutions to CBA optics addon Oct 28, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants