Graphical problem on iOS devices (CocoonJS)

Discussion and feedback on Construct 2

Post » Mon Feb 17, 2014 3:10 pm

I'm having a problem with how my button icons are rendered on iPhone devices via CocoonJS (tested on iPhone 4 and iPhone 5). It's most likely a CocoonJS bug as the buttons are rendered normally when opening the HTML exported game in Safari.

This is a comparison with Android exported with CocoonJS:



I was wondering if anyone experienced anything similar and know how to prevent it.
I will email @Ludei about this as well, but it'll probably be weeks before anything could be done on their part.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Mon Feb 17, 2014 5:43 pm

It's a CocoonJS bug. Looks like they don't handle premultiplied alpha properly. Report it to Ludei.
Scirra Founder
B
395
S
232
G
88
Posts: 24,368
Reputation: 193,746

Post » Tue Mar 18, 2014 11:19 pm

Apparently it's caused by the Brightness WebGL effect, using the AdjustHSL effect for instance does not cause the bug.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Sat Mar 29, 2014 5:04 pm

@Ashley
Just wanted to add that the same thing happens when using the new Ejecta exporter.
The odd thing is that when I used Ejecta back before the official exporter (by using the HTML exporter) the images with Brightness rendered normally. Could it be caused by the exporters?
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Sat Mar 29, 2014 5:49 pm

Unlikely. Did you say this is *only* caused by using WebGL shaders?
Scirra Founder
B
395
S
232
G
88
Posts: 24,368
Reputation: 193,746

Post » Sat Mar 29, 2014 6:32 pm

Yes, but not all shaders. AdjustHSL for instance is fine.
Here's a example capx https://dl.dropboxusercontent.com/u/354 ... fects.capx
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Tue Apr 01, 2014 12:35 pm

@Ashley Simply by having the shader added, even without changing the effect parameters, causes the bug.
B
33
S
12
G
7
Posts: 227
Reputation: 7,582

Post » Tue Apr 01, 2014 12:48 pm

Post it to the bugs forum following the guidelines and with a list of all affected shaders for further investigation.
Scirra Founder
B
395
S
232
G
88
Posts: 24,368
Reputation: 193,746


Return to Construct 2 General

Who is online

Users browsing this forum: jobel and 3 guests