Cacoon Plugin Fix

Discussion and feedback on Construct 2

Post » Mon Nov 05, 2012 11:43 am

Hey Guys,

I have been in contact with Ludei about the fact that sprites and text are blurry in CocoonJS and they sent me some code to use if I had of written the code from scratch. Obviously I didn't (Used Construct).

Is there anyway we can get this code added to the compilation of CocoonJS projects so they come out crystal clear?

Below is what I was sent.

"Another option you have is to use our "pixel art" extension so the rescaling doesn't use a linear image filter. For that, you have 2 options:

a) This call will disable linear filtering globally, for the whole game:
ext.IDTK_APP.makeCall("setDefaultAntialias", false);

b) If you want to disable it for a specific canvas, modify your getContext call to add a second parameter, like this:
ctx = myCanvas.getContext("2d", {antialias:false} );" - From Ludei
B
7
S
2
Posts: 75
Reputation: 1,100

Post » Mon Nov 05, 2012 12:14 pm

Construct 2 already uses this code (specifically, option B). It is set by changing the 'Sampling' project property from 'Linear' to 'Point'. Have you tried that?
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Mon Nov 05, 2012 12:48 pm

Yeah and just retried it then, still blurry text.
B
7
S
2
Posts: 75
Reputation: 1,100

Post » Mon Nov 05, 2012 1:01 pm

BTW, I never seen razor sharp text on cocoonjs. I took a look at your screenshots in the previous post, and I think that you have already reached the maximum sharpness achievable on cocoonjs.
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Mon Nov 05, 2012 1:03 pm

If that is true it's a mighty shame.
It's not production quality.
B
7
S
2
Posts: 75
Reputation: 1,100

Post » Mon Nov 05, 2012 1:20 pm

Oh, I seen you're testing on ipad. I was talking about android side, so maybe I was wrong cause I'm not so into iOs things. From what I remember CocoonJS currently doesn't support retina screens on ipads (only iphone on the current release but support is planned. Read here) , probably this is your problem.Knifegrinder2012-11-05 13:21:10
B
11
S
3
Posts: 224
Reputation: 2,028

Post » Mon Nov 05, 2012 2:40 pm

Best ask @Ludei for improvements here, since I think this is something they would have to fix.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Tue Nov 06, 2012 11:11 am

I don't think it's the Retina issue as I can turn it off for iPad inside Construct and it still looks good.

And yes @Ashley, if it is fixed it will be the perfect solution.
B
7
S
2
Posts: 75
Reputation: 1,100

Post » Wed Nov 07, 2012 3:09 pm

I agree the graphics in cocoonjs are utter poo man

blurry as hell and even plane text sucks the big one and you cant even read it sometimes.

Is there an alternative to cocoonjs that doesnt suck when it comes to the image quality?
B
11
S
2
G
3
Posts: 95
Reputation: 3,028

Post » Wed Nov 07, 2012 8:42 pm

Can you update with any comments from ludei? This really needs sorting. Is it antialiasing?
B
11
S
2
G
3
Posts: 95
Reputation: 3,028

Next

Return to Construct 2 General

Who is online

Users browsing this forum: Mirlas, NetOne, saiyadjin and 2 guests