"Halo" around strokes on the detail layer

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:


1 love
Reply
  • Omar Domenech replied
    So the texture painting workflow has changed for 4.0? You have to manually set the alpha now? That sounds weird.
    1 love
  • watmonkey replied

    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.

    1 love
  • Dwayne Savage(dillenbata3) replied

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

    1 love
  • Omar Domenech replied

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

    1 love
  • watmonkey replied

    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





    1 love
  • watmonkey replied

    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.

    1 love
  • watmonkey replied

    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.

    1 love
  • Omar Domenech replied

    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

    1 love