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
    Member 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 Frequent Contributor
    Join Date
    Feb 2000
    Location
    France
    Posts
    880

    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

Similar Threads

  1. help drawing two cylinder
    By p4ever in forum OpenGL: Basic Coding
    Replies: 3
    Last Post: 08-23-2014, 04:12 AM
  2. Drawing a 3d rotating cylinder in opengl using visualstudio 2013
    By Uzairjavaid in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 05-16-2014, 10:23 AM
  3. drawing cone and cylinder
    By in forum OpenGL: Basic Coding
    Replies: 8
    Last Post: 08-16-2012, 11:30 PM
  4. Perl Drawing of Cylinder
    By hidtero in forum OpenGL: Basic Coding
    Replies: 0
    Last Post: 10-05-2009, 12:09 AM
  5. Drawing a cylinder
    By Dracolysk in forum OpenGL: Basic Coding
    Replies: 5
    Last Post: 07-29-2001, 10:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Proudly hosted by Digital Ocean