Re: [SOLVED] Problem getting my layers to draw in the right order

2011-07-26 Thread Kyle Sluder
On Tue, Jul 26, 2011 at 10:51 AM, David Duncan wrote: > Except for certain situations, Core Animation effectively treats each layer > as a rendering target – that is, all of that layer's sublayers are flattened > into that layer  to produce the final image for that layer. What this means > is t

Re: [SOLVED] Problem getting my layers to draw in the right order

2011-07-26 Thread David Duncan
On Jul 26, 2011, at 7:50 AM, Kyle Sluder wrote: > From the description given in the documentation, I would think that because > CA is sorting the layers based on sibling order and zPosition that it would > be possible to render a layer of zPosition=0 atop a nephew layer with > zPosition=1000. >

Re: [SOLVED] Problem getting my layers to draw in the right order

2011-07-26 Thread Kyle Sluder
On Jul 26, 2011, at 7:13 AM, Graham Cox wrote: > Anyway, what I've learned is that the z values need to be big, and probably > not terribly precise. David Duncan's post in this thread seems relevant: http://www.cocoabuilder.com/archive/cocoa/193266-reordering-calayer-sublayers-without-raping-m

[SOLVED] Problem getting my layers to draw in the right order

2011-07-26 Thread Graham Cox
OK, turns out that the zPosition property of the layers is important here. I was setting them to values like 100, and -100. That turns out to be way too small - the perspective/rotation transform I was applying to the 'behind' layers was swinging these layers into a zPosition that greatly exceed