Problem with image scaling

Vordrak

Chieftain
Joined
Apr 11, 2009
Messages
5
Hi,

I am running the latest version of FFH and I am having a problem with image scaling.

Basically, the images are being scaled wrongly. Specifically ... regardless of resolution (e.g. 1024 x 768 OR 1440 x 900) the splash screen is stretched horizontally. It is 'too wide'. At first I thought it was a widescreen effect but it happened in 1024 x 768 too.

Secondly, the leader images etc. in civilopedia or the screen for choosing which side you want to be are stretched vertically. The images are 'too thin'. This seems weird.

Can anyone help please?
 
Im not sure what you mean by this. Could you post a few screen shots?
 
So basically, civilisation leaders are drawn in the encyclopedia squashed horizontally. This happens in all display modes including 4:3, 16:10 and full-screen and windowed.

302eaed21ad24776cdddb87ff93563176g.jpg


2e932cde0318eae20a79ff137974b3b56g.jpg


The main menu is stretched horizontally.

c8be0552f9cfc1dd656de0580adb529a6g.jpg
 
The civ leader pictures are correctly proportioned (ie: thats how the artist painted them). The main menu graphic (hyborem version) is stretched horizontally in order to fit the space. There are no plans to change that.
 
Clearly, as you can see, either the manual or the game picture is displayed incorrectly. Either the in-game picture is shrunk or the manual picture is stretched.

Which is the one out of step? The one on the right is the manual, whereas the one on left is the one in-game. Now, to me, the one on the left looks like the one which is wrong. Are you sure?

?
 
Clearly, as you can see, either the manual or the game picture is displayed incorrectly. Either the in-game picture is shrunk or the manual picture is stretched.

Which is the one out of step? The one on the right is the manual, whereas the one on left is the one in-game. Now, to me, the one on the left looks like the one which is wrong. Are you sure?

?

You may be right. All the pictures are stored as flat 512x512 and it looks like the civ leaders pane isnt displaying them square.
 
Leader portraits are (at least in Pedia - can't find the code which generates the Diplomacy screen) displayed an at an x:y ratio of 5:6. So to have a picture display at the right ratio in-game, you first need to create a picture of ratio 5:6, and then resize it to a square if 512x512 (or 256x256, whatever). Then the game, when creating the pedia, will itself once again resize and display the picture at its intended ratio of 5:6.
 
Could it be solved by very precisely cropping the pictures?

Most of them seem to have enough space on the edges to make this feasible. It does not look like you would need to chop much off.
 
I assume that the original images were larger than the image displayed in the pedia entry, and cropped/resized down to the right size. If that's the case then then the original image could be cropped to the 5:6 ratio and then resized to square (as Maniac said), which would correct the problem. There'd be a little extra image at the top &/or bottom of each image, depending on where the original image was recropped.

If the original images were 512x512 then the same method could be used but would result in some of the image being lost from the left &/or right side.
 
Update:
In the Pedia, the leader is displayed at 5:6, but in the diplomacy screen and all other uses, it's 1:1,272727, or something close to 7:9.
 
Back
Top Bottom