Jump to content

scaling issues - blurry when down-scaled


Ooops
 Share

Recommended Posts

Hello.

 

I'm new here, and having made my first HTML5 game, I have trouble with scaling.

 

Being my first game, I didn't make all the smart moves  :( I've made my game and art assets to fit a 800*600 resolution. But of course many mobile devices are smaller than that.

I'm using GameMaker: Studio and followed their instructions (as well as other advices I gathered from various places) and my game scales to accommodate smaller screen. The problem is that, while everything still is at its logical place, it looks very blurry and the text is hard to read.

 

It's especially awful when using webgl. Even a very modest down-scaling (say 600*450) makes the text hard to decipher. Canvas rendering is somewhat better, but of course forcing canvas prevents the speed boost given by webgl. and there still comes a time when it is small enough that it looks like crap (like at the 480*320 resolution which seems like a requirement for old mobile devices). Without Webgl, I find also that Chrome handles down-scaling less graciously than Firefox (which looks almost OK down to 480*320)

 

Is there a way to chose how down-scaled graphics are rendered (linear, bicubic, that sort of things)? Or are there any other tips and tricks to keep in mind to achieve a good scaling?

 

Thanks for your help.

Link to comment
Share on other sites

  • 2 years later...

Up.

Experiencing the same issue when managing canvas scaling via GMS; although, when pinching the webpage down even a little, the blurness immediately comes off (left – untouched, right – pinched down; iPhone 6, Safari):

b539b54fd64c.png

The game above is 1280x1920, so, it's not because of scaling up to fil the screen. I guess that we should manage canvas scaling not via GMS, but via JS (since GMS' method gives such ugly results), but what is the best way to do that?

 

Link to comment
Share on other sites

If you scale to non ^2 ratios then you're always going to get issues, whether or not they are visible is dependent on the exact ratio being scaled to and the type of interpolation used to try and handle scaling.

I'm not exactly sure how images get rendered into canvas but is it possibly you're also having issues with the dpi of the device its running on? i.e. is downscaling for the resolution change then trying to upscale somehow for the dpi.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...