defold / examples

Defold examples for the Learn section of the site
https://www.defold.com/examples/
109 stars 28 forks source link

Spine example page looks bad on Windows #39

Open JCash opened 1 year ago

JCash commented 1 year ago

The example looks jagged, suggesting it gets the wrong size or something. https://defold.com/examples/animation/spine/

Looks good on macOS (Firefox):

Screenshot 2023-09-13 at 09 47 20

But poor on Windows (Edge) (blurriness may be to transferring image over chat): Notized the jagged lines, which are even more jarring when animating. image

aglitchman commented 1 month ago

This issue is how to tell everyone that you have a Mac Retina without saying that you have a Mac Retina 😄

The reason is because last year all materials have mipmapping disabled by default. And the original model just has HUGE sized sprites and very thin lines. When scaled down we see linear filtering issues. On high dpi devices it's not so noticeable, but on old low dpi displays of course there will be a hard “ladder”.

But if we turn on mipmapping, we will see blurred lines.

We use two solutions in our games:

How to solve this for this example? Maybe just pre-scale down the atlas size?

AGulev commented 1 month ago

Maybe just pre-scale down the atlas size?

Sounds good!