Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

9 patch object appears blurry on export to mobile #39

Open
SeanNoonan opened this issue Oct 19, 2014 · 4 comments
Open

9 patch object appears blurry on export to mobile #39

SeanNoonan opened this issue Oct 19, 2014 · 4 comments

Comments

@SeanNoonan
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Contributor

Have you tested it on Android?

@SeanNoonan
Copy link
Author

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.

@SeanNoonan SeanNoonan changed the title WebGL effect "replace color" doesn't work on 9 patch objects on iOS 9 patch object appears blurry on export to mobile Oct 27, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants