19

Does anyone know a good beginners guide to using OpenGLES on the iPhone? I have found some but they all require assumed knowledge which I don't have.

genpfault
  • 51,148
  • 11
  • 85
  • 139
Jay
  • 19,649
  • 38
  • 121
  • 184

8 Answers8

14

Simon Maurice has some great tutorials on the very first steps. Take a look: http://www.cocoachina.com/wiki/index.php?title=Category%3aSimon_Maurice_iPhone_OpenGL_ES. Do them from the beginning and you'll have a good sense of the basics.

EDIT:
Backup link
Source code

Tuyen Nguyen
  • 4,389
  • 7
  • 51
  • 77
Antti
  • 3,119
  • 3
  • 24
  • 22
  • 1
    This is where I started. It will get you very far. +10 if I could. – rein Oct 08 '09 at 17:48
  • Wow, I thought this question would never be answered. Wonder why that website didn't come up in a google search. – Jay Oct 09 '09 at 10:40
  • Mobile Me won't let me in, I can't access it. I would check the site for what is going on – Jab Jan 06 '10 at 03:11
  • This website no longer exists, hence it is no longer the correct answer. – Jay Jan 06 '10 at 11:59
  • 2
    Can someone edit the above to have the now correct link: http://www.cocoachina.com/wiki/index.php?title=Category%3aSimon_Maurice_iPhone_OpenGL_ES – Jay Aug 16 '10 at 09:49
  • @jacob could you help me to find The source code for Simon Maurice tutorials? – microspino Oct 06 '10 at 22:51
9

You need only one reference:

Yeah, some of the documentation doesn't make a lot of sense the first time you read it, but really, read the sentence/paragraph/page again, and again. It really does make sense, and it's very accurate. Which is something you really can't say from tutorials. Tutorials are almost always written by people that don't seem too fussed about leaving out important details while documentation like that is usually written by very nitpicky people that cram every little important fact into (possibly overly-complex) sentences.

Oh, and one golden tip: Add a search function to your browser that does this:

http://www.google.com/search?q=%s+site%3Awww.khronos.org%2Fopengles%2Fsdk%2F1.1%2Fdocs%2Fman%2F&btnI

(replace %s by whatever your browser's search term replacement string is, the above example is for Opera)

I've bound it to the o prefix, so whenever I need to look something up on OpenGL/ES, I just type o glDrawElements in the address bar and instantly get the documentation page on it.

lhunath
  • 120,288
  • 16
  • 68
  • 77
  • A good resource for OpenGL, no doubt, but "you need only one"?? You really cannot started on **iPhone** dev without serious iPhone-specific help. – LarsH Nov 03 '10 at 22:07
  • @LarsH: The question was specifically about OpenGL/ES. – lhunath Nov 08 '10 at 19:22
  • The question was about OpenGL/ES *on the iPhone*. My point is that there is a lot of iPhone-specific stuff you have to know in order to develop for OpenGL/ES on the iPhone, and that part will not be in the OpenGL/ES SDK docs. By the way nice tip about a search function for the browser. +1 – LarsH Nov 09 '10 at 02:31
4

Once again, if I may plug my own work, I have a short writeup on what I learned while writing Molecules for the iPhone. I came into this having no experience with the 3-D side of OpenGL (I had done a little 2-D hardware acceleration before), so I have a bit of a different perspective on the subject. The source code to Molecules is available, so you might be able to learn something from poking around inside it. I also have written a post on how to use Core Animation structures and functions to accelerate OpenGL ES rendering, if you want something a little more technical.

Bill Dudney has a post here about how he started getting into OpenGL ES, and then a follow-on here where he provides code for a Wavefront OBJ loader for the iPhone.

I believe that I've seen a few more good resources around Stack Overflow in various answers, so you might search around and see what else you can find here.

Brad Larson
  • 170,088
  • 45
  • 397
  • 571
3

Simon Maurice's tutorial can be found here

Ben Dyer
  • 1,536
  • 11
  • 7
3

For OpenGL NeHe is a great tutorial. Though, it doesn't specifically cover OpenGLES, it should still be pretty helpful. Just be prepared to run into things now and again that won't work on the iphone.

Also you can get v1.1 if "The Red Book" online.

Himadri Choudhury
  • 10,217
  • 6
  • 39
  • 47
1

"The Red Book" is not recommended to OpenGL/OpenGLES beginner. It is book for professionals. The first step is should try to run downloaded simple programs or simple codes from OpenGL web sites.

Shiva
  • 596
  • 1
  • 5
  • 12
1

Here's a good (non-Chinese) link to Simon Maurice's tutorials: http://web.me.com/smaurice/iPhone_OpenGL_ES_Blog/iPhone_OpenGL/Archive.html

His tutorials are excellent; they're what I used to learn OpenGL ES.

Luke
  • 5,329
  • 2
  • 29
  • 34
  • Not that I have anything against Chinese, but it was visually distracting having to look at that. Good find. – Keegan Jay Jun 09 '12 at 06:11
0

In addition to "The Red Book", another useful book -with tutorials and reference- is OpenGL SuperBible.

Again not OpenGLES specific, but I believe it is useful to learn OpenGL features in general, then filter out the ones you don't need.

peacewise
  • 117
  • 10