1. Download our Official Android App: Forums for Android!

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

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

  1. hfdjw

    hfdjw Newbie
    Thread Starter
    Rank:
    None
    Points:
    15
    Posts:
    15
    Joined:
    Aug 23, 2012

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

    Advertisement

  2. jonbonazza

    jonbonazza Android Expert
    Rank:
    None
    Points:
    163
    Posts:
    1,930
    Joined:
    Jul 13, 2010

    Jul 13, 2010
    1,930
    457
    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...