Get Updates By E-mail 

programming

Tutorial: Texturing 3D Objects In OpenGL ES 2.0

  •  
  •  
  •  
  •  
  •  

OpenGL ES is a topic that I’ve posted about many times on this site, and I’ve been trying to keep a categorized list of OpenGL ES tutorials up to date with every OpenGL ES tutorial I’ve seen.  There have not been too many OpenGL ES 2.0 tutorials to date that go beyond the absolute basics.

Previously I mentioned a good series on OpenGL ES 2.0 that gave a great overview on beginner through advanced topics with some sample code.  I also mentioned a great hands on beginners OpenGL ES 2.0 tutorial from Ray Wenderlich, the creator of the Space Game Starter Kit and co-author of the Learning Cocos2D book,.

Ray has continued on with his tutorial series, and added another tutorial explaining how to texture objects in OpenGL ES 2.0 on iOS devices.  Texturing may sound like something simple, but the process of loading in the textures, and extracting the data from memory makes things somewhat stick on the iPhone and iPad.

You can find the tutorial here:
OpenGL ES 2.0 for iPhone Tutorial Part 2: Textures

Definitely some very handy snippets of code if you ever need to do your own texturing in OpenGL ES 2.0.

Added To The: Categorized OpenGL ES Tutorial Collection


  •  
  •  
  •  
  •  
  •  

Open Source: Real-Time Congress App Phonegap And Native Source Code

  •  
  •  
  •  
  •  
  •  

As you may have noticed I like to keep a list on this site of open source ios apps.

Earlier I received a submission of the url to an open source iPhone app that updates on what is happening at the US congress in real time, and provides access to data about members of the US Congress.

Politics aside, it provides an example of an app that retrieves and organizes data from an online source, and there is also a Phonegap version if you are looking for any html/javascript enthusiasts out there looking for a starting point trying to build with Phonegap.

You can find the source code for the newer native version here:
https://github.com/sunlightlabs/realtimecongress-ios

The source code for the previous Phonegap version can be found here:
https://github.com/sunlightlabs/real_time_congress-iphone_html

You can find the app on iTunes here.

I’ll be adding it to the list of open source apps soon.


  •  
  •  
  •  
  •  
  •  

Best Resources In iOS Development – July 18th 2011

  •  
  •  
  •  
  •  
  •  

Another excellent week to be an iOS developer, and some big news in the department of iOS game development with the release of  Cocos2D V1.0.0 and the opening of the Moai SDK beta to everyone.  Also some great open source libraries and tutorials were shared.

If you have written a tutorial, open source library or tool that you would like to share you can submit the url here.

I’ve been contacted a number of times about advertising on this site so I decided to add support for BuySellAds, and added a section for small button ads.  If interested you can check out the advertising page here.

Here are the resources from the last week in order of popularity:

Open Source: Easy Multistroke and Single Stroke Complex Gesture Recognition On iOS – A couple of great libraries if you are looking to quickly implement complex gesture within your app.

Open Source: iCade Library For Easy Integration In iOS Games – Library that allows you to easily support the iCade classic arcade box/controller for iPad.  Makes a good example if you are trying to support a specific bluetooth interfacing device.

Tutorial: Manipulating Images With Touch Gestures – A tutorial with sample code demonstrating how to add touch features for image manipulation.

Tutorial: iOS Map Kit For Beginners Guide – A getting started tutorial for those beginning with the iOS map kit including a tutorial on displaying data from XML locations on a map without using any libraries outside of those included with  the iOS SDK.

Open Source: Active Record For Core Data Library – A great open source project modeled after Ruby On Rail’s ActiveRecord for more straightforward data retrieval.

News: Cocos2D Game Engine v1.0.0 Released – News about the highly popular Cocos2D game engine finally reaching the v1.0.0 release.

Tutorial: iOS Multithreading With Grand Central Dispatch (GCD) Basics – An excellent step by step guide beginning with the basics on multithreading with iOS ‘s Grand Central Dispatch.

News: Moai SDK Game Development Kit Made Available To All – The lua based open source Moai SDK has now opened the beta for anyone to download and use.

Tutorial: Calculator App Style Glossy Buttons With Core Graphics – An explanation of the technique used to create buttons just like the calculator applications that come with iOS devices.

Tutorial: How To Use The iOS Keychain To Store Names And Passwords – A guide on using the iOS keychain in order to securely store usernames and passwords.

Thanks for reading, please bookmark and share this post!


  •  
  •  
  •  
  •  
  •  

Tutorial: iOS Map Kit For Beginners Guide

  •  
  •  
  •  
  •  
  •  

In the recent past I mentioned a great open source example for beginners interested in using the Map Kit on iOS devices, and utilizing several open source projects.

I’ve come across a couple of excellent beginners tutorial on how to parse an XML feed, and display the contents on the map.  Another giving a good explanation of the Map Kit class and several code snippets for solving common Map Kit problems.   These tutorials take a different approach form the open source example that I mentioned, and no libraries outside of the iOS sdk are used.

The tutorials are from Azam Sharp and can be found  in 2 parts here:

Introduction to MapKit Framework for iPhone Development

Consuming XML Feed and Displaying Public Information on the MapView Control

Great stuff if you are just beginning to use the iOS Map Kit.


  •  
  •  
  •  
  •  
  •  

Open Source: Easily Extensible Objective-C Math Parser Library

  •  
  •  
  •  
  •  
  •  

Math parsing libraries can be extremely useful whenever you want to evaluate a complex mathematical expression.  In Objective-C you can use NSPredicate.  If you want to extend the functionality of NSPredicate however, this can be extremely difficult.

I came across a math parser that provides many advantages over NSPredicate, and other existing math libraries with in my opinion the key feature being the ease at which you can register new functions.

The library is DDMathParser from DaveDeLong.  The Github for the library can be found here:
https://github.com/davedelong

You can also read Dave’s extensive writeup on the library on his website here:
Parsing Mathematical Expressions

There are many other advantages of using Dave’s library over NSPredicate and other existing math parser’s in his writeup.

Looks like the right choice if you need to go beyond the default functionality provided by NSPredicate.


  •  
  •  
  •  
  •  
  •