2008 04 01Core Animation Starfield
It looks better when moving ! :)
After learning that core animation doesn't like a root layer with a perspective transform, this sample sets up the perspective transform on a container layer, and stores the
CATextLayer layers there. Works pretty well this time !
preferredFrameSize to set the
CATextLayer bounds, animates
CAKeyframeAnimation to get a smooth transition from invisible, visible, invisible.
As we're going 3d, we don't work with (x,y) beetween ([0…frame width], [0 … frame height]) but with centered coordinates : [-width…width, -height…height]. This means our container layer needs to be centered in the view, or the 3d objects will appear to spring from the bottom left corner.
- hit testing a layer doesn't work reliably.
- the main layer is manually centered. Couldn't wrap my head around constraints.
- how do you use Cocoa controls on a HUD window ? They don't look that good …
- CocoaNav a Cocoa Class Browser using Core Animation
- Core Animation Starfield Core Animation sample using 3D layers
- Core Animation culling problems Don't setup a projection transform on the root layer !
- Threaded Core Animation while on the main thread, update your display with
- Core Animation Bindings binding Cocoa objects to
Core Animation Bindings.zip
- Core Animation Phantom Fade seeing ghosting ? Use two transaction to create and animate your objects
- Photoshop-like compositing with Core Animation