PDA

View Full Version : gluCylinder and clip planes



umugl
07-24-2008, 03:54 PM
I must be doing something wrong.

I have a plain vanilla ortho view extending from 0.0 to 10.0 on the z axis. Now I render a cylinder using gluCylinder(), say with a height of 15.0 and all is well. It's shown with a height of 10.0, since that is the ortho "depth" along the z axis.

Then I modify the ortho view z axis to extend from 1.0 to 10.0, and again render the same cylinder. Now the cylinder doesn't show at all. I would have expected it to be clipped by 1 unit and have a z extent of 9.0.

Is it mandatory to have {0.0, 0.0, 0.0} within the viewing frustrum to be able to draw glu objects??

Is this a gluCylinder() problem or what am I not considering?

Thanks!

dletozeun
07-25-2008, 12:20 AM
Maybe a piece of code about how you set the view and draw your cylinder would be helpful.