STRANGE bug - Masks and nearby Text Objects

VIDEO: This one is hard to explain.

VIDEO: This one is hard to explain.

VIDEO: This one is hard to explain.

Left:

  • list of Group Objects, Text Objects within

  • these Groups sit within a scrollView

Right:

  • list of Group Objects, top left has mask applied (320 x 480 object, masked to be 320 x 320)

  • list of Group Objects sit within a scrollView

Problem:

  • when sliding the scene over, the mask  applied to the Right Group Object becomes any of the text in the Left Group Objects

It’s actually kind of cool since the top left is a camera feed on device, the camera feed is masked by the Text Object. 

Thank you.

Hi @AidanWolf,

I can’t guess exactly how you have your objects and groups set up, but this could be an issue of exceeding the nested masking limit, which is a limitation on devices that can actually vary from device to device. The typical limit is 3 nested objects, and remember that scrollViews occupy a mask (they are within a container), text objects occupy a mask (by how the text is rendered), and graphics.newMask() obviously occupies a mask.

This whole issue is described in better detail under “Gotchas” here, among other places where it might apply:

https://docs.coronalabs.com/api/library/widget/newScrollView.html

Brent

Hi,

I solved the issue. There was a newRect with a mask (the same mask) sitting in a group one layer below the group that held the scrollView. They were unrelated besides a parent group and the screen coordinates. Once that newRect was removed from the background, the newRect with the masking issues was solved.

Thank you,

Aidan

Hi @AidanWolf,

I can’t guess exactly how you have your objects and groups set up, but this could be an issue of exceeding the nested masking limit, which is a limitation on devices that can actually vary from device to device. The typical limit is 3 nested objects, and remember that scrollViews occupy a mask (they are within a container), text objects occupy a mask (by how the text is rendered), and graphics.newMask() obviously occupies a mask.

This whole issue is described in better detail under “Gotchas” here, among other places where it might apply:

https://docs.coronalabs.com/api/library/widget/newScrollView.html

Brent

Hi,

I solved the issue. There was a newRect with a mask (the same mask) sitting in a group one layer below the group that held the scrollView. They were unrelated besides a parent group and the screen coordinates. Once that newRect was removed from the background, the newRect with the masking issues was solved.

Thank you,

Aidan