• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
CALayer z-axis scale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

CALayer z-axis scale


  • Subject: CALayer z-axis scale
  • From: ChrisOutwin <email@hidden>
  • Date: Wed, 14 Oct 2009 12:45:54 -0500

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 (email@hidden)

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: CALayer z-axis scale
      • From: douglas welton <email@hidden>
  • Prev by Date: Re: Default Core Data errors
  • Next by Date: Re: Default Core Data errors
  • Previous by thread: NSTimeZone questions
  • Next by thread: Re: CALayer z-axis scale
  • Index(es):
    • Date
    • Thread