PDA

View Full Version : Artifacts in gluCylinder ????



Fastian
03-12-2001, 01:43 AM
I am drawing some cylinders using gluCylinder and it is showing strange black artifacts on the cylinder if I rotate the scene. Lighting is enabled. does anybody know what could be the problem.

Relic
03-12-2001, 03:07 AM
Just a stab in the dark:
Try to enable normalization of normals if you scale the cylinders.

Fastian
03-12-2001, 04:01 AM
Tried that.. didnt work, in the end the problem turned out that i had set the znear factor to 0.01 in gluPerspective. changing it to 0.1 removed the artifact. Thanx anyway.

Fredy
03-12-2001, 05:23 AM
Another stab in the dark:
Maybe your far limit in the frustum is too big.