Skip to content


Subversion checkout URL

You can clone with
Download ZIP
A spinnable textured 3D sphere / globe in OpenGLES 1 for iOS / iPhone / iPad
Objective-C C
Branch: master
Failed to load latest commit information.
Classes Initial push
Planet3D.xcodeproj Initial push
.gitignore Spelling correction
Info.plist Initial push
MainWindow.xib Initial push
Planet3D.entitlements Initial push
Planet3D_Prefix.pch Initial push
earth.png Initial push
main.m Initial push
mars.png Initial push
readme.txt Take 2


This code originally came from Jeff LaMarche's blog post:

I was looking for a textured sphere sample code starting point, and couldn't find anything appropriate or simple for iOS, so I made one!
Added texturing and input (rotate, pinch to zoom, tap to change texture)
I freely admit I know nothing about OpenGL|ES but since I couldn't find something that did this when I started, maybe this will be of use to someone.
I use massive textures (4096x2048) so you might want to reduce those if trying this on an older device
The Earth map was taken from NASA at:
Mars from:
Something went wrong with that request. Please try again.