Home > tutorials > Coming Soon -Another OpenGL Example Ported to iPhone
Coming Soon -Another OpenGL Example Ported to iPhone
Posted on Wednesday, April 8, 2009 by android apps market for tablests
There's a fairly famous OpenGL tutorial that's been done in many places both online and in books, where you make a flag wave in the breeze. I needed something similar to that a project I'm working on, so I thought a good place to start would be by porting this example to the iPhone. I decided to give the project a little bit of a historical twist:

You can click the image above to see a movie. Unfortunately, because the flag is black, all the shadows I worked so hard to get working right are basically lost, so for practical reasons, this may not have been the best image choice, but you can substitute another if you prefer. I like the historical significance, even if it's not particularly practical.
In case you don't know, the flag above was a famous part of the original Macintosh team back in the early eighties. The actual flag was flown for a short time (unsanctioned by Apple) over the building that housed the Macintosh Division. It was also featured in a picture of the Mac team that ran in Fortune magazine in 1984. A movie of the flag was also hidden as an easter egg on the Install CD that came bundled with two different Quadra Mac models. You can read more about the pirate flag here.
I'll be posting the code for this a little later on. Here's one version of the flag tutorial, and here's another. I won't be doing a full tutorial on this, only talking a little about the iPhone-specific aspects and what I had to change to get it running on our favorite mobile platform.
LOL: I just noticed that my texture mapping must have the x-coordinate reversed. The patch is over the wrong eye! I'll fix that before I post the code.
You can click the image above to see a movie. Unfortunately, because the flag is black, all the shadows I worked so hard to get working right are basically lost, so for practical reasons, this may not have been the best image choice, but you can substitute another if you prefer. I like the historical significance, even if it's not particularly practical.
In case you don't know, the flag above was a famous part of the original Macintosh team back in the early eighties. The actual flag was flown for a short time (unsanctioned by Apple) over the building that housed the Macintosh Division. It was also featured in a picture of the Mac team that ran in Fortune magazine in 1984. A movie of the flag was also hidden as an easter egg on the Install CD that came bundled with two different Quadra Mac models. You can read more about the pirate flag here.
I'll be posting the code for this a little later on. Here's one version of the flag tutorial, and here's another. I won't be doing a full tutorial on this, only talking a little about the iPhone-specific aspects and what I had to change to get it running on our favorite mobile platform.
LOL: I just noticed that my texture mapping must have the x-coordinate reversed. The patch is over the wrong eye! I'll fix that before I post the code.
Category Article iPhone SDK, OpenGL ES, tutorials
Powered by Blogger.
Blog Archive
-
▼
2009
(496)
-
▼
April
(52)
- The Iterative Webapp - Gmail for mobile Gets Mute
- The Iterative Webapp - Gmail for mobile Gets Mute
- WWDC Has Sold Out
- Detecting a Circle Gesture
- Webcams USA cities Gadget
- Wikipedia Pictures of the Day Gadget
- Virtual Neighborhood Gadget
- Project Template Bugfix
- OpenGL ES From the Ground Up, Part 3: Viewports in...
- Upcoming Trade Shows Gadget
- Learn Cocoa Update
- My Location now in Google Toolbar
- My Location now in Google Toolbar
- Using Instruments to check iPhone Texture Memory U...
- Google Product Search for Android and iPhone
- Google Product Search for Android and iPhone
- Something to Make Apple Fan-Boys Turn Rhodamine (P...
- Another Fine Quarter
- OpenGL ES From the Ground Up, Part 2: A Look at Si...
- Out of Pocket
- World Sunlight Map
- Six Pack Abs Exercise Gadget
- Another Apple Store Sighting
- Which mobile ads are right for me?
- Which mobile ads are right for me?
- OpenGL ES From the Ground Up, Part 1: Basic Concepts
- MarsEdit
- Daily Bible Art Gadget
- Best Currency Converter Gadget
- Crypto Library
- Burns' Selkirk Gracing Engine Gadget
- Bible Verse of the Day Gadget
- Google Latitude FTW
- Wavin' in the Breeze
- A Different Flag
- Coming Soon -Another OpenGL Example Ported to iPhone
- Clark Cox on VLAs
- WWDC Session Lists are Out
- Handling Big XML Files on iPhone
- Gmail gets a new engine for iPhone and Android-pow...
- Mobile Web Calendar for iPhone and Android, now wi...
- Creating UIImages from TGA Data
- Another Microsoft Ad
- Multi-Row Delete Project in Google Code
- Apple Design Awards
- Anti-Piracy Snippet
- Adding CLANG to Your Build Process
- Zip & Unzip Objective-C Code
- Apple's Xcode Team is Hiring
- Automated Commit and Build Number Incrementing
- Fundamental Misunderstandings
- Happy Birthday, Apple, Inc.
-
▼
April
(52)