OutRun2006Tweaks icon indicating copy to clipboard operation
OutRun2006Tweaks copied to clipboard

[Bug]: UIScalingMode positioning/scaling issues

Open emoose opened this issue 1 year ago • 7 comments

Please let me know here if you notice any text positioning issues / things jumping to sides of screen / text only partially being repositioned, such as the quote marks here: image

The game has a lot of different modes which change which UI text is present, and our code has to hook into every UI draw to make sure it's repositioned properly... very good chance there are still parts that haven't been hooked yet.

emoose avatar Jul 26 '24 20:07 emoose

yes there is. get to the "Beat that Car!" Mission in HA mode to see the rival markers jumping.

https://github.com/user-attachments/assets/93d90145-f508-4598-b3c2-c3ac9e3e9ca8

Sonic-TV avatar Sep 17 '24 17:09 Sonic-TV

The "Rev" label and background unlit light are ever so slightly off (think by a pixel) compared to 4:3 mode. (this was taken with default textures; not my doing this time, lol).

Scaling mode 2: 4-3

Scaling mode 1: 16-10

As a side note, captures of the Chihiro hardware and Lindbergh show that the red light sprite was originally scaled to better fit over the outline (with a different opacity?), though I don't really know that it's possible to fix like that here. Edit: It isn't, lol, at least not with more manual sprite edits. They changed this all around in C2C. The arcade versions are different in how the two sprites blends together (they might use a bloom lighting pass? I really don't know, it all looks different: brighter and more orange). They presumably couldn't work the effect/transparency right for the home port (at least PC and PS2, Xbox seems to to still have similar colors) and so they re-drew the black and white circle sprite to be bigger so it looks less weird. So many odd little things like this that you can't readily fix. C2C has the SP2 font on "REV" correct though, which none of the others do, so go figure.

thegreatprophetzarquon avatar Sep 24 '24 14:09 thegreatprophetzarquon

Screenshot (73)

When doing "test your slipstream" missions in the Flagman mode, the "Rival" label stays in the 4:3 alignment rather than moving over along with their score.

thegreatprophetzarquon avatar Oct 12 '24 00:10 thegreatprophetzarquon

image On C2C, Clarissa Missions the Mission Marks (dots) and the capsules GFX are not aligned, no matter what you do editing the textures it will be always misaligned. So the problem is the position of the elements, not the texture itself.

image This picture shows me trying to test with a modified texture.

Those pictures were using HD textures, but it still happens in vanilla version.

Zoukambada avatar Oct 21 '24 20:10 Zoukambada

The "Rev" label and background unlit light are ever so slightly off (think by a pixel) compared to 4:3 mode.

This is still the case with the latest build for manual transmission and is the last (only?) issue I notice with UIScalingMode 1 for the arcade HUD (outside of C2C mission stuff). Just a heads up since you posted a roadmap for 0.7: might be nice to squash it with all the major stuff coming.

thegreatprophetzarquon avatar Jan 17 '25 03:01 thegreatprophetzarquon

Ah looks like an issue with the scale value being floating point while the Rev marker uses int, so would always end up rounding down how much to move it by.

Added some code to round it to nearest instead and seems to help it, haven't tested with many aspect ratios yet though: https://github.com/emoose/OutRun2006Tweaks/actions/runs/12823016143

Not sure if this might end up affecting other things yet neither, but guess those shouldn't be as noticeable as the indicator light :P

Had a look at the "test your slipstream" mode too, should have rival text fixed now, thanks for posting it!

emoose avatar Jan 17 '25 05:01 emoose

That works perfectly in 16:10. Fantastic—thanks for both fixes!

thegreatprophetzarquon avatar Jan 17 '25 05:01 thegreatprophetzarquon