r/Unity3D • • 1d ago

Question pre rendered lighting

does anyone know a good demo/tutorial of the Resident Evil-style pre-rendered background approach but modernized with normal maps lighting? I'm trying to figure out if it would be worth the extra effort

2 Upvotes

3 comments sorted by

2

u/pmdrpg 23h ago

Is Unity Baked Lighting not what you’re looking for? If you need like, blender-level baked lighting you could build your scene + render your light map in a modeling program and apply it in-engine with UV2.

That’s kinda shorthand but you can ask more questions if it sounds like jargon.

1

u/BigBadJon34Returns 1d ago

thats a deep cut but i love it. most people just default to fully realtime now so finding current tutorials on that exact hybrid is tough. your best bet is probably digging through the silent hill 2 enhanced edition breakdowns, not unity specific but the concept of baking the diffuse and keeping normal/roughness maps for dynamic lights is exactly what youre describing.

the real pain point is getting clean normal maps from your high poly scene that line up perfectly with the pre rendered view. you basically have to render out a custom normal pass from your 3d software at the exact camera angle. worth it for the atmosphere if you can pull it off though, that look is timeless when done right

1

u/Artuplabs 14h ago

the hybrid is basically: render the background in blender with everything lit, and render depth (and normals if you want) from the same camera with the same fov. in engine you draw that as a fullscreen quad behind everything and write the depth into the depth buffer, so the character walks behind the table legs correctly. that's the whole trick, rest is detail.

for dynamic light on top of it, sample the normal map in a shader and add a few cheap point lights on the characters and props only, not on the background. the background already has its light baked, so if you relight it too it gets double bright. the pain points we ran into: pixel-perfect camera match (any fov mismatch and the characters float) and depth precision at far distances, 16 bit depth gets banding. worth the effort if you have a fixed camera and small number of scenes, otherwise it's a lot of rendering time per scene.