“Halo” around strokes on the detail layer

Forum Archive “Halo” around strokes on the detail layer

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #17519
    Matt Bob
    Participant

      When adding the detail layer, in Blender 4.0.2 I found I’d get a white halo around my strokes, as below.

      Update:

      The solution is simple- just make sure the image color is BLACK when you create it, not the default white as in the video.

      Straight alpha is okay, leave it alone!

      Old Message:

      Blender has added a new option that tells blender how to interpret “Alpha”.

      You will need to ensure that it is set to Premultiplied before you start painting:

      #84202
      Omar Domenech
      Participant

        So the texture painting workflow has changed for 4.0? You have to manually set the alpha now? That sounds weird.

        #84203
        Matt Bob
        Participant

          When I created the texture, the alpha was set as “Straight”, so it seems to be a weird default?

          Premultiplied alpha is pretty normal for realtime Vulkan/OpenGL stuff, but it loses some information over non-premultiplied, so while Blender could want to preserve the RGB channel rather than blackening it for alpha = 0, it apparently didn’t account for that when it fired it at the screen.

          #84204
          Dwayne Savage
          Participant

            The option use to be in the n-panel of image editor if I remember correctly. 4.0 just makes it easier to access. 

            #84205
            Omar Domenech
            Participant

              No, straight is good, though it depends on each situation. Can we some screenshots? Node tree, render, viewport, etc.

              #84206
              Matt Bob
              Participant

                I think Straight may work, but the image must be black, not white when creating it (which makes sense actually):

                Creating from the texture paint view in Material mode, adding a base color

                #84207
                Matt Bob
                Participant

                  Image layer + final composited layer in shaded view:

                  4-02-09 19-50-55.png

                  Note: if I set the color to _black_ when I create the image, things work out okay- so now I’m thinking that it’s the base color of the texture being white that is causing the issue. i.e. you are right, Straight is the correct mode after all, but if you follow the steps exactly as in the video and the base color is white you will get ghosted strokes.

                  #84208
                  Matt Bob
                  Participant

                    A final silly demonstration:
                    4-02-09 20-23-22.png4-02-09 20-22-50.png

                    versus:

                    4-02-09 20-23-52.png4-02-09 20-19-41.png

                    Notice there is no black halo and everything works properly.

                    #84209
                    Omar Domenech
                    Participant

                      There is this very old but very great CG Cookie video of Bartek talking all the technical details of the alpha channel. The knowledge still holds up, totally check it out:

                      https://www.youtube.com/watch?v=8Pn6C4ZDjd8

                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • The topic ‘“Halo” around strokes on the detail layer’ is closed to new replies.