Re: Any Good Core Animation Tutorials?
Re: Any Good Core Animation Tutorials?
- Subject: Re: Any Good Core Animation Tutorials?
- From: Jean-Daniel Dupas <email@hidden>
- Date: Tue, 16 Jun 2009 17:59:55 +0200
Le 16 juin 09 à 17:49, Chunk 1978 a écrit :
humm... ok, so CA is 3D, which means X (length), Y (height) and Z
(depth, or width), while CG is 2D so it only uses X and Y...
so if i want to only have one layer on the screen at one time, is
there still an advantage to using Z for enlargements in the 3D space
over simply scaling the image object in 2D?
also, can you explain 3x3 and 4x4?
http://en.wikipedia.org/wiki/Transformation_matrix#Affine_transformations
On Tue, Jun 16, 2009 at 11:34 AM, Graham Cox<email@hidden>
wrote:
On 17/06/2009, at 1:27 AM, Chunk 1978 wrote:
so is CGAffineTransform considered Cocoa Animation, while
CATransform3D is Core Animation? but they essentially do the same
thing? just trying to get things straight.
Not sure what you mean by Cocoa Animation.
CGAffineTransform is a Core GRAPHICS structure, as its 'CG' prefix
suggests.
That is a strictly 2D technology, so the matrix used is 3x3.
CATransform3D
is used by Core Animation (CALayer, etc) which is a 3D technology,
so the
matrix it uses is 4x4.
So they are not the same thing, though they perform the equivalent
task of
transforming co-ordinates, the first in 2 dimensions, the second in
3. In
Core Animation, you use a CATransform3D to perform translation,
scaling and
rotation of objects in 3 dimensions.
--Graham
_______________________________________________
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