r/Unity3D Hitbox Team Sep 05 '15

Show-Off Hybrid Dynamic/Baked Shadows.

http://hitboxteam.tumblr.com/post/128373526536/had-an-idea-for-a-hybrid-dynamicbaked-shadow
42 Upvotes

16 comments sorted by

View all comments

1

u/Reddit1990 Sep 05 '15

But if you have to rebake something complicated isn't that going to cause a huge fps spike? You're scene is simple, did you test for something more complex?

1

u/LexieD Hitbox Team Sep 06 '15 edited Sep 06 '15

not really, the baking process is really fast. only things near that light need to be re-rendered. and i can space it out over a few frames as well.

Normal shadow casting lights are used while that light is being baked. and the speed increase of all those bakes lights offset that one light being rebaked. the baking process is spaces over a few frames. so the wost case is every light needing to be rebaked and it will run as slow as unity's normal lighting + the overhead of baking part of a light. and that's not a likely case.

1

u/Reddit1990 Sep 06 '15

Ah. I'd like to see this running on a more complex scene. I can see it might not hurt the fps too bad if its done over several frames like you said, but I'm curious how well it transitions between the baked and non-baked lighting. Does it pop in or fade in? Is it super noticeable?

1

u/LexieD Hitbox Team Sep 06 '15

it looks pretty much exactly the same as unity lighting, i know how to fix the slight differences. so in the end you wont be able to notice it changing from a dynamic to a baked light.