Planetside Software Forums

General => Terragen Discussion => Topic started by: nooby on December 11, 2014, 09:39:06 AM

Title: Shadows render layer
Post by: nooby on December 11, 2014, 09:39:06 AM
Hi, I just started to work with with Terragen 3 (just bought Pro version).
I read wiki page about render layers, but still have no idea how it works - I want to have additional output layer with shadows only (shadows from sky and clouds casting on the ground). Can someone help me to figure it out? Thanks.
Title: Re: Shadows render layer
Post by: Matt on December 11, 2014, 11:59:38 PM
Welcome to the forum!

Shadow passes in the traditional sense aren't supported by render layers or render elements, but we might add this in future. If you just want to colour correct your shadows, I suggest outputting the Surface Direct and Surface Indirect elements. These add together to produce the full colour of the surface, and if you colour correct Surface Indirect you're mostly adjusting the colour of the shadows (although it does change the total colour even where there isn't shadow). This is a more physically correct way of adjusting the lighting, so that's how I prefer to work. But if you really need to control cloud shadows separately from terrain shadows then unfortunately you might need to render two passes, one with cloud shadows and one without. It's possible to use Render Layers to automate the setup of these two passes (I can help you set that up, let me know if you want to do that), but it might be easier to simply disable the clouds manually before rendering the non-shadow pass.

If you need the shadow pass to composite over elements rendered outside of Terragen then of course you really need just a shadow matte. You can probably do this by rendering the terrain with a pure white surface, but be careful with light levels so that you don't clip the whites.

Oh, and there is another option. If you have something like Nuke you can render two passes, one with shadows and one without, and use a Divide operator to extract a shadow pass. The results might be a little noisy if there are difference between the two renders, but it might work.

Matt
Title: Re: Shadows render layer
Post by: nooby on December 12, 2014, 06:07:09 AM
Thank you for exhaustive response. Yes, shadow matte is what I need.