Groups within Groups within Snapshots?

Please post the bug report number that you got in the email for a reference.

Rob

Sure, it’s case 37556

For reference, here’s what I’m seeing.

Expected:

bTDaIaG.jpg

Actual:

UD0ZTfV.jpg

Seems like the snapshot is culling all the images that fall above or to the left of the center point of the snapshot (ie, < 0.0 on the x or y axis).

Same problem here. I “solved” reducing the nesting groups, but it’s not very convenient.

Any news on fixing this issue?

I’m having the same issue! It will certainly be disruptive, can it be made a priority?

Also thanks David and dwallin335 for posting - I’ve spent most of the day trying to figure out why on earth things are disappearing for no reason!

+1 I can confirm this.

I’m creating a snapshot the full size of the screen (to save on processing of static objects and groups for a level background).

If I try and position the inserted group so the it anchors at the center of the snapshot viewport/mask, any sub-objects top-left, top-right, and bottom-left quadrants of the snapshot are culled.

Setting the size of the snapshot to allow for double the width and height that I need, then positioning everything in the bottom right quadrant is a decent workaround, until you get to iPhone 6+, which because of it’s screen size in raw pixels requires a snapshot larger than 4096 pixels on the y-axis, so it breaks.

It’s also impossible to change the origin of snapshots to be anything but the center. See this poor ignored soul: http://forums.coronalabs.com/topic/46265-snapshots-created-with-half-the-size-passed-to-newsnapshot/

The ability to create snapshots, that work… would be amazing!

I’ve added some drop-in code which fixes this by extending display.newSnapshot to process any nested groups inserted into the group, and flatten them into a single layer. You don’t have to do anything but drop the code into your project, preferably in some sort of fixes.lua file which you call before anything else.

Find it here.

http://code.coronalabs.com/code/snapshot-fixes

It works for me, if you have any issues let me know via Github.

FYI, got a note saying this will be fixed!

“This will be fixed in daily build 2599 or after.”
 

Yes, I can confirm that this issue was investigated and it will be fixed. Thanks for your patience everybody.

Brent

Also experiencing this issue… Groups within Groups within snapshot…

I was actually able to achieve a solid snapshot cache utilizing Groups within Groups (even within Groups) but requesting a snapshot object twice the size as necessary.

After utilizing this multiplier, the path coordinates (x,y) do not seem to be transforming correctly.  I can exaggerate the values to achieve a transform, but something appears off here.  Still testing to see if I can come up with something that looks mathematical…

Ah… after removing my groups border mask, i can see my group stack is sitting in the bottom right corner of the multiplied snapshot… hmmm

Same problem here. I “solved” reducing the nesting groups, but it’s not very convenient.

Any news on fixing this issue?

+1 I can confirm this.

I’m creating a snapshot the full size of the screen (to save on processing of static objects and groups for a level background).

If I try and position the inserted group so the it anchors at the center of the snapshot viewport/mask, any sub-objects top-left, top-right, and bottom-left quadrants of the snapshot are culled.

Setting the size of the snapshot to allow for double the width and height that I need, then positioning everything in the bottom right quadrant is a decent workaround, until you get to iPhone 6+, which because of it’s screen size in raw pixels requires a snapshot larger than 4096 pixels on the y-axis, so it breaks.

It’s also impossible to change the origin of snapshots to be anything but the center. See this poor ignored soul: http://forums.coronalabs.com/topic/46265-snapshots-created-with-half-the-size-passed-to-newsnapshot/

The ability to create snapshots, that work… would be amazing!

I’ve added some drop-in code which fixes this by extending display.newSnapshot to process any nested groups inserted into the group, and flatten them into a single layer. You don’t have to do anything but drop the code into your project, preferably in some sort of fixes.lua file which you call before anything else.

Find it here.

http://code.coronalabs.com/code/snapshot-fixes

It works for me, if you have any issues let me know via Github.

FYI, got a note saying this will be fixed!

“This will be fixed in daily build 2599 or after.”
 

Yes, I can confirm that this issue was investigated and it will be fixed. Thanks for your patience everybody.

Brent