Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 6434 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Im new to opengl, and I want to make a project that involves spheres but I don''t know how to draw a sphere... I could make it using many triangles but that would take forever... Is there any willing people out there that will help me.. please Many thanks Alan Also people please lay off NeHe he''s been an asset his tutorials are the best on the net and have taught me a great deal about OpenGL in less that a week... I hope all the problems get resolved... what are we programmers or a group of little kids? Thanks IF YA SMELL... WHAT THE BEZZ IS COOKIN''''

Share this post

Link to post
Share on other sites
glut has a function to draw spheres:
void glutSolidSphere(GLdouble radius, GLint slices, GLint stacks);
void glutWireSphere(GLdouble radius, GLint slices, GLint stacks);

Søren Olesen

Share this post

Link to post
Share on other sites
no problem,

look into:

void gluSphere(
GLUquadricObj * qobj,
GLdouble radius,
GLint slices,
GLint stacks

(from the glu library)

I can't remember of the top of my head how to use it, but I've just looked at some Delphi code of mine so here's a (hopefully correct) c++ translation:

gluQuadricObjs Sphere;
gluQuadricDrawStyle(Sphere, GLU_FILL);
gluQuadricNormals(Sphere, GLU_SMOOTH);
gluSphere(Sphere, 5.0, 16, 16);

I hope this helps you out.


/engage pissed off mode

Bezzant - You're damn right about NeHe. Jeff has been working his ass off for the community. Helping others whilst expecting nothing in return. Then along come these dickheads who can do nothing but bitch about him and moan because he hasn't personally handed them the moon on a fucking stick. If these people don't have anything constructive to offer Jeff for his site they should fuck off and stay under their stones.

/me steps down from soap box

Edited by - Poontardis on November 5, 2000 1:20:35 PM

Share this post

Link to post
Share on other sites
A while back there was a post called 'Ball' and that showed every possible way to drw a sphere, that should help a lot here's the url: Ball Post

Open mouth, insert foot

Edited by - oglman on November 5, 2000 12:59:27 PM

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!