Re: Front and back flip animation
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