Discussion:
how to make solid cylinder in openGL
(too old to reply)
r***@yahoo.com
2005-12-27 13:43:42 UTC
Permalink
Hi Everybody, can you please tell me how to make solid cylinder in
openGl.
If anybody know please tell me how it is possible.
thank you.
fungus
2005-12-27 14:27:51 UTC
Permalink
Post by r***@yahoo.com
Hi Everybody, can you please tell me how to make solid cylinder in
openGl.
If anybody know please tell me how it is possible.
thank you.
Use the gluCylinder() function.
--
<\___/>
/ O O \
\_____/ FTB. For email, remove my socks.

In science it often happens that scientists say, 'You know
that's a really good argument; my position is mistaken,'
and then they actually change their minds and you never
hear that old view from them again. They really do it.
It doesn't happen as often as it should, because scientists
are human and change is sometimes painful. But it happens
every day. I cannot recall the last time something like
that happened in politics or religion.

- Carl Sagan, 1987 CSICOP keynote address
stu@dent
2005-12-27 18:36:59 UTC
Permalink
Post by fungus
Use the gluCylinder() function.
I'm asking this as a true question, nothing more.

Would gluCylinder() be considered a "solid" cylinder?

When I make one it seems I would have to put endcaps on it to make it
appear solid.

The extra calcs every frame to make the endcaps follow around the
cylinder seems... strange. But I guess the endcaps would have to be
added by code somewhere along the line... I guess. Is that right?
Sinisa Kolaric
2005-12-28 00:36:04 UTC
Permalink
Post by ***@dent
Would gluCylinder() be considered a "solid" cylinder?
gluCylinder() "merely" draws a picture depicting a thing that looks like a
solid cylinder.

However if you'd like, for example, to calculate physical parameters for the
solid cylinder (represented by this drawing), you'd have to make those
calculations yourself in C/C++/etc (OpenGL has no features in this respect),
for example by using use a solid-modeling scene graph.

Loading...