Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Front and back flip animation




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:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden
References: 
 >Front and back flip animation (From: "Geert B. Clemmensen" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.