Hi there!
I've just started learning openGL and have a doubt that is intriguing me (I searched and read but couldn't find an answer).
So, I created a cylinder (out of triangles), uploaded the points to a VBO and it looks fine. The problem is, when I add lighting to the scene, the top circumference looks strange. It looks like this: Cylinder top
I believe I have calculated the vertices and normals correctly, and can't figure out what's wrong. Instead of a 'smooth' surface, I'm getting all those triangular shades. Is there an obvious reason for this to happen?
If useful or necessary, I'll post code. Just wanted to start by knowing if there is a quick answer to the problem
Thanks in advance!




). I was issuing glLightfv(GL_LIGHT0, GL_POSITION, lumPos) and I believe the coordinates in lumPos were messing up the whole lighting. I probably had a wrong concept about GL_POSITION =/ I'm having some trouble understanding it, but after changing lumPos[4] from {1.0,1.0,1.0,0.0} to something like {1.0,100.0,1.0,0.0} it produced
