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"

Camera Setting for Mobile on Portrait

Hi there!I'm trying to develop something 3D for mobile for personal study and experimentation, but i've got a problem i really don't know how to solve (but i'm sure it's quite simple, it's just that i'm a newbie for this thing)

How can i set the camera for portrait mode?I tried to search around on the internet, but it seems that people only do stuff based on 2D or landscape view.

The thing i'm trying to do is something with a high fixed camera on a rectangular arena, the arena is supposed to "fill" the entirety of the camera. Some people says "set the aspect ratio of the camera to 0.5625 and all will be good" but the elements stretch vertically (ofc for the aspect ratio, i know, i know)So, how is intended to setup the view for a mobile game with 3d elements in portrait? Am i so much a rookie?

Here's a screenshot of the result on the left compared to the editor viewport on the right:


Product Version: UE 4.20
more ▼

asked Nov 13 '18 at 11:26 AM in Using UE4

avatar image

5 2 3 6

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

1 answer: sort voted first

What exactly your phone screen size? Because 0,5625 is works only very well on 16x9 screens.

But basically, you can calculate and set it.

AspectRatio = ShortEdge/ LongEdge like ->0.5265= 1080/1920

more ▼

answered Nov 13 '18 at 11:46 AM

avatar image

Sertac Ogan
1.5k 30 11 46

avatar image Lacrima Nov 13 '18 at 12:00 PM

I'm launching the test on "selected viewport" and in new editor window 720x1280, that's why i don't understand that difference, I'm missing something maybe?

avatar image Sertac Ogan Nov 13 '18 at 12:07 PM

You check constrain aspect ratio in camera settings ??

avatar image Lacrima Nov 13 '18 at 12:19 PM

Yup I already checked it, just tried event to set the fov to 90° that is the default value

alt text

camera.jpg (27.1 kB)
avatar image Sertac Ogan Nov 13 '18 at 12:38 PM
avatar image Lacrima Nov 13 '18 at 01:46 PM

The problem is that I use a fixed camera in the scene, not a camera attached to an actor Here's a screenshot of the idea, it's like a Puzzle Bobble or many mobile games, where the camera is fixed and just films the scene, won't move at all. And here's a difference between the camera vision and the viewport vision

alt text

cameraexample.jpg (32.7 kB)
(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