I’m having problems getting my character composited into some grass I’ve made using planes, textures and alpha maps. The grass and the character are on two separate render layers. I thought I could use a Mask Layer to make it look like the character is standing in the grass, but the Mask Layer seems to only recognise geometry instead of the actual alpha maps. That means I get rectangular blocks taken out of the character as opposed to detailed grass silhouettes.
But if I render the grass and the cube on separate render layers, then composite them back together with Alpha Over or Z Combine nodes, I get this result:
The grass doesn’t show up in front of the cube, making the cube look like it’s floating instead of being in the grass.
I thought I could fix this using the grass as a layer mask in the Render Layers, but since the grass is made out of 2D planes with textures on them, the mask doesn’t register the transparency of the texture and instead masks the rectangular outlines of the planes.