Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 4 of 4

Thread: Drawing a cylinder in opengl

  1. #1
    Guest

    Drawing a cylinder in opengl

    How can i draw a simple cylinder using opengl, with the 3D corodinates of the two ends given?

  2. #2
    Intern Contributor
    Join Date
    Feb 2000
    Location
    Bremen, Bremen, Germany
    Posts
    58

    Re: Drawing a cylinder in opengl

    that's pretty easy math. You could do it yourself, with little knowledge about trigonometry, or you could use gluCylinder(), which is pretty easy. Even with that you still have to do some math, cause you can't just pass a start and a end coordinate....

  3. #3
    Guest

    Re: Drawing a cylinder in opengl

    is there a way i can make the ends of two cylinders join together?


    Originally posted by tcs:
    that's pretty easy math. You could do it yourself, with little knowledge about trigonometry, or you could use gluCylinder(), which is pretty easy. Even with that you still have to do some math, cause you can't just pass a start and a end coordinate....

  4. #4
    Senior Member OpenGL Pro
    Join Date
    Feb 2000
    Location
    France
    Posts
    1,118

    Re: Drawing a cylinder in opengl

    I am sorry but it seems to me that, if you join two ends of a cylinder, it is not a cylinder !

    Are you looking for some kind of torus ?

    Eric

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •