Matt the Coder
Matt the Coder

Reputation: 205

A sphere (the world) in OpenGL ES on Xcode

Is there a way, using only Objective-C, that I can make a 3d sphere and then put texture on it to make it look like the earth. I am completely new to OpenGL ES for iOS so please keep it simple.

Upvotes: 0

Views: 1010

Answers (1)

Sulea Cosmin
Sulea Cosmin

Reputation: 598

There is no way to do this directly, but you can find lots of samples that would require just copy paste to do that.

Take this for textured object: http://www.raywenderlich.com/4404/opengl-es-2-0-for-iphone-tutorial-part-2-textures And this to generate a sphere: http://www.khronos.org/message_boards/showthread.php/4631-How-to-make-textures-mapping-to-sphere

And if you combine those :-) you'll get a textured cube

Upvotes: 1

Related Questions