Hi Shadow,
Quote from: shadow92 on June 14, 2014, 11:50:40 AM
What I want to do is separate a castle, terrain and trees from the sky[/b], because Iwant to play with the sky little bit in after effects so I need to render a mask that will define its borders. I know there are some options to render elements but I cant figure out how to set it up for this one.
Instead of creating masks for objects terrain etc. which allow you to play with the atmosphere in post, it would be much easier to just generate a mask for the sky itself.
Fortunately the render elements allow you to do this and also fortunately it always works the same
How it works is a bit funny/weird, because you have to set it up in 2 places and you need to treat the thing like if it is you're rendering a sequence of frames.
I hope some day a single menu/tab will be created which allow you to set up render elements more straightforward and easily, especially for stills instead of animation.
Anyway, here's how:
1) In the "Sequence/Output" tab of the renderer enable "extra output images".
2) Specify the folder to save the render elements in and usually I don't change the filename convention TG is suggesting, but I do change the extension from .bmp to .exr.
(I'm not entirely sure if render elements are automatically being written as .exr, so just to be sure I always change the extension therefore)
3) In the "Layers" tab of the renderer click on the green plus symbol and create a new render layer.
You should now have a new render layer called "Render Layer 01". It is automatically assigned to the renderer, otherwise you wouldn't see it show up.
4) Click again on the green plus symbol and select "Go to "Render Layer 01"".
5) Skip the first 3 tabs, for your purpose of generating an atmosphere mask it is set up correctly, so go to "Render Elements"
6) Enable export of "Atmosphere Alpha".
7) Optionally you can also export the Surface Alpha as an inverted mask.
Render your image, but do NOT use the "Render image" button!
9) Render your image using the "Render sequence" button in the "Sequence/Output" tab where you started at step 1.
Also, set "sequence first/last" both to 1, otherwise your image will be rendered 100 times
Yes the latter is the awkward way of doing this I mentioned before...but it works.
Advanced suggestions/ideas:
Also export:
RGB
cloud indirect
cloud direct
atmosphere indirect
atmosphere direct
surface indirect specular
surface direct specular
surface indirect diffuse
surface direct diffuse
In Photoshop stack the render elements in the order I mentioned right above here and set all the layers, including the base layer(!) to "Linear Dodge(Add)".
Set "RGB" to normal though and make it invisible.
With all the layers set to additive mode they should effectively reproduce the "beauty pass" = "RGB".
So you can check this by activating the RGB layer in your Photoshop document and compare visually.
Now you have full control over how strong your shadows will be for example.
Say you would like a bit more detail in shadow, then simply duplicate the "Surface Indirect Diffuse" layer and you have twice as much going on in the shadows.
As a consequence, you can now also tinker with the clouds seperately, without affecting the colour of the sky!
Good luck and enjoy!
Cheers,
Martin