Question: does your view actually have a "depth" in the z dimension or is it just a plane with x and y measurement and a z (depth) of 0.0. If you scale something with a size of zero, you'll produce no visible results. If you want the position of one layer to change, relative to another, you'll have to change the z coordinate, not scale it.

On Oct 14, 2009, at 1:45 PM, ChrisOutwin wrote:

My Core Animation application correctly scales a CALayer's x and y axes but does nothing to change the layer's visual position relative to sibling layers when the z scaling factor is changed in the UI. The debugger and NSLog both indicate that element m33 of the CATransform3D structure change to reflect the value from the UI. Setting element m34 to 1.0 / -850 to create a perspective transform does nothing.

I've carefully read the Layer Geometry and Transformation section of the Core Animation Programming Guide. The only example I've found (CALayerExample) uses CATransform3DMakeScale, but sets 1.0 as the argument for the z-axis parameter. (When I edited this example code to make all of the arguments the same, the CALayer did not change on the z-axis.)

Is there an example which scales a CALayer on the z-axis? I've worked for two days trying to get this. What am I missing?

Thank you very much.

Chris Outwin

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to