# How to ensure desired fov / ratio is preserved 

**URL:** <https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279>\
**Category:** Asset Creation\
**Tags:** Epic-Pro-Support, unreal-engine, question\
**Created:** [November 3, 2025, 10:03am UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279 "2025-11-03T10:03:41Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [November 3, 2025, 10:03am UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/1 "2025-11-03T10:03:41Z")

</div>

Hi,

We have two use case examples:

- We are targeting display system which are expected very specific fields of view, both horizontal and vertical regardless of the actual screen resolution.
- We are displaying simulated sensor view and the sensor hardware has a given resolution.

We do not want to be restricted to actual window with the exact same ratio / resolution.

How can we request Unreal Engine \*not\* to recompute field of views to align with the window (and without adding the black bands) ?

Thanks,

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [November 3, 2025, 10:03am UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/2 "2025-11-03T10:03:45Z")

</div>

**Steps to Reproduce**

---

<div class="post-metadata">

**Author:** ![EnduringStephenK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/enduringstephenk/32/1216749_2.png) [@EnduringStephenK](https://forums.unrealengine.com/u/EnduringStephenK)\
**Post date:** [November 3, 2025, 10:29pm UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/3 "2025-11-03T22:29:52Z")

</div>

Hello,

Thank you for reaching out.

I’ve been assigned this issue, and we will be looking into this control for the FoV and resolution for you.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [November 4, 2025, 7:39am UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/4 "2025-11-04T07:39:03Z")

</div>

Hi Stephen,

Good to hear.

Looking forward to your inputs.

---

<div class="post-metadata">

**Author:** ![EnduringStephenK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/enduringstephenk/32/1216749_2.png) [@EnduringStephenK](https://forums.unrealengine.com/u/EnduringStephenK)\
**Post date:** [November 5, 2025, 10:25pm UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/5 "2025-11-05T22:25:11Z")

</div>

Hello,

Since you want to decouple the renders you are making from the window, can you render using a Scene Capture Component, to a render target of the desired resolution? You can set the desired FOV on the Scene Capture Component. This render target can then be displayed on the main window via UI elements or similar.

If you don’t need to display the captured output, the render target can be used similar to a texture in Materials as needed.

Please let us know if this helps.

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [November 6, 2025, 8:28am UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/6 "2025-11-06T08:28:36Z")

</div>

Hi Stephen,

I did not want to orient the answer but, so far, we came up with two workarounds:

- Using a scene capture with desired resolution, in that case, we can inder render with the desired render target resolution. We are yet to double check that the actual expected hfov / vfov ratio in indeed preserved.
- Using a customized viewport with an override from the “virtual float GetDesiredAspectRatio () const override” method.

Both options have drawbacks and feel wrong.

If we have a unique view and require a render target, then we need an extra rendering we were not able to disable impacting performance for no reason.

If we use a modified viewport, the ratio override cannot be applied to multiple views.

It does fill we are missing something. In particular, why is there no option in this enum for preserving user desired values :

[https://dev.epicgames.com/documentation/en\-us/unreal\-engine/API/Runtime/Engine/EAspectRatioAxisConstraint](https://dev.epicgames.com/documentation/en%5C-us/unreal%5C-engine/API/Runtime/Engine/EAspectRatioAxisConstraint)

More links are exploring solutions but none seem fine:

> [@How can I set vertical AND horizontal FoV independent from each other with a cine camera in C++?](https://forums.unrealengine.com/t/how%5C-can%5C-i%5C-set%5C-vertical%5C-and%5C-horizontal%5C-fov%5C-independent%5C-from%5C-each%5C-other%5C-with%5C-a%5C-cine%5C-camera%5C-in%5C-c/1444658/4):
>
> To get the image to stretch to fill the window, no matter what the window dimensions are, you will have to use a render target to render from the camera, and then map the rendered part of that render target as a texture onto the window using a simple GUI widget bound to the target.

> [@Howto modify the projection matrix](https://forums.unrealengine.com/t/howto%5C-modify%5C-the%5C-projection%5C-matrix/287457/79):
>
> Hi, I’m not sure what yo mean? Like an initial rotation/translation of the camera? Or placing the viewplane at a different position? Best, Florian

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [November 12, 2025, 10:43am UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/7 "2025-11-12T10:43:17Z")

</div>

Hi Stephen,

Here are some answers / background information:

Based on your query, it seemed like you were trying to render two views since you mentioned not being restricted to actual window. But with your update, it seems at any given time you only render through one view. Is this correct?

--\> We are building a COTS product / plugins which is loading a configuration file (or receives external trigger) regarding desired view settings. The most common use case are :

- A single full screen view with very accurate field of view.
- A dual view with a global view and an integrated smaller vignette using picture in picture.

To prevent the black bars you can try disabling bConstraintAspectRatio on the Camera Component.

--\> We tried this but the FOV gets scaled to adapt screen ratio and we do not want this.

By default, as you have noticed the FOV does constrain itself based on the axis constraint picked. To change this you can try using a SceneViewExtension to modify the projection matrix to what you need. The constructor for FReversedZPerspectiveMatrix does provide a version that takes an explicit value for both Horizontal and Vertical if that is desired.

--\> This seems fine. However, when we looked into scene view extension, we were not able to find everything we needed. I suspect you are referring to this method :

/\*\*

\* Called when creating the view, in case non-stereo devices need to update projection matrix.

\*/

virtual void SetupViewProjectionMatrix(FSceneViewProjectionData& InOutProjectionData) {}

The scene projection data did not allow us to retrieve easily the actual view that is being rendered. Lacking an index / identifier of some sort. Looking into it again, I wonder if we could be using the viewport (constrained / unconstrained rectangles) to backtrace our internal view.

Is this what you were suggesting or is there anything we are missing ?

---

<div class="post-metadata">

**Author:** ![anonymous-edc](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous-edc](https://forums.unrealengine.com/u/anonymous-edc)\
**Post date:** [November 19, 2025, 9:40pm UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/8 "2025-11-19T21:40:55Z")

</div>

Hi Stephen,

We are building a product which should not rely on engine modification for various reasons.

While extending the structure to propagate some identification elements seems the nicest solution, it is not one we can pursue.

I guess / fear you confirmed all our findings and understanding. I will review this with the team but I doubt there is more inputs you can provide on this matter.

Thanks,

Basile

---

<div class="post-metadata">

**Author:** ![EnduringStephenK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/enduringstephenk/32/1216749_2.png) [@EnduringStephenK](https://forums.unrealengine.com/u/EnduringStephenK)\
**Post date:** [November 11, 2025, 12:07am UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/9 "2025-11-11T00:07:32Z")

</div>

To help us better solve this issue for you, can you please answer these questions about your desired result?

Based on your query, it seemed like you were trying to render two views since you mentioned not being restricted to actual window. But with your update, it seems at any given time you only render through one view. Is this correct?

To prevent the black bars you can try disabling bConstraintAspectRatio on the Camera Component.

By default, as you have noticed the FOV does constrain itself based on the axis constraint picked. To change this you can try using a SceneViewExtension to modify the projection matrix to what you need. The constructor for FReversedZPerspectiveMatrix does provide a version that takes an explicit value for both Horizontal and Vertical if that is desired.

---

<div class="post-metadata">

**Author:** ![EnduringStephenK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/enduringstephenk/32/1216749_2.png) [@EnduringStephenK](https://forums.unrealengine.com/u/EnduringStephenK)\
**Post date:** [November 14, 2025, 11:16pm UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/10 "2025-11-14T23:16:15Z")

</div>

Hello,

Disabling bConstrainAspectRatio is intended to work with the Scene View Extension, to allow you to lock both aspect ratios.

The function you are looking at in the Scene View Extension is correct, for modifying the projection matrix.

Scene View Extensions have another function “IsActiveThisFrame(…)” that controls if the other functionality of the SceneViewExtension.

If you need more information in “SetupViewProjectionMatrix(…)”, you can look into engine modifications to add a parameter of the type “FMinimalViewInfo”. As a starting point, please see where this function is called in “ULocalPlayer::GetProjectionData(…)”

For engine modifications like this, we can offer information about existing functionality, and we leave the details of the implementation to you.

Please let us know if this helps.

---

<div class="post-metadata">

**Author:** ![EnduringStephenK](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/enduringstephenk/32/1216749_2.png) [@EnduringStephenK](https://forums.unrealengine.com/u/EnduringStephenK)\
**Post date:** [November 19, 2025, 10:58pm UTC](https://forums.unrealengine.com/t/how-to-ensure-desired-fov-ratio-is-preserved/2686279/11 "2025-11-19T22:58:24Z")

</div>

Hello,

Thank you for the reply.

If you have any other questions, please let us know. If not, can we close this ticket?
