Jump to content
  • Advertisement
Sign in to follow this  
FreneticPonE

Dynamic cubemap relighting (random though)

This topic is 1374 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

This is too long for twitter, and I'm busy pecking away at other things, but.

 

Cheap idea for relighting the increasingly popular cubemap/image based lighting solution. Just store depth/normal/abedo of each cubemap face, and relight N cubemap faces a frame with the primary light/update the skybox. As long as you store the/apply the baked roughness lookups into the mipmaps, and apply such to the final output cubemaps you use for lighting, you get a dynamically re-lightable image based lighting system.

 

True you can't use lightmaps (unless you update those separately, perfectly possible) and can't get those pre-computed multiple bounces, but some price has to be paid for dynamic re-lighting, and since you're just re-shading a few 256x256 targets (and very basic shading at that) it's not going to cost much, and you can use whatever pre-computed ambient occlusion you want. If memory is a concern one could compress the albedo and normals down to two channels apiece, I don't see the quality of such being terribly important before lighting is applied.

 

Just an idea for now, but it seemed promising enough. There's still the other issues of cubemap lighting, parallax projection and light leaking and etc. but that would be solved separately and is needed research anyway.

Share this post


Link to post
Share on other sites
Advertisement

Cheap idea for relighting the increasingly popular cubemap/image based lighting solution. Just store depth/normal/abedo of each cubemap face, and relight N cubemap faces a frame with the primary light/update the skybox. As long as you store the/apply the baked roughness lookups into the mipmaps, and apply such to the final output cubemaps you use for lighting, you get a dynamically re-lightable image based lighting system.

heres an example implementation, coined
Deferred Irradiance Volumes/

Turns out this idea works pretty well :D

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!