x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How to use vertical FOV using Blueprints

Hi,

Camera settings only provide a way to change the horizontal fov : alt text

Same in Blueprint :

alt text

How can we force vertical FOV ?

Thanks

Product Version: UE 4.12
Tags:
more ▼

asked Jul 12 '16 at 08:41 PM in Blueprint Scripting

avatar image

zigziglagirafe
33 2 5 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

alt text

Use this to lock it to vertical (the wider the monitor the more you see to the sides (like it should be)).

-Remember to use degrees not radians.

-Put it to the Tick function to make sure it updates if the viewport is changed.

fov.jpg (63.5 kB)
more ▼

answered Aug 05 '16 at 09:15 AM

avatar image

Reko
76 2 4 8

avatar image zigziglagirafe Aug 07 '16 at 07:05 PM

Thank you ! Just great :)

avatar image NymKappa Feb 16 '17 at 01:45 PM

Works like a charm. GG

avatar image AlexeyLM May 09 '19 at 08:42 PM

Just keep in mind that "Make Literal float" is a VERTICAL VALUE - for FOV 90, this value will be 59. The calculator is at https://themetalmuncher.github.io/fov-calc/

avatar image cesarizu May 19 '19 at 07:26 PM

C++ Version:

 int x, y;
 World->GetFirstPlayerController()->GetViewportSize(x, y);
 Camera->FieldOfView = FMath::RadiansToDegrees(2 * FMath::Atan(FMath::Tan(FMath::DegreesToRadians(Camera->FieldOfView) / 2) * x / y));
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question