Sphere won't GL_SMOOTH shade?

Started by
1 comment, last by Ranger_One 21 years, 11 months ago
I have created a primitive sphere (triangle facets) and then generated vertex normals for the triangles. Lighting works perfect- but for some reason it won''t smooth shade! Could it be a winding problem or inverted normals? any ideas? Ranger
Advertisement
is glShadeModel(GL_SMOOTH);?

ensure vertex normals are created and set for each vertex.

To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.
To the vast majority of mankind, nothing is more agreeable than to escape the need for mental exertion... To most people, nothing is more troublesome than the effort of thinking.

*whew*

after some furious coding- I solved the problem. I was generating smooth vertex normals. The problem is, there were no shared vertices in the model since the triangle facets vertex data were all individual in the array.

So I added a WeldVertices() step before the GenerateNormals() and that did the trick =)


btw- welding vertices and having to update face information is a real b*****.

Ranger

This topic is closed to new replies.

Advertisement