IOS - Sphere Rotation and Touch Response

I was instructed to create a sphere that can be rotated by touching (or animating) along one axis, like an ordinary globe. I would also have to draw animated lines in this area (for example, draw a line between Sydney and New York). Usually I do all animations in 2D, usually using basic animations, since I never had to do anything else. I have the feeling that this problem, however, requires me to switch to OpenGL.

My question is whether this can be achieved with basic animation (time matters), or if I need to quickly learn OpenGL. If so, is this a pretty simple problem to solve? I am a pretty good programmer, but I have no OpenGL experience. Can a capable programmer do this in 2 weeks?

As another question, suppose I use OpenGL if I need to do other things in the project (for example, show different screens or show screens on top of the sphere), can I use UIKit or should the whole project be in OpenGL?

+4
source share
1 answer
  • Core Animation is designed to animate representations and basically a layer of 2D animation - so there is no need for a 3D rotating sphere.
  • Drawing a textured sphere is pretty simple, see this sample
  • Mixing GL and regular UIView is not a problem. You can overlay regular controls on the GL view.
+1
source

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


All Articles