What I want to do is draw a sphere using only GL_POINTS. Don't ask me why...just want to.

What I have so far is a function that will draw a circle with GL_POINTS flat on the x and z axis that looks like this:

DrawCircle(GLfloat y,GLfloat radius);

This function will draw the circle with the given radius and at the y coordinate(repeat:flat on the x and z axis).

What I'm having trouble with is using this function to draw a sphere. I know what y coordinates to use; just from a starting point to the displacement (Maximum radius) BUT I'm having trouble changing the radius to make it look like a sphere.

I know I either have to use the sine function to fluctuate the radius but I keep getting screwed up stuff.

PLEASE HELP!

[This message has been edited by aphiox (edited 01-25-2002).]