1
$\begingroup$

im working on a black and white shading style. Using grease pencil i've managed to create pretty convincing outlines on my main scene. Im using 2 colors only black / white

What id like to do is to have a standard black outline BUT in darker scenes, almost everything gets Black so id like the line art to switch automatically to white.

What i've tried so far :

  • creating a new material but i can't edit the stroke color in the shader graph :(
  • having 2 line arts on top of each other with the white larger than the black under. does not look good unfortunatly.

here's a picture of a simple recreation i'd like the right part of the lineart to become white.

thank you for any suggestions !

enter image description here

$\endgroup$
1
  • $\begingroup$ If you upload a blend file with your question using blend-exchange.com it will help all of us with your problem. We may figure out if your problem is really what you think it is or if it is something else but more importantly, we don't have to reconstruct your entire set up. $\endgroup$
    – Obfuscate
    Commented Jan 27 at 1:33

1 Answer 1

1
$\begingroup$

To begin, I have to let you know that Shader Materials are different from grease pencil materials. Not only are they both incompatible to each other but, shader nodes can't be used to influence grease pencil materials.

Now for your solution, your problem can easily be resolved with the Masking feature of grease pencil layers.

Personally, I would build the cover background as an independent grease pencil object. I would then construct it with a fill material and move it behind your mesh object.

enter image description here

The only important aspect is to make sure the Stroke Depth Order is set to 3D Location for this cover background object so that the mesh object and its material will render in front of it. Don't forget to enable Z-pass in View Layers of the Properties tab or else, no grease pencil will remain behind a mesh.

enter image description here

For the separate grease pencil object that has the line art modifier attached, I created a similar fill material like the cover background but with the intended color (white) that you want to use to change your line art.

enter image description here

In this new grease pencil object, I created the mask layer by duplicating the cover background and joining (Object $\rightarrow$ Join) it into the new grease pencil object. This mask layer is assigned the new material (white) that I just made. I made sure this mask layer was placed over the line art and parented to the old grease pencil object that contained the cover background.

enter image description here

Assuming that there exists a shader material for the object that would render with the grease pencil objects, I added one as well. Upon using transformations on the cover background, your desired effect is created.

enter image description here


Blender 4.0.2

$\endgroup$

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .