0
$\begingroup$

Can anyone tell me how to render an image (tiff) with two different layers, one for background (need it white) and one for the rest of the render (just freestyle lines). I am using Blender 2.8

Thanks, Bhupen

$\endgroup$
2

2 Answers 2

1
$\begingroup$

As far as my understanding goes, Blender isn't capable of creating multilayered TIFFs.
However, you could use other software to acchieve that.

1. Change the file format for the output

In Output Properties you would specify the file format "TIFF".
Any file format that supports transparency (and can be converted by ImageMagick) should be fine.

Shows the "TIFF" file type option in "output properties"

2. Assign Freestyle its own render pass

Since Blender 2.83 there is an option to set Freestyle as a render pass in View Layer Properties.

Shows the relevant "As Render Pass" option in "view layer properties"

In the compositor, Freestyle can then be processed separately.

Connect the freestyle render pass with the composite node.

In case you have multiple layers that you like to export in a single run, you could use File Output Nodes.

For the default cube, the rendered image would look something like this.

Shows freestyle lines with a transparent background

3. Use other software to create a layered TIFF

Any software that is capable of creating multilayered TIFFs will work.

For ImageMagick this command should work. (As ImageMagick doesn't have a graphical user interface, this is executed from the command line.)

convert canvas:white -resize 1920x1080! blender_render.tif -compose over multilayered_result.tif
  • The resolution should match the resolution of your render.
  • Without the trailing exclamation mark, the background would keep its ratio (a square).
$\endgroup$
1
  • $\begingroup$ I misunderstood the original question and therefore changed the answer so that it better fits it. $\endgroup$
    – AFoeee
    Commented Nov 22, 2020 at 15:27
0
$\begingroup$

You want to separate what you want into different collections. Then above collections there are view layers. Make view layers for what you want separated. Go to the collections and right click to exclude from each view layer. Now go to the compositing tab to work with nodes. Add Render Layer nodes for each view layer and select the view layer in the box at the bottom of the Render Layer node. It's also a good idea to make the view layers transparent. To do this go to Properties>Render>Film and tick the Transparency check box.

$\endgroup$

You must log in to answer this question.

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