Particle Effects on the iPhone
Ben Britten Smith, or Ben Britten, wrote the first chapter in iPhone Advanced Projects. Get the book. Ben’s chapter alone is worth the price.
His sample code is elegant, demonstrating a common design pattern for implementing 2D and 3D games. Ben’s explanation of a particle generator on an iPhone is particularly engaging. Particles are simple sprites with textures pulled from an atlas. A Particle Emitter generates sprites within a defined 3D region, like the back end of a tiny space ship. The Particle System is an embedded OpenGL game loop, animating and destroying sprites with every tic. The demo system uses basic physics (velocity, size), a handful of textures, and OpenGL color transformations. Commercial systems are more complex yet follow this pattern.
Apparently Ben was also using Cheetah 3D, a compact 3D modeling package for the Mac, written by a scientist in Germany. While not Maya or 3DMax or Poser, it has many of the same features for a killer price. You’ll want Rob Bajorek’s model exporter, too.
And the Iron? You’ll have to ask Ben. Its the logo from his site. Maybe it has to do with clean code, ironing out all the kinks.






