# How can I set vertical AND horizontal FoV independent from each other with a cine camera in C++?

**URL:** <https://forums.unrealengine.com/t/how-can-i-set-vertical-and-horizontal-fov-independent-from-each-other-with-a-cine-camera-in-c/1444658>\
**Category:** C++\
**Tags:** unreal-engine, question\
**Created:** [December 1, 2023, 2:49pm UTC](https://forums.unrealengine.com/t/how-can-i-set-vertical-and-horizontal-fov-independent-from-each-other-with-a-cine-camera-in-c/1444658 "2023-12-01T14:49:53Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![SolidSk](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/solidsk/32/1194513_2.png) [@SolidSk](https://forums.unrealengine.com/u/SolidSk)\
**Post date:** [December 5, 2023, 7:38pm UTC](https://forums.unrealengine.com/t/how-can-i-set-vertical-and-horizontal-fov-independent-from-each-other-with-a-cine-camera-in-c/1444658/3 "2023-12-05T19:38:16Z")

</div>

Maybe this post can help:

[https://forums.unrealengine.com/t/manipulate-horizontal-fov-without-affecting-vertical-fov/621443](https://forums.unrealengine.com/t/manipulate-horizontal-fov-without-affecting-vertical-fov/621443)

> But what I want would be an image filling the whole choosen window size, which is distorted depending on the vertical/horizontal field of view.

Do you want screen size to resize your image?

Anyway, I had problems with the Camera’s FoV, that how I set my Camera:

```auto
SceneCamera = CreateDefaultSubobject<UCameraComponent>(TEXT("SceneCamera"));
SceneCamera->bOverrideAspectRatioAxisConstraint = true;
SceneCamera->AspectRatioAxisConstraint = AspectRatio_MajorAxisFOV; // Important
SceneCamera->SetupAttachment(SceneSpringArm, USpringArmComponent::SocketName);

```

---

_[View the full topic](https://forums.unrealengine.com/t/how-can-i-set-vertical-and-horizontal-fov-independent-from-each-other-with-a-cine-camera-in-c/1444658)._
