2008 04 29Core Animation is mostly 2D
Being a layer engine, Core Animation doesn't care much about 3D. Yes, you can setup a projection transform but it will be limited :
-
myLayer.transform = projectionTransform
onlymyLayer
will have perspective, not itssublayers
-
myLayer.sublayerTransform = projectionTransform
onlymyLayer
'ssublayers
will have perspective, notmyLayer
nor itssublayers
'ssublayers
If you want a CALayer
to have perspective and one of its sublayers
to also have perspective, make sure they both have a perspective transform applied.
CALayer
s as if they were living in a 3D world, but Core Animation is not a mini OpenGL to handle textured rectangles. I wish it were, though.