#20 2.0.0 Sphere face winding, glEnable(GL_CULL_FACE)

closed-fixed
nobody
moderate (59)
5
2003-12-03
2003-09-30
No

It appears that the vertex winding for glutSolidSphere
is opposite to the convention used by GLUT, and
inconsistant with other shapes in FreeGLUT such as boxes.
This is especially problematic with back-face culling
enabled.

To correct this problem in glutWireSphere()
and glutSolidSphere(), flip the sign on "delta phi"
as follows:

dphi = -2 * M_PI / slices;

rather than:

dphi = 2 * M_PI / slices;

Discussion

  • Richard Rauch

    Richard Rauch - 2003-11-01

    Logged In: YES
    user_id=854844

    Is this not now fixed?

    If so, can someone please close the bug report?

     
  • Nigel Stewart

    Nigel Stewart - 2003-11-05

    Logged In: YES
    user_id=338692

    No, I do not believe this is fixed in CVS yet.

    I have severely branched on freeglut_geometry,
    could like to tidy, test and submit within a 7 day
    timeframe.

     
  • Richard Rauch

    Richard Rauch - 2003-11-14

    Logged In: YES
    user_id=854844

    Err. 7 days?

    Unless you mailed this to someone else to commit, the
    timeframe has slipped. (^&

    Don't feel that I'm rushing you (I'm not; if you feel that
    you need to work on it more, by all means do so) but: How is
    it coming?

     
  • Nigel Stewart

    Nigel Stewart - 2003-11-16

    Logged In: YES
    user_id=338692

    Yes, I'm slipping. I have farily heavily reworked
    freeglut_geometry and would like to have another
    pass at it before asking for it to be CVS merged.
    The major unresolved issue in my workspace is
    that the torus shape is still inverted (w.r.t backface
    culling) and I havn't resolved whether to hack the
    current implementation or bring it in line with the
    reworked sphere, cone and cylinder...

    Nigel

     
  • Nigel Stewart

    Nigel Stewart - 2003-12-03

    Logged In: YES
    user_id=338692

    Resolved in the recent CVS updates and (upcoming) 2.0.2

     
  • Nigel Stewart

    Nigel Stewart - 2003-12-03
    • status: open --> open-fixed
     
  • Nigel Stewart

    Nigel Stewart - 2003-12-03
    • status: open-fixed --> closed-fixed
     

Log in to post a comment.