PDA

View Full Version : Smooth shading



TomPandolfi
02-20-2002, 06:56 PM
When I create a sphere (or any shape) I can see each facet. How do I get the smooth sphere effect. Is it that I am using a single normal for each quad? I tried both smooth and flat shading and I see no difference.

chowe6685
02-20-2002, 07:20 PM
you need to provide a normal for each vertex, average the normals of each face that a vertex is in to find the normal of that vertex

chxfryer
02-21-2002, 07:24 PM
Isnt there a shading method that uses the angles of 2 tris and if its less than a number (so you keep sharp corners) it makes a new normal. or something like that???

dutchstud
02-22-2002, 05:18 PM
if you are doing a sphere, the normal should be the same as the vertex, because all of the points in a sphere are the same distance away from the center. yeah, i didn't explain that well, but it works.