4
$\begingroup$

I would like to create an object line art greasepencil, but having only the lines visible (not the shaded object)

The solution I found is to disable camera in ray visibility of Cycles

enter image description here

But it only works in rendered view and only Cycles, would there be an easier way to do that in EEVEE?

If I hide the mesh, the lineart just disappear, and if i bake the lineart it won't align to camera angle.

$\endgroup$

4 Answers 4

1
$\begingroup$

I believe that I had unknowingly incorporated the solution you were seeking for into another solution that I had made.

From your words, "only the lines visible (not the shaded object)", "Cycles", and "EEVEE", I am deducing that you want to render line art from the line art modifier without its object for any rendering engine. My solution was to create a general Transparent Material to hide the object for any rendering engine that we may use.

Once you have added a new material to the object, switch to Transparent BSDF. You can do so in the Properties tab or with the node in the Shader Editor.

enter image description here

In the Transparent Material's Settings, switch Blend Mode to anything other than Opaque and Shadow mode to None.

enter image description here

Upon rendering, only the line art should be visible (with your select rendering engine).

enter image description here


Additional Notes:

If you want to render the line art without the background, select Transparent within Render Properties.

enter image description here

If you want the object to not be visible without using Hide, an alternative is to switch the Color's Alpha to 0.000 within Viewport Display of your Transparent Material.

enter image description here

Hope this was helpful.

$\endgroup$
4
$\begingroup$

Activate "Holdout" for the collection of the objects used for the line art. blender holdout blender holdout

$\endgroup$
1
  • $\begingroup$ This answer isn't bad but, we may not want to punch holes into our renders which can result in us having to use the compositor. $\endgroup$
    – Obfuscate
    Commented Jan 29 at 19:09
1
$\begingroup$

Line Art is a GP with special modifier:

enter image description here

In Line Art modifier, you can see a Bake Line Art Button in a baking section. Bake your line art, then you will be able to hide meshes.

$\endgroup$
3
  • $\begingroup$ If I bake my lineart, it won't update depending on the camera, like I asked in the question. $\endgroup$ Commented Jul 19, 2021 at 14:42
  • $\begingroup$ It will. It bakes sequence of frames, not a static. But if you change something, rebake will be required $\endgroup$
    – Crantisz
    Commented Jul 19, 2021 at 14:45
  • $\begingroup$ So there isn't any other option that run the scene in viewport cycle to have only lineart visible without baking ? $\endgroup$ Commented Jul 19, 2021 at 14:54
1
$\begingroup$

A really cheap trick, don't hate me for this. I increased the thickness of the lines and set the exposure and gamma to the full value.

You'll get an outline version of the renderenter image description here

enter image description here

$\endgroup$
1
  • $\begingroup$ Havn't tested it, and yes it's more a hack than an actual option, but could be a potential solution, thanks ! $\endgroup$ Commented Dec 30, 2021 at 22:56

You must log in to answer this question.

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