iphone-3d-programming icon indicating copy to clipboard operation
iphone-3d-programming copied to clipboard

sample code from my O'Reilly book

iPhone 3D Samples

Revised May 2010

Get the source code to an individual sample by clicking its screenshot below.

Chapter 1: Quick Start Guide

  • HelloArrow

Chapter 2: Math and Metaphors

  • HelloCone

Chapter 3: Vertices and Touch Points

  • TouchCone
  • SimpleWireframe

Chapter 4: Adding Depth and Realism

  • VertexLighting
  • PixelLighting
  • ToonLighting
  • FancyWireframe
  • ObjViewer

Chapter 5: Textures and Image Capture

  • Textured
  • TextureFilters
  • TextureFormats
  • CameraTexture

Chapter 6: Blending and Augmented Reality

  • TextureAlpha
  • Stencil
  • FakeStencil
  • Antialiasing
  • Jitter
  • AaLines
  • Clouds
  • Camera

Chapter 7: Sprites and Text

  • Fps
  • Haiku
  • DistanceField
  • SpriteSheet
  • SpringyStars

Chapter 8: Advanced Lighting and Texturing

  • Bumpy
  • Cubemap
  • CrudeBloom
  • GaussianBloom

Chapter 9: Optimizing

  • VertexSkinning

HelloArrow

HelloArrow

HelloCone

HelloCone

TouchCone

TouchCone

SimpleWireframe

ModelViewerSimpleWireframe

VertexLighting

ModelViewerVertexLighting

PixelLighting

ModelViewerPixelLighting

ToonLighting

ModelViewerToonLighting

FancyWireframe

ModelViewerFancyWireframe

ObjViewer

ModelViewerObjViewer

Textured

ModelViewerTextured

TextureFilters

TextureFilters

TextureFormats

TextureFormats

CameraTexture

CameraTexture

TextureAlpha

TextureAlpha

Stencil

TrefoilStencil

FakeStencil

TrefoilFakeStencil

Antialiasing

TrefoilAntialiasing

Jitter

TrefoilJitter

AaLines

AaLines

Clouds

HolodeckClouds

Camera

HolodeckCamera

Fps

KleinFps

Haiku

Haiku

DistanceField

DistanceField

SpriteSheet

SpriteSheet

SpringyStars

SpringyStars

Bumpy

KleinBumpy

Cubemap

KleinCubemap

CrudeBloom

CrudeBloom

GaussianBloom

GaussianBloom

VertexSkinning

VertexSkinning