Actually regards AO, I mean separating the objects that only cast a shadow but also receive a self shadow or the same shadow from a similar object.
Take the example of a table set for dinner.
You have one steak knife, one butter knife, a fork and a spoon.
Then you have plates and tea cups that sit on saucers. All of these objects sit on the table.
And then say a vase of flowers and some elaborate salt and pepper shakers.
You want this all on one material and UV and one AO map plugged into the AO slot of the game material.
To pull this off you have to create a few setups and do more than one bake that is combined in your photo editing software. Or set it up in one bake.
One bake is just for the table. One is for all the objects that get a self shadow. For example any of the props that have high details. Like the knife with the wooden handle, the vase with some details, salt and pepper shakers and the tea cups with a little shadow inside the small handle.
But the table has objects on it that are now being baked. For example all the plates and silverware as well as those objects with self shadow just mentioned.
All of the objects also get a contact shadow from the table as well. Shadow under the plate and silverware etc.
But only one of each of these objects gets the bake because the UVs are overlapped for the cutlery and the plates etc.
So the table gets the shadow of all the props on it. (Not an animated scene).
One of each prop gets a shadow from the table and itself.
These two bakes are combined in one bake if you do it right. Only one of each overlapping object selected and the table is included.
Or you can just make two bakes and combine them.