This is how I've done it in pyglet:

        sphere = gluNewQuadric()
        gluQuadricTexture(sphere, True)
        gluSphere(sphere, 6.0,15, 15)
        gluDeleteQuadric(sphere)

-b

On Jan 28, 7:09 pm, greenmoss <[email protected]> wrote:
> No, *I'm* not spherical, I want to *make* a sphere.
>
> I've found two hints so far:
>
> http://web.archive.org/web/20050717173726/http://astronomy.swin.edu.a...
> (yep, it expired a long time ago, but the code's on the page)
>
> The problem with this one is that I don't know what PID2 is. Pi and
> some unknown operation? I assume TWOPI is Pi times two. Other than
> that, it *looks* straight forward; the math is all on the page, and I
> can use Python's math libraries to figure that out.
>
> also:
>
> http://www.sulaco.co.za/tut.htm
>
> These are written in Pascal, and I'm having a hard time grasping what
> they do. I tried re-writing the icosahedron code 
> (http://www.sulaco.co.za/drawing_icosahedron_tutorial.htm) in Pyglet, but was
> not able to get beyond the first crop of cryptic error messages.
>
> So, are either of these two a good start for an OpenGL sphere, or
> should I be looking elsewhere?

-- 
You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/pyglet-users?hl=en.

Reply via email to