Smooth shading

Forum Archive Smooth shading

Viewing 13 posts - 16 through 28 (of 28 total)
  • Author
    Posts
  • #92329
    Tom Fransson
    Participant

      To Martin, I must draw by hand. So this

      #92330
      Tom Fransson
      Participant

        simplification.jpg

        #92331
        Martin Bergwerf
        Participant

          Yes, exactly!

          Don’t focus too much on the Vertex Normals, just interpolate between the Face Normals and the Vertex Normals ‘follow’ automatically.

          #92332
          Tom Fransson
          Participant

            is a simplified version of yours. Is this the ways the interpolations goes?

            #92333
            Tom Fransson
            Participant

              Okay great! Thanks Martin

              #92334
              Martin Bergwerf
              Participant

                Or in a ‘pretty’ picture, if you have  3 Face Normals (no matter what directions they are pointing), the interpolation looks something like this:

                Normals_05.png

                #92335
                Dwayne Savage
                Participant

                  I’m going to throw my 2 cents in. Blender uses Phong shading not Gouraud shading. Sorry, I don’t know which algorithm of Phong. I think it Blinn-Phong, but I could be wrong.  Why does this matter to your discussion? Phong is calculating a weighted average between all vertices per pixel. This is why you can get strange results from Poles(N, E, 6+) and N-gons. Gouraud is more linear and the tessellation(Making it triangles) is included in the calculation.(Technically not true, but visually it is) You can get similar results in blender by adding a triangulate modifier. What’s my point? That the perceived interpolation changes based on angle of view, and that it’s not as linear as it appears to be.  

                  Note: Poles in quad modeling are any non-terminating vertex that doesn’t have 4 edges connected. Think of a subdivided plane. The outer edges are terminating vertices. Nose poles(AKA N-poles) have 3 edges. Extrude Poles(AKA E-Poles) have 5 edges. 6+ poles…You guessed it have 6 or more edges. 

                  #92336
                  Martin Bergwerf
                  Participant

                    Oh, that’s interesting, Dwayne! I am pretty sure that it’s indeed Blinn-Phong, but I don’t know what that is exactly (I just remember the name).

                    (Maybe not something a modeler needs to know/worry about too much…)

                    #92337
                    Martin Bergwerf
                    Participant

                      Found a nice picture at  https://opengl-notes.readthedocs.io/en/latest/topics/lighting/shading.html 

                      Doesn’t go too deep into the weeds, but makes it more clear, what we are talking about:

                      Phong.png

                      #92338
                      Dwayne Savage
                      Participant

                        Nice image @spikeyxxx. I’ve been looking for a way to better explain it. I only started learning this as I’ve been looking into custom normals for NPR shaders. Although it might be a mute point since Dillon Goo(Creator of the Goo Engine) is now partnering with the dev team to create an NPR workflow/engine in main Blender. They have already created an NPR branch version.

                        #92339
                        Martin Bergwerf
                        Participant

                          Okay Tom @tfsuper3d ,

                          I think we figured it out now; I was wrong the first time, the Smooth Shading interpolates between the Vertex  Normals,not between the Face Normals (I actually knew that, but thought it made no difference). So, to put it all together in one picture; the Vertex per Face Normals (used for Flat Shading) are averaged to make the Vertex Normals and then the Vertex Normals are linearly interpolated, something like this:
                          mooth Shading_01.png

                          #92340
                          Tom Fransson
                          Participant

                            No problem Martin I know you know. You showed me vertex interpolation in another post which I unfortunately deleted for a reason I don’t know. But it’s more than that I assume, as Dwayne was talking about if you look at it at the pixel level, but as you said a modeler doesn’t need to worry about it that much, unless you want to customize the directions with a python script. Then you should know the algorithm, I guess. Thank you both for all your help.

                            #92341
                            Martin Bergwerf
                            Participant

                              Here’s something fun (as you mention customizing the directions), among the many ways to change the direction of Normals, there is this little-known Shortcut:

                              in Edit Mode, R, N allows you to Rotate the Vertex Per Face Normals of your Selection.

                            Viewing 13 posts - 16 through 28 (of 28 total)
                            • The topic ‘Smooth shading’ is closed to new replies.