I have a question which I believe is a simple solution, but I’m not really managing to find the solution.
Imagine a game that builds only the iPhone 5.
Its resolution is (640 × 1136), actually is half that, right?
Imagine I have a picture with the same size in pixels of the resolution (ie 1136 × 640).
In UMG editor if I select the iPhone 5 as screen size reference he will make the limits in the same size (640 × 1136).
Then, still in UMG editor, I drag an IMG and seto its texture with the same texture image I mentioned earlier, with its anchor point in the upper left corner, correctly occupying the entire canvas.
For me the obvious result would I see this picture also occupying the entire canvas when I made the launch on the phone, right?
Yet it is not what happens. The picture is bigger, always even changing the scale factor in the initialization file.
Mobile scale factor is not a factor for Slate/UMG, at least shouldn’t be. Slate renders at the native resolution of the device/viewport. Any scalability setting that effects the scene renderer is not visited upon Slate.
The DPI Scale is what you’re experiencing. Configured in the Project Settings > User Interface. The Size you’re entering for the image widget in the canvas is in Slate Units, for 1:1 scaling. By default the DPI Scale curve is for 1080p as being the 1:1 scale, and everything scales linearly up or down from there.
I’m not sure if its a bug or not, or perhaps its just me; from the screenshot below, taken directly from iPad3, no photoshop filter applied for both -
top: scalefactor 2.0, bottom: scalefactor 1.0
The size/ location is output is O.K, however the sharp/crisp is greatly noticeable.
Project setup: Engine Ver - 4.9.1, Camera - Orthographic 768
I haven’t tested this on Perspective Cam mode thou.
The sharp/crisp is even worst in android device if the scalefactor is not set properly in WHICH in 4.8.3, using the same profile device/ UMG/ un-edited DPI scale - this issue does not exists / not a problem.
Both screenshot taken from the exact same android device and the exact screenshot app.
After cloning, I configured the profile device, however it seems weird that - even I changed both (Android/ Android_ETC1) profile, it still does not properly adjust the scale. However for iOS devices, it does scaled based on what you configured.
I’m not sure if I this is a bug or simply changes intended that were made for 4.9
Edit: the ‘?’ icon, added by using different UMG bp, just to make sure if the UMG bp cloned from 4.8.3 causing the issue - seems not. I even changed the ortho from 512 (in 4.8.3) to 768, still produced the same result.