Cant get my compositing to layer my objects quite right I got this render where i am attempting to get multiple renderlayers to play nice, im trying to get the water and the ships to appear in front of the stars, but for somereason the star-particles wants to be in front of the objects, i have unsuccessfully tried mask-layers and obj-index, but im quite new to this. if anyone has any tips on how to simply ad my 2 new layers to my compositing tree that be tight :)if images are too dark, or if my question isnt understadable ill be happy to explain more :)
The cause of this issue is the add node just before the final composite node. The node is simply adding the values of the pixels regardless of which is on top. A better way to do it would be to use the Alpha over node, although it's unclear from the images you posted if the render layers with the ships and water have any alpha information. Alternatively, you could set the node to mix instead of add, and then use the object index passes as the factor for the mix node.