[Suggestion] hqx Sampling

Discussion and feedback on Construct 2

Post » Mon Dec 23, 2013 11:37 pm

Well, I have a little fixation to try to make my projects to work and look great regardless the resolution (I try to make my games compatible from 480p to 1080p). I want to have one universal game build of the game.

The latest C2 addition TileMap is great except one problem (for me at least): does not work well with downscaleing. Not a problem when games are based on a fixed resolution, but if you want to support more resolutions you will have to use upscaling (since downscaling create seams) and the images will look blurry or pixelated with the current sampling (point and linear).

Thanks to anata for pointing out a great solution that is also used in old console emulators

Original (1x):


hq2x:


hq3x:


hq4x:


The code for hqx is already ported to JavaScript here and here

Comparison of different Pixel Scalings
Pixel Art Scaling Algorithms - Wiki
hqx - Wiki

js-hqx was already implemented in another HTML5 game engine and works well.
B
49
S
15
G
6
Posts: 534
Reputation: 7,195

Post » Tue Dec 24, 2013 12:37 am

1+'d
B
97
S
35
G
29
Posts: 3,139
Reputation: 28,371

Post » Tue Dec 24, 2013 3:53 am

I would love to have auto scaling for assets to be of broader use. However the design theory running now is that you should use higher assets sizes and down scale. Now of course the OP posted the problem with tilemaps creating seems. so maybe posting about having the tile renderer improved to remove seems might be more likely.
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,018

Post » Tue Dec 24, 2013 5:50 am

This wouldnt work as Ashley doesnt want to make tilemap seamless whichmeans it can only ever work with point sampling?
B
147
S
74
G
20
Posts: 1,786
Reputation: 22,527

Post » Tue Dec 24, 2013 4:20 pm

Hmm, isn't hqx under the GPL license? That could make it tough to include. But there are other interpolation filters around that are (imo) better than hqx. Here's one:

http://wayofthepixel.net/index.php?topic=13508.0

I think the source is in there somewhere? Best ask permission to use it of course..ErekT2013-12-24 16:21:24
B
39
S
16
G
6
Posts: 542
Reputation: 7,617

Post » Tue Dec 24, 2013 7:04 pm

jayderyu wrote: I would love to have auto scaling for assets to be of broader use. However the design theory running now is that you should use higher assets sizes and down scale. Now of course the OP posted the problem with tilemaps creating seems. so maybe posting about having the tile renderer improved to remove seems might be more likely.

Aside from my TileMap issue, 8-bit games will also receive a graphical boost.

ErekT wrote: Hmm, isn't hqx under the GPL license? That could make it tough to include. But there are other interpolation filters around that are (imo) better than hqx. Here's one:

http://wayofthepixel.net/index.php?topic=13508.0

I think the source is in there somewhere? Best ask permission to use it of course..

Looks great Info about the source and algorithm is at Reply #10
B
49
S
15
G
6
Posts: 534
Reputation: 7,195


Return to Construct 2 General

Who is online

Users browsing this forum: Artpunk and 6 guests