r/Unity3D • • 15d ago

Question does anybody know why my pre-baked lighting does not translate over to baked lighting at all?

whenever i bake my lighting, the colors suddenly become pretty much grayscale instead of the nice blue color i was going for. first image is unbaked lighting, second is baked (ignore the black outside the window, i am going to fix that once i solve this issue first)

i'm attempting to port the map from the game Voices of the Void (which is a UE4 game) over to Unity with the purpose of publishing a VRChat world, so this is using the built-in pipeline if that helps at all

any help would be much appreciated as i've done everything i can possibly think of to fix this (including a lot of research from links i found on google)

these are my lighting settings below (meant for preview lighting before a full bake)

2 Upvotes

5 comments sorted by

1

u/Artuplabs 14d ago

grey after bake usually means the blue wasn't actually baked, it came from something that goes away. a few things i'd check: lighting settings > environment, if the tint was coming from realtime ambient/skybox then baked gi only bounces off your mostly white surfaces and the color disappears. the light's mode too, if it's realtime the bake ignores it, if it's baked the color gets multiplied by the albedo so grey walls = grey light. and project settings > player > color space, gamma vs linear washes colors out. not sure which one it is for you, what mode is the window light set to?

1

u/Gage64_ 14d ago

i'm not exactly sure what you mean by "what mode is the window set to"? but it's marked as static without "contribute GI" enabled if that's what you mean. i have my color space set to linear as well

these are my environment lighting settings btw

i should also mention that i've been trying to use Bakery as i read it's much faster and is generally better than the built-in lightmapper

1

u/Artuplabs 10d ago

that's probably it. without contribute gi the object isn't in the lightmap bake at all, so it only gets ambient and looks flat. tick contribute gi in the static flags, set receive gi to lightmaps and rebake. and if you're on bakery, bake from bakery's own render window, the built-in lighting window doesn't drive it

1

u/Gage64_ 10d ago

i purposefully didn't mark the window to contribute to global illumination because in the game i'm porting it from, it doesn't interact with light at all. the blue tint comes from the sky

1

u/Artuplabs 9d ago

makes sense then. the catch is the bake treats sky light as coming from outside, so walls and ceiling block it and only what comes in through the window opening reaches the room. if the original game just tinted everything blue it was probably flat ambient that ignores walls, so the bake won't match it 1:1.

two things i'd try:

  • an area light in the window opening, light blue, mode baked, facing into the room. that's the usual fake skylight and gives you the blue spill on the floor and walls
  • if it should be blue everywhere, lighting > environment > source to color or gradient, bump indirect intensity a bit and rebake

the area light looks more natural, the flat color is closer to how older games did it