• 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: Front and back flip animation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Front and back flip animation


  • Subject: Re: Front and back flip animation
  • From: Jens Alfke <email@hidden>
  • Date: Fri, 15 Feb 2008 08:03:21 -0800


On 15 Feb '08, at 1:52 AM, Geert B. Clemmensen wrote:

The ViewFlip uses CATransform3DMakeRotation, but that isn't ideal as described in the GeekGameBoard example.

From what I now know, I think it's OK to use that function, as long as you only use it to generate the _intermediate_ transformations during the rotation. The bugs it introduced into GeekGameBoard were apparently due to roundoff errors: if you call it with a rotation of π [180°] it doesn't give you an exact flip-about-y-axis matrix, but has some tiny nonzero values left over in other cells. And that leads CA to decide your layer/view still has a 3D transform, which affects the way it does clipping, causing the glitches that I ran into in GGB.


So it should be OK to use CATransform3DMakeRotation to generate the transformations during the flip, but at the end of the flip you should construct your own matrix and use that.

—Jens_______________________________________________

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: 
 >Front and back flip animation (From: "Geert B. Clemmensen" <email@hidden>)

  • Prev by Date: Proper use of #define to aid in compile-time checking of strings (was KVC and KVO for arrays)
  • Next by Date: Re: Stacking views
  • Previous by thread: Front and back flip animation
  • Next by thread: Re: Front and back flip animation
  • Index(es):
    • Date
    • Thread