Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spine example page looks bad on Windows #39

Open
JCash opened this issue Sep 13, 2023 · 2 comments
Open

Spine example page looks bad on Windows #39

JCash opened this issue Sep 13, 2023 · 2 comments
Labels

Comments

@JCash
Copy link
Contributor

JCash commented Sep 13, 2023

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

@JCash JCash added the bug label Sep 13, 2023
@AGulev AGulev transferred this issue from defold/defold May 3, 2024
@aglitchman
Copy link
Contributor

aglitchman commented Oct 11, 2024

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:

  • sample from the mipmap above, like texture2D(texture_sampler, var_texcoord0.xy, -1.0)
  • use RGSS (a cool algorithm by Ben Golus, available in the Sharp Sprite asset).

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

@AGulev
Copy link
Contributor

AGulev commented Oct 12, 2024

Maybe just pre-scale down the atlas size?

Sounds good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants