From: Nigel S. a. F. S. <ni...@ni...> - 2003-10-05 02:05:44
|
> I remember a message about fixing sphere and cone geometries, > and since those are also bugs (in a loose sense--differences from GLUT) I > think that if they are already in CVS we shouldn't take them out. Spheres and cones are broken on 2.0.0 when back-face culling is enabled. There are two main options: 1. Fix the current implementations. Sphere is easily fixed. (See bug 814914) 2. Roll in a large scale revamp. Re-implementation of solid/wire cone. Proposed FreeGLUT extension: cylinder (See file attached to RFE: 814984) If there is general support for (2) it would be straight-forward to add a sphere replacement following the cone and cylinder approach. As for the general sense of all the previous dialog: (a) Minimal dependence on GLU is considered desirable. (b) Advantage of sin/cos tables disputed, but not considered particularly harmful. (c) Some concern expressed about incremental stepping in z and possible loss of precision. There is a particular effort in the revamped cone and cylinder than the vertecies at the top and bottom are _precisely_ located in the correct plane. The precision of intermediate vertecies to form stacks is not considered as important. The use of tables also ensures that the first and last radial position are precisely the same, rather than relying on sin(0) == sin(2*M_PI*i/slices) == 0.000000000000 I would like to add the revamped sphere and have sphere, cone and cylinder land in CVS together. Nigel |