Converting a CATransform3Dto is possible CGAffineTransform, but you will lose some of the possibilities. I found it useful to convert the aggregate transformation of the layer and its ancestors to CGAffineTransformso that I can display it using Core Graphics. Limitations:
- Your entry will be considered flat in the XY plane
- Your conclusion will be considered flat in the XY plane.
- /
.m34
:
CATransform3D fullTransform = <your 3D transform>
CGAffineTransform affine = CGAffineTransformMake(fullTransform.m11, fullTransform.m12, fullTransform.m21, fullTransform.m22, fullTransform.m41, fullTransform.m42);
3D-, , , , , CATransform3D CGAffineTransform. , , , 3D- . . , .
3D- Core Graphics, , ( !), , ,
CGContextSaveGState(context);
CGContextConcatCTM(context, affine);
[layer renderInContext:context];
CGContextRestoreGState(context);