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

Thread: How to create hammer?? - newbie

  1. #1
    Junior Member Newbie
    Join Date
    Mar 2004
    Location
    Singapore
    Posts
    12

    How to create hammer?? - newbie

    Can someone help? How to create a hammer?

  2. #2
    Member Regular Contributor
    Join Date
    Aug 2003
    Posts
    368

    Re: How to create hammer?? - newbie

    A few ways are possible:
    1. If it's really simple, think out the coordinates of the vertices before hand and use a
    glBegin(GL_ what you want);
    glVertex*();
    glVertex*();
    glVertex*();
    ...
    glEnd();
    You could even aply a texture to it to look better.

    2. Use a tool as 3ds max, maya or others that are there for 3d model creation, then
    2a somehow export their coordinates
    2b use a file loader for the model you created.

    You can use vertex arrays or lists to speed things up a bit as well.

Posting Permissions

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