Baking lighting onto moving objects?

Is there any way to bake lighting onto an object (or rather, a group of objects) and then have these objects move through my scene, retaining their lightmaps as they were originally calculated?

I’m thinking along the lines of how early 3D engines had moving objects that needed to be have their lighting baked as if they were in some particular location, and no matter where they were in the world, they just kept their original lighting.
I want to do something basically like that: have pre-calculated baked lighting on these objects, and then move them through the world, but they stay lit just the same as they were in their original location.

1 Like

Yeah, just make sure they are “Lightmap static” (or, I think they renamed it to Contribute GI in newer versions) only and no other static flag is checked. Then you can move it normally like any other object…

…EXCEPT…

Unity still doesn’t let you move it in scene view during play mode with the gizmos, that’s the only place where it stops you from doing it, it was changed a couple of years ago, but that’s only because Unity often makes asinine design decisions like this that benefit no one and then refuse to reverse them. (I can only assume out of spite, or boredom, or ignorance)

5 Likes