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: 3D Cone Orientation

  1. #1
    Newbie Newbie
    Join Date
    Dec 2017
    Posts
    1

    3D Cone Orientation

    Trying to represent a database using different shapes, cubes and spheres are easy enough but all of the cones I have generated are at a 90 degree angel, all on their side. I have messed around with the variables but nothing has changed and I can't seem to find how to fix this problem anywhere.
    The following line of code is the only line to do with the creation of the cones.

    glutSolidCone(12.0, 20.0, 10, 10); //(base, height, GLint Slices, GLint stacks)

    Any help would be appreciated, thanks

  2. #2
    Junior Member Newbie
    Join Date
    Dec 2017
    Posts
    18
    GlutSolidCone I believe is drawn at a 90 degree angle. Changing th variables will do nothing to the rotation. You must rotate the object before drawing.

Posting Permissions

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