#You'd usually use one light source set
1 messages · Page 1 of 1 (latest)
oh. so the floor will have baked light and the moving object can have realtime shadows?
so i dont have to bake the floor separately and have a 2nd light for shadows?
Yes
Yep. One light source can be bpth static and dynamic
There are multiple methods to mix baked and realtime light in that scenario
https://docs.unity3d.com/Manual/class-LightingSettings.html#MixedLighting
ok so i tried mixed now my objects have shadows that move when the objets move.
how do i assign which objects should cast static shadows and which objects cast dynamic shadows?
is there something that i have to check here?
Contribute GI
In some mixed light modes static objects cast dynamic shadows too
Because they are of higher quality
enabling contribute GI makes it cast shadows but they move when moved. i want them baked to the floor
Subtractive mode seems to be what you want
Subtractive mode relies on "shadow color" property for mixing realtime and baked shadows
subtractive makes both my objects as baked shadows
so basically i have a cube and a sphere where i want the sphere to have dynamic shadow whereas the cube should have its shadow baked to the floor.
in subtractive mode both shadows are baked to the floor
this is in subtact
The cube and the floor should have Contribute GI on, the sphere should have it off
oh thank you good sir that is exactly what i want
so it only works in subtractive mode i see
is subtractive an expensive method?
The cheapest one of the mixed light modes
As I understand it has almost no extra cost compared to just a realtime light, and it can do indirect lighting
Downside is the blending of baked and realtime shadows may be impossible to get totally perfect
Thank you, that makes sense. guess there has to be some kind of tradeoff
can i do multiple bakes with different lights? Currently i am working on a night scene for which i want to light a stadium with some spot lights. so for the area around the field im using a variety of lights. i bake the whole scene with these lights. now the main problem i am facing is I need a real time shadow that moves with the player in the field for which i have a directional light it again lights the scene and makes it brighter. is there any other workaround for this?
As you've described it, it's the problem you originally had solved by mixed lights
Why are they not an option in this case?
Or maybe I misunderstand
Shadows are an absence of a light, a shadow can't necessarily be "dark" if another light is illuminating that shadow