PDA

View Full Version : 3D Cone Orientation



PeteWilson
12-04-2017, 10:56 AM
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

didydriver
12-05-2017, 04:11 PM
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.