🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

How can I make a nice sphere with out a thousand lines of code?

Started by
1 comment, last by ajm113 17 years, 2 months ago
Ok, for my first OpenGL project I want to make a outer space scene and I want to add in a sphere. I tried some other codes but they don't work that well can someone help me out?
Check out my open source code projects/libraries! My Homepage You may learn something.
Advertisement
Try this:

#include <GL/glu.h>GLUquadricObj *q         //Initializationq = gluNewQuadric();//RenderinggluSphere(q, radius, slices, stacks); //Radius is a float, slices and stacks are integers//DeinitializationgluDeleteQuadric(q);
Member of the NeHe team.
Sorry for the late reply, but thanks! I can't wait to mess around with it!
Check out my open source code projects/libraries! My Homepage You may learn something.

This topic is closed to new replies.

Advertisement