Archive for October 19th, 2008

More Core Animation

As a companion to yesterday’s post, here’s another Core Animation + iPhone snippet: 3D Transformations on iPhone with Core Animation!

Apart from getting all my existing CA examples onto the iPhone I’ve also been toying with what the best way to build out the ‘photo city’ demo from WWDC 2008 would be (my next Core Animation screen cast series). The basic idea of the demo was that you had a set of perhaps 30 or 40 images, the images were combined into cubes and the cubes were used to make a ‘city’. After getting a basic cube working I got distracted by some of the stuff I did to make the demo. Namely I finally got around to porting the OpenGL trackball example code to Core Animation.

For those that are not familiar with the trackball example; the idea is that you have a transparent sphere around your scene, you can move the scene around by moving the trackball. As you move your finger to the right it pushed this imaginary sphere around its center to the right (exposing the left side of the scene).

Make sure to follow the “existing” link above for general Core Animation stuff as well as the trackball controller talked about in that article. Nifty stuff, this Core Animation, yes indeedy!

Continue Reading →
0