Nested Masking help

Hi everyone,

I’m having some weird issues with masks. I have a game in the App Store that makes use of extensive masking, and things work great on build 730 and below. However, I’m trying to update the app for iPad 3 and moved onto build 767, and now masks are behaving strangely.

I’m not allowed to share code or full screenshots, but if someone from Ansca wants screenshots and examples I have been OK’d to send directly to them.

Here’s what I’m doing:

I start with a display group. Inside this group I have child image display objects that have masks (see the pie slices in the image below). When I add a mask onto the overall display group, the children’s masks look strange and get messed up, almost like they’re multiplying color instead of masking them out.

Sample of build 730:

Sample of build 767:

This is the same identical code.

I’ve tried doing what some other threads suggest like adding the masks to the display objects after they’re all added (http://developer.anscamobile.com/forum/2012/02/11/why-do-masks-hate-me), but this did not work. Same result.

Any help would be appreciated. Thanks. :slight_smile: [import]uid: 5022 topic_id: 23449 reply_id: 323449[/import]

Hi Chris,

I am not totally “up” on masks but it appears we’ve had some issue pop up between builds 730 and 767.

Are you able to file a bug report including a test case?

If you do not want to send us any images from your actual project that is fine, just put together a sample using any images you like, clip art, paint drawings, etc, that shows us the problem.

If you can do that someone from the team will be able to look into it and hopefully isolate the build in which this issue started occurring and try to find a fix.

Thanks,
Peach :slight_smile: [import]uid: 52491 topic_id: 23449 reply_id: 94028[/import]

Thanks Peach! I’ll try to reproduce as best as I can. Will get back to you in a bit! [import]uid: 5022 topic_id: 23449 reply_id: 94031[/import]

Thanks Chris :slight_smile: [import]uid: 52491 topic_id: 23449 reply_id: 94053[/import]

Bug posted. Case # 12920. [import]uid: 5022 topic_id: 23449 reply_id: 94055[/import]

Also just FYI, in my bug filed, if you change the last 3 lines from localGroup to wheelGroup, you get all sorts of funky stuff related to the masking of the “coloredPanel” object and the wheelBackground. I can’t figure out how to go into my bug case and update it with extra notes. [import]uid: 5022 topic_id: 23449 reply_id: 94107[/import]

You should have gotten an email when you filed the bug, I think? If so, reply to it and that will be added to what we see when we view it.

Will pass along the bug#

Peach :slight_smile: [import]uid: 52491 topic_id: 23449 reply_id: 94208[/import]

Anyway to get updates on this? I logged into FogBugz but it wont let me bring up my case #. Oh, and I replied to the email with my notes. [import]uid: 5022 topic_id: 23449 reply_id: 94540[/import]

We’re seeing masking issues too, which began after updating to the latest daily build (768)

When a nested image is masked and placed into a group which is also masked things aren’t working and we’re getting unsettlingly close to release. We would use an older build if it wasn’t for the fixes to storyboard which we were already waiting for.

Weirdly, you can get different results based on different background colors.

Here’s what things should look like without the bug (i.e. no mask on the group, only on the nested image):

Here’s the buggy example with a large mask on the group:

Here’s the same code on a white background:

Here’s the same code on a black background:

Weird huh?

I had just submitted a bug before reading this thread. So if they’re the same issue, Ansca you can ignore my one (13042). Just please fix the original one sooooon! [import]uid: 35618 topic_id: 23449 reply_id: 94683[/import]

Hey Chris, the bug wasn’t assigned to me however I did take a look and see you were looking for a link to build 704.

That’s the last stable, it’s here; https://developer.anscamobile.com/downloads/coronasdk

I know it says 704a, that is because it was updated for Xcode 4.3.

Peach :slight_smile: [import]uid: 52491 topic_id: 23449 reply_id: 94684[/import]

Thanks Peach! I did not think to check the stable build section!

I can confirm masking works correctly (in my app) in build 704 and also up to 730. It was sometime after 730 with a fairly recent update. I also replied to the email with this information.

@jeremybell - I’ve spent hours on 767 trying to find some workaround for this problem, can’t find anything. Hopefully they figure this out soon.

Chris [import]uid: 5022 topic_id: 23449 reply_id: 94704[/import]

Update! 704a also works for iPad 3. I can use this in the meantime. [import]uid: 5022 topic_id: 23449 reply_id: 94706[/import]

OK I lied, I can’t use it. I use quite a bit of new features on the newer builds (scrollviewer for example). Also I use FB’s SSO.

Any update on a fix for this? It is higher priority than I thought a few days ago… [import]uid: 5022 topic_id: 23449 reply_id: 95543[/import]

I can’t tell you anything super-new right now, only that we’re working on it - I hope we’ll have some news for you very soon; you should get a reply to your ticket when we do :slight_smile: [import]uid: 52491 topic_id: 23449 reply_id: 95640[/import]