How I can draw a sphere with opengl es in android?


Last Updated:

  1. hfdjw

    hfdjw Member This Topic's Starter

    Joined:
    Aug 23, 2012
    Messages:
    15
    Likes Received:
    0
    How I can draw a sphere with opengl es in android?
     

    Advertisement
  2. jonbonazza

    jonbonazza Well-Known Member

    Joined:
    Jul 13, 2010
    Messages:
    1,934
    Likes Received:
    458
    Spheres are very complex objects. The two easiest ways I can think to do this are:

    1) Create a sphere using a 3D modeling tool (Blender is a free one) and export it to an .obj file. Then, read the obj file into your application and render it.

    2) look at the glut source code and copy the indicies into your application.
     

Share This Page

Loading...