Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: gluSphere

  1. #1
    Intern Newbie
    Join Date
    Oct 2003
    Posts
    39

    gluSphere

    I didn't able to get the filled sphere on the window through the following code:
    If I replace GLU_FILL with GLU_LINE it gives the outlined sphere.

    //{{
    GLUquadricObj *pobjQuad = gluNewQuadric();
    glEnable(GL_LINE_SMOOTH);
    gluQuadricNormals(pobjQuad, GLU_SMOOTH);
    gluQuadricDrawStyle(pobjQuad, GLU_FILL);
    gluSphere(pobjQuad, 300.0f, 30, 30);
    //}}

  2. #2
    Senior Member OpenGL Pro
    Join Date
    Feb 2000
    Location
    France
    Posts
    1,118

    Re: gluSphere

    It would be more appropriate to post this question in the Beginners section.

    Regarding your problem, have you checked the orientation of the generated triangles in GLU_FILL mode (gluQuadricOrientation) to make sure that they're not culled? Do you have any texture unit activated while drawing?

    Regards,

    Eric

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •