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

Thread: drawing 3D object

  1. #1
    Guest

    drawing 3D object

    what is the best way to draw 3D objects like
    cylinder or pyramid
    and how can i do so ?

  2. #2
    Intern Contributor
    Join Date
    Mar 2004
    Posts
    62

    Re: drawing 3D object

    Your question is a bit vague. You mean draw arbitary 3d objects with OpenGL?

    You could define the verticies by hand or formula and feed them to OpenGL using the immediate mode, a displaylist or a VBO. You could also generate the mesh using a 3d editor and write/use a loader that uses one of the above methods to use the object inside OpenGL.

    I recommend VBO's but for a beginner I would recommend a learning curve going from the immediate mode over displaylists to VBO's.

    I propably missed something but I am sure someone else will remind me of that.

  3. #3
    Senior Member OpenGL Guru
    Join Date
    Jun 2000
    Location
    Gastonia, NC, USA
    Posts
    2,096

    Re: drawing 3D object

    Depends on what you are trying to do.

    For simple object, you can use premade ones from the glu and glut library's.

    Originally posted by <uk78>:
    what is the best way to draw 3D objects like
    cylinder or pyramid
    and how can i do so ?

Posting Permissions

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