1. Check out our companion app, Forums for Android! Download from Google Play

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

Discussion in 'Application Development' started by hfdjw, Sep 7, 2012.

  1. hfdjw

    hfdjw Member
    Thread Starter
    15

    Aug 23, 2012
    15
    0
    15
    How I can draw a sphere with opengl es in android?
     

    Advertisement

  2. jonbonazza

    jonbonazza Well-Known Member
    163

    Jul 13, 2010
    1,934
    459
    163
    Male
    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...