• 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
Re: CALayer z-axis scale
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: CALayer z-axis scale


  • Subject: Re: CALayer z-axis scale
  • From: douglas welton <email@hidden>
  • Date: Wed, 14 Oct 2009 15:11:05 -0400

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 (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


References: 
 >CALayer z-axis scale (From: ChrisOutwin <email@hidden>)

  • Prev by Date: Re: Default Core Data errors
  • Next by Date: re: Default Core Data errors
  • Previous by thread: CALayer z-axis scale
  • Next by thread: Intercept tap on URL in UITextView
  • Index(es):
    • Date
    • Thread