I’m using Unity4 and Beast for lightmapping which worked pretty well so far. But now it gets more sophisticated.
Let’s say its important for the story that the sphere in the middle will be removed in another part of the game so it needs to be an extra object with its own lightmap + extra geometry for the shadows on the ground.
But I need a transparent material for the lightmapped sphere and plane so that the texture of the ground is also visible. Any ideas to do this? I can’t reach the material that includes the lightmap to set it to multiply or something like that.
I had a similar problem recently and solved it by having 2 objects which I switched the visibility on. These objects included a section of the floor that receives the shadow so it could be changed as well. I hid one when rendering the lightmaps and then switched their visibility and rendered the lightmap for just the new object. This way I now have 2 objects, both have lightmapping and I can change the visibility on them to turn on and off a object. This might be slightly harder in your case because you would need to cut up the floor plane which could cause a seam, but doing it this way wouldn’t need a transparent object.