View Full Version : 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
nexusone
03-27-2002, 04:09 AM
Are you using glortho view?
Try changing view modes to gluPerspective.
Originally posted by SGB:
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
[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 http://www.opengl.org/discussion_boards/ubb/frown.gifi'm online)
Dark_Streak
03-27-2002, 05:40 AM
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...
DFrey
03-27-2002, 07:12 AM
I'm guessing you don't have lighting enabled.
DFrey
03-27-2002, 07:20 AM
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).]
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.