Page 1 of 1

Environment Probes

Posted: Sun Mar 20, 2016 8:00 pm
by andrewmac
There is still a number of problems to fix but I really want to show some of this off so I'm going to show it in-progress. We now have environment probes in addition the skylight. They can be optionally box projected which can give inexpensive reflections to scenes that fit it well. With box projected enabled you fit a volume to the room and the reflections are corrected for it. If the box doesn't fit the scene you can fall back on normal projection which makes the reflections inaccurate but still gives a nice look in a lot of scenes. Screen space reflections will be the last piece of the puzzle. Where SSR doesn't cover, environment probes will make up. Where environment probes don't cover the sky light will fill in for.

Note: these are not real time and I don't intend them to be. Processing the captured cubemaps to create proper irradiance/radiance cubemaps for PBR is not fast enough to do in real time. They are captured and processed when the engine is ran before the scene starts. They only show static objects.

No Box Projection:
Image

With Box Projection:
Image

Nice shots of red wall impact on rough surface:
Image
Image

There are still issues I'm working through on the probes so don't judge the lighting too hard at the moment.

Re: Environment Probes

Posted: Sun Mar 20, 2016 8:48 pm
by andrewmac
Bonus shot, no skybox:
Image

Re: Environment Probes

Posted: Sun Mar 20, 2016 9:12 pm
by andrewmac
Emissive green wall:
Image

Re: Environment Probes

Posted: Mon Mar 21, 2016 4:07 am
by Timmy
Looking good, nice work :mrgreen:

Re: Environment Probes

Posted: Tue Mar 22, 2016 1:56 am
by andrewmac
I *think* I've got the math all correct now at least without the SkyLight component. :
Image

SkyLight will take a little maneuvering to get right. Need to make sure I don't light the scene with the sky multiple times across multiple probes. That's what caused some of those first screenshots to get so washed out with light. Conservation of energy my dear watson.

Re: Environment Probes

Posted: Tue Mar 22, 2016 4:02 pm
by Steve_Yorkshire
Shiny
:D