glutSolidSphere holes at top . . .
I am using glutSolidSphere and have lighting enabled. My light is positioned on the negative z-axis, at (0,0,-3). Anyhow, not all of the sphere illuminates properly. The very top (well of the portion facing outward at(0,0,1) is a black circle. I assume this may have to do with the normals that glutSolidSphere uses, but since it makes its own normals I figured there is not much I could do . . . or is that not the problem.
thanks
Maybe you''re mistaking a "black top" for a darker shade of the sphere''s color. Does the sun spot happen to be on the direct opposite side of your light source?
Perhaps the znear in your perspective is too low, and it''s accidentally culling the faces due to an error. Always try to keep znear above one, because even perfectly good code can produce weird artifacts on some coputers.
-~-The Cow of Darkness-~-
-~-The Cow of Darkness-~-
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement