Can anyone tell me if it's possible to adjust freestyle in the compositor?

I'm using it in my short film and its a drag to actually render the whole thing every time to see the changes I made.



Yes, it's possible. I mostly render my freestyle stuff on a separate Freestyle-Renderlayer and recombine it with the ordinary one in the Compositor. If you just want to rerender your FreeStyle strokes you can just render the Freestyle Renderlayer.

I've only done it in Cycles so far, so the following is only for Cycles.

To separate it:

  1. Activate Freestyle in Render Settings > Freestyle.
  2. Tick "Transparent" in Render Settings > Film to have the background transparent.
  3. Create a new Renderlayer (eg. "FreestyleLayer").
  4. Create the Freestyle settings you want.
  5. Override samples with 1 (for example).
  6. Turn off "Use Environment", "Use Surfaces" and "Use Hair" in the Layer panel. That way basically nothing gets rendered except the Freestyle strokes.

In the ordinary RenderLayer:

  1. Delete the Freestyle LineSet so you don't get any strokes here.
  2. Activate the "Environment" pass, so we can readd the background if we want to (because we just made it transparent above).

enter image description here

So far for separating. We now have a renderlayer that's transparent and only the Freestyle stroke will be visible.

To recombine it, do it like this in the Compositor:

enter image description here

Note that the Environment Pass is also readded here. This can just be left out if one doesn't want it.

Hope this helps.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.