cylinder-view problems, help needed URGENT

I created a cylinder using gluCylinder. I got the output but there are 2 problems

1.The cylinder looks like a pipe(i’m facing the circular side).
2. I couldn’t see the depth or how long the cylinder is inspite of changing the viewpoint.
thanks in advance

Are you using glortho view?
Try changing view modes to gluPerspective.

Originally posted by SGB:
[b]I created a cylinder using gluCylinder. I got the output but there are 2 problems

1.The cylinder looks like a pipe(i’m facing the circular side).
2. I couldn’t see the depth or how long the cylinder is inspite of changing the viewpoint.
thanks in advance[/b]

[QUOTE]Originally posted by nexusone:
[b]Are you using glortho view?
Try changing view modes to gluPerspective.

I’m using gluPerspective(80,WIDTH/HEIGHT,1,50)

not using glortho

ps i’m online)

Hi, I have created a cylinder using gluCylinder by following NeHe’s tutorial, Lesson number 18, which is on Quadratics.

The web page is: http://nehe.gamedev.net/opengl4.asp

I used this excellant tutorial and had no problems. hope this helps…

I’m guessing you don’t have lighting enabled.

Yes, enable lighting, and put some lights down the cylinder.
(For others: I have his source code.)

You need the perspective to see the depth, and you need the lighting to shade the depth.

[This message has been edited by DFrey (edited 03-27-2002).]