How to learn OpenGL by the example of, say, building a spinning globe?

I have two years of programming experience on the iPhone, but completely new to OpenGL. What should I take to build a spinning globe on the iPhone? What I want to archive:

  • 3G globe shown on iPhone
  • basically a 3D ball with a texture map on it
  • When the user drags the screen, the globe rotates

thanks

+4
source share
3 answers

Well, if you are completely new to OpenGl like me, I suggest you follow this link to get you started.

http://iphonedevelopment.blogspot.com/2009/05/opengl-es-from-ground-up-table-of.html

enjoy

Edit:

Try it too

how to replace images in a puzzle

+4
source

I would recommend Brad Larson 's OpenGL (ES) course. Available on iTunes (free):

Advanced iPhone Development class videos that I taught last semester at Madison Area Technical College are now available for free on iTunes U. These videos contain over 35 hours of HD content covering more advanced iPhone development topics such as Core Animation, multithreading, Quartz 2-D drawing and OpenGL ES. The course notes that accompany the class are available for download here in VoodooPad format or for viewing here in HTML. Links to all sample applications used for the class are provided in the notes.

A source

+2
source

Many people would suggest you try the NeHe Tutorials for OpenGL, and although I think they cover several functions of the OpenGL API, I would recommend buying an OpenGL book instead if you are serious about learning it. Of course, learning how to write programs using OpenGL comes with practice, but reading books helps you understand how and why the API is developed, how it happens, and also introduces you to the graphics pipeline, which is crucial for understanding how your function calls are actually processed. . I personally recommended OpenGL Superbible, but I heard that the Red Book is good too. Here is a link to a free HTML file containing an older version of the Red Book.

+1
source

Source: https://habr.com/ru/post/1336254/


All Articles