Sprite interpolation method

Discussion and feedback on Construct 2

Post » Tue Oct 11, 2011 2:10 am

Or something like that

Its just that, I like working with low resolution sprites (ie. 8x8 or 16x16) and then I set the layouts to a 200% zoom. But with Construct 2 and HTML5, i'm getting blurry sprites.
Its probably some default browser behavior, but could C2 force Nearest Neighbor interpolation?

EDIT: i also just noticed construct's zoom (crtl + mouse wheel) zooms in by 10% over the previous zoom value every time (100% -> 110% -> 121% -> 133%...) so I can't zoom to round numbers (200%, 400%) and this is really annoying. Could this be fixed? Or the possibility of clicking the zoom number to type the zoom I want?7Soul2011-10-11 02:13:35
B
83
S
21
G
15
Posts: 1,039
Reputation: 15,134

Post » Tue Oct 11, 2011 1:24 pm

[QUOTE=7Soul]I like working with low resolution sprites (ie. 8x8 or 16x16) and then I set the layouts to a 200% zoom. But with Construct 2 and HTML5, i'm getting blurry sprites.[/quote]
Unfortunately it's up to the browser how it displays stretched sprites. Chrome seems to use nearest neighbour, but all other browsers use bilinear, and I think Chrome might switch to bilinear when they enable hardware acceleration too. There's nothing in the standard that lets you override it. You might just have to draw all your graphics 2x - PNG should compress away the difference in filesize anyway.

[QUOTE]i also just noticed construct's zoom (crtl + mouse wheel) zooms in by 10% over the previous zoom value every time (100% -> 110% -> 121% -> 133%...) so I can't zoom to round numbers (200%, 400%) and this is really annoying.[/QUOTE]
Hold ctrl+shift as you scroll the mouse wheel, or use the zoom buttons in the ribbon.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,620


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 16 guests