This is a repost from Maya rendering - but I think the solution might be in comping, thus the repost.
Essentially I'm not sure the best method of rendering/compinig an object that passes in front an object and behind it, or objects that are in front of one part of an object and behind another. See below.
OK, so I'm working on a project in which this particular issue will arise several times, so I want to try to plan ahead the best way to render/composite.
As an example, say I have a deer standing in a field of tall grass (fur). Because of the animation the grass is one fur system on a single plane. Imagine a camera looking at the deer from aabout a 30 degree side angle. For most of the image, the grass is behind the deer object. However, in front of the deer's hooves/legs some of the grass is in front of the deer.
Ideally I would like to render the deer and the grass separately (render layers). However, I can't figure out if I can do this and composite it so that the single fur system is both behind the deer and in front of it in particular regions. I could easily do this if it was a single frame, but I'm not sure how to go about this (if it's even possible) in after effects.
What I initially thought was possible with render layers, but have come to discover probably isn't, is the ability to render out a render layer (say the grass layer) but have the deer's shape mask out the part of the grass that the deer is in front of (without the deer actually being rendered. Does this make sense? Is there a common work around that I am unaware of?
Another example is say I have an object orbiting another. Can I render the objects separately but have the orbiting object be masked from the render layer when it passes behind the other object?
Or do I have to have two instances of the rendering within after effects and have one in front only during the frames that the object is forward and one instance in back during the frames when the orbiter moves behind the object? (I have done this in the movie you will see in my next post) But this solution won't really work for the grass example above.
Thanks in advance for any help or advice.