Page 1 of 1

0.13.5 - Portrait scaling issue on large HUD

Posted: Thu May 26, 2022 4:30 pm
by Ninelan
There appears to be a mistake in handling the portrait in the large GUI as of 0.13.3!
1.png (294.81 KiB) Viewed 270 times
The portrait is squished onto a square format, it is most apparent with taller faces.

This is how they used to appear in a previous version, and they used to vary from each other a lot in size depending on how much whitespace or how compact the sprite was.
2.png (119.95 KiB) Viewed 270 times

As far as I know in classic Daggerfall, the portrait sprites are true to their size in context to the GUI.
As we see, the pixels in the portrait and the GUI are proportionate to each other, and of the same scale. The face does not appear bigger or smaller depending on what head you are using.
3.png (71.33 KiB) Viewed 270 times

0.13.5 - Portrait scaling issue on large HUD

Posted: Thu May 26, 2022 10:06 pm
by Interkarma
Thanks, I'll take another pass at this one. The way I used to handle this (in your second screenshot) is the most technically correct and flexible, but people complained about the smaller size on larger portraits.

It's not possible to do this exactly like classic here. The large docked HUD in DFU has to work across whatever resolution and aspect ratio the player throws at it, whereas classic only has 320x200 to worry about. I'm sure I can do better though.

Re: 0.13.5 - Portrait scaling issue on large HUD

Posted: Fri May 27, 2022 4:58 pm
by Ninelan
Oh yeah, an exact match would be something for pedants, even the old method was good enough on the smaller heard sprites to not really be significantly distracting.

As long as the face area on all the sprites takes up the same rough area, and is big enough in comparison to the box it sits in, it'll be just perfect.
It also doesn't hurt if things like hair go slightly out of the box. I know in DFU there's this buffer zone that's especially noticeable in the squished faces between the face and the portrait box edge, which is probably contributing to the smallness that got exaggerated on the bigger sprites.