ludei / Construct-2-plugin

http://www.ludei.com
41 stars 35 forks source link

9 patch object appears blurry on export to mobile #39

Open SeanNoonan opened 9 years ago

SeanNoonan commented 9 years ago

Problem Description When you export a pixel based game using say - the retro template, if you ever use a 9 patch object, it becomes blurry featuring AA and other artefacting. This is almost identical to a bug I reported a while back: https://www.scirra.com/forum/viewtopic.php?f=152&t=100468 That bug was fixed, but seemingly it is still an issue for CocoonJS.

Images: http://sean-noonan.com/development/dev_noonanrun/construct_ios_fukt_1.png http://sean-noonan.com/development/dev_noonanrun/construct_ios_fukt_2.png http://sean-noonan.com/development/dev_noonanrun/construct_ios_fukt_3.png

Capx https://dl.dropboxusercontent.com/u/7282045/9patch_iOS_export.capx

Description of Capx Just export the project to CocoonJS or Ejecta and run on an iOS device

Steps to Reproduce Bug Export the project using CocoonJS Deploy it to the CocoonJS app on an iOS device via iTunes Run it!

Observed Result 9 Patch looks blurry

Expected Result 9 Patch has the same sharpness as the tiled and sprite objects

A side effect of this is that the WebGL effect "replace color" doesn't work on 9 patch objects on iOS

When using a 9patch the WebGL effect, doesn't seem to replace every colour, it just changes some of them - whereas this is totally fine in a browser or using phonegap.

img_0632

SeanNoonan commented 9 years ago

Here's a thread containing the source of the issue and a capx... https://www.scirra.com/forum/viewtopic.php?f=152&t=115058

SeanNoonan commented 9 years ago

After further investigation it seems as though the 9patch object is using Linear sampling rather than Point even when Point is selected before an export. Any idea if this can be fixed?

LibelulaV commented 9 years ago

Have you tested it on Android?

SeanNoonan commented 9 years ago

No, I don't have an Android device. If someone would like to try that capx in the linked thread on an Android device, that would be great.