How to render Alphas/Masks for objects occluding each other?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hey guys,
i have a scene with objects occluding each other. And i need to render them in separate passes because of render performance issues when trying to render them all at once.
Problem is: Asteroids flying around in this scene (lots of them) are occluding a single asteroid in the middle. So i have asteroids in front of the big one; it always changes from frame to frame. But i need to mask them out, otherwise i cannot comp them over.
Afaik a Matte Material should do; as i thought at least. Tried it out, works so far so good, but: A lot of times the matte Material renders object occlusion where there is none. So it renders a hole into the big asteroid but no small asteroid is actually there in the render of that pass.
How do you render alphas/masks for object behind and in front of each other? Is the Matte really the solution? Or do you need a different workflow for that?
I hope you can help me out with this one.
Many thanks in advance!
subbz2k