SSAO sample

Mar 26, 2012 at 1:01 PM

Hi guys,

would it be possible to update the SSAO sample to be dynamically resizable (so the resolution would change according to a window size)? I'm a bit confused about the current behaviour and all the hardcoded values.


- Tomas 

Mar 26, 2012 at 10:18 PM

Hi Tomas,

Yes, I can do this.  There are two parts to the update needed - first that the actual resources themselves get updated to the corresponding size of the window, and second is the modification of the size of the dispatch call used to process the ambient occlusion buffer.

These two tasks have been solved elsewhere in the samples, but haven't made it into the SSAO sample yet.  If you need to see how to do it quickly, you can check out the ImageProcessor sample as it does largely the same things in a slightly different context.

I will add an issue for this - thanks for pointing it out!

- Jason

Apr 6, 2012 at 1:43 AM

Hi Tomas,

This change is in the most recent commit - take a look and let me know what you think and how it works!

Apr 11, 2012 at 1:06 PM

Thanks Jason, it works really nice.