WebGL 2 & C2/C3

Discussion and feedback on Construct 2

Post » Mon Jan 18, 2016 9:18 pm

alspal wrote:Yeah it's a shame it's inefficient, but non-power-of-two sprites aren't smooth or render as well as power-of-two when scaled/zoomed out. Sometimes quality matters!


I agree.
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
92
S
30
G
22
Posts: 1,987
Reputation: 20,178

Post » Mon Jan 18, 2016 10:09 pm

alspal wrote:Yeah it's a shame it's inefficient, but non-power-of-two sprites aren't smooth or render as well as power-of-two when scaled/zoomed out. Sometimes quality matters!

Only during preview. After export they belong to a power-of-two spritesheet, so mipmapping takes effect (which is what improves the downscaled quality). Though with WebGL 2 it will work in preview mode as well I guess.
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,537

Post » Tue Jan 19, 2016 4:42 am

Ashley wrote:Only during preview.


I haven't found that to be true. Maybe I've been doing something incorrect somewhere? If that's actually suppose to be a feature, then I suppose I'll submit it as a bug report.

Example (capx):

Image Image Image Image

As you can see, the power-of-two sized sprites move/look smoother and with less pixel jitter. Without being that square size, it seems as if it's doing "point" sampling rather than "linear"!

Anyway, I hope WebGL 2 won't take too many years, so we can get this one improvement!
B
151
S
75
G
20
Posts: 1,793
Reputation: 22,749

Post » Tue Jan 19, 2016 12:16 pm

@alspal - ah, you're right. There's a quirk in C2's spritesheeting system where single leftover individual frames are cropped to their original size instead of padded to a power-of-two size, which creates an inconsistency in their display quality. However you can work around it by setting "downscaling quality" to "high", which forces all exported images to be padded to a power-of-two size. But yeah you're right, there are a few odd cases like this which WebGL 2 will fix. Chrome is already experimenting with WebGL 2 - you can experimentally enable it in chrome://flags, but note the C2 engine currently does not attempt to use it even when it's supported. It's a good sign that it should probably be supported some time this year, though.

FWIW, Construct 3 has a better spritesheeting engine that fixes some of these issues, even in WebGL 1 mode.
Scirra Founder
B
400
S
237
G
89
Posts: 24,550
Reputation: 195,537

Previous

Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 7 guests