hi to all of u..
i m doing my final project now, and i really REALLY want to know how to draw cone and cylinder using openGL..i hope all of u here can help me...
thanks![]()
hi to all of u..
i m doing my final project now, and i really REALLY want to know how to draw cone and cylinder using openGL..i hope all of u here can help me...
thanks![]()
So do you want to know how to get opengl to work or just the algorithm for cone and cylinder?
gav
yup...i want to know how get opengl to work on those cones and cylinders..
gluCylinder will do the job for you.
i think.Code :GLUquadricObj *quadObj = gluNewQuadric(); gluCylinder(quadObj, base, top, height, slices, stacks);
base=base radius
top=top radius
thanks...but what about the cone?
Uhmm... thought you could figure that out
A cone is a cylinder with top (or bottom if you want the cone "up side down") radius set to zero.
[This message has been edited by Bob (edited 09-27-2000).]
I would like to draw a so-called-cylinder but the base and top are not parallel. Any ideas if there is such a function or do I need to hardcode it. If so, how?
A gluCylinder most certain is! Are you sure you have not just rotated the model with a viewing transform or something?I would like to draw a so-called-cylinder but the base and top are not parallel
Wrote an article describing how to draw a cone without using GLU/GLUT, would be happy to know if there are errors!
http://www.freemancw.com/2012/06/opengl-cone-function/