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 5 of 5

Thread: Sphere

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2001
    Posts
    2

    Sphere

    I would like to know how build 3D solids ( spheres, cones, etc ) using only triangles and and/or rectangles. Anyone can give me some good link or info?
    I know I can use some gl functions to make them but I wanna learn how to make them myself.

  2. #2
    Junior Member Newbie
    Join Date
    Mar 2001
    Posts
    3

    Re: Sphere

    gluQuadratic is probably the easiest way to draw a sphere, but if you want to do it yourself, Ammeraal has some source code to generate data sets for spheres, toruses etc, here

    ftp://ftp.expa.fnt.hvu.nl/pub/ammeraal/English/older/

    Its from his great little book Programming Principles in Computer Graphics, 2nd ed. I think the code from the newer Java edition is also there somewhere.

  3. #3
    Junior Member Newbie
    Join Date
    Mar 2001
    Posts
    2

    Re: Sphere

    Thanks !

  4. #4
    Junior Member Regular Contributor
    Join Date
    Feb 2001
    Posts
    136

    Re: Sphere

    You may wanna check glut source code. It has a lot ofexamples on how to create sphere, toros etc. from triangles or quads.

  5. #5
    Intern Newbie
    Join Date
    May 2001
    Location
    Toronto, ON, Canada
    Posts
    30

    Re: Sphere

    you may wanna check glut source code, it has a lot of examples on drawing spheres and toruses etc. from triangles and quads.

Posting Permissions

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