ruffle-rs / ruffle

A Flash Player emulator written in Rust
https://ruffle.rs
Other
15.71k stars 817 forks source link

[NSFW] Lust planet - Text and shapes at the title screen barely make sense #3302

Open Diatonator opened 3 years ago

Diatonator commented 3 years ago

Chrome 88.0.4324.150 Nightly 2021-02-16

http://eye.swfchan.com/flash.asp?id=182996&n=Lust+Planet+0.79b+by+Supersatanson+%28SssHentaiGameFlashPlatformerPornSexyAlienMonsterGirls%29.swf

The title screen is a hot mess - text is barely readable and the shapes are really different in the Ruffle playback:

Adobe: image Ruffle: image

I know that the text glow/outlining isn't supported yet, but what about the shapes?

If you play the game further you will see the various problems with the text, but mostly it's either wrong font, no effects/glow, or the text is slightly out of bounds (a bit annoying but not that much). The title screen problems are looking the most severe so far, didn't play the game that much to tell otherwise.

torokati44 commented 3 years ago

My guess is that the frame shapes are drawn in a small size, and then transformed to the appropriate dimensions around the text. At the moment, this transformation affects the stroke width in Ruffle, but it shouldn't - the lines should stay thin. By the looks of it, the same thing happens with the corner radius. It is applied to the original size of the frame shape, and then scaled up together with it - also incorrectly, so it seems.

Herschel commented 3 years ago

Looks like this may require scale9grid (nine-slice scaling) as well.

tensafefrogs commented 3 years ago

It looks like an old site of mine also has this problem. I can't quite remember exactly how the code was written but I do recall being excited about scale9 so it's possible it was used here.

Here's a screenshot of a box that should have a small ~1px border, but here it is extra wide.

Screen Shot 2021-08-30 at 9 58 57 AM
tensafefrogs commented 3 years ago

Here's the site it's on if you need to test/verify: https://deconcept.com/

Diatonator commented 2 years ago

The bug persists as of 31.12.2021

Diatonator commented 2 years ago

I guess there is no that scale9grid thing yet? As per Nightly 2022-09-28 main menu shows the same thing.

Lord-McSweeney commented 1 year ago

Filters have been implemented, so I'm guessing the text (but not the borders) should be showing up correctly now. I haven't checked to verify though.

torokati44 commented 1 year ago

Accidental close, not fixed yet.