CubicVR.js icon indicating copy to clipboard operation
CubicVR.js copied to clipboard

screen space ambient occlusion(ssao)

Open lzweopard opened this issue 13 years ago • 2 comments

Hi, all

anybody knows how I can implement ambient occlusion rendering effect with CubicVR? or any ideas ?

thank in advance.

lzweopard avatar Dec 13 '12 09:12 lzweopard

There's a way to do it using the 'alpha depth' channel (disables transparency support) and an SSAO shader I wrote that uses it; the resolution is low but it does work. I plan to implement the new webgl depth buffer extension which will allow for full floating point precision at which point I'll rewrite the SSAO shader to work with it.

You can find an example of the current SSAO here, it's a Firefox Audio API demo so it requires Firefox:

http://dl.dropbox.com/u/5453194/TheSandboxFX/index.html

And here's a bundle of it; the CubicVR.js is older but the post process chain should still work with the shaders included, and should work with minimal changes when the depth buffer is implemented:

http://dl.dropbox.com/u/5453194/TheSandboxFX.zip

cjcliffe avatar Dec 18 '12 00:12 cjcliffe

it is really nice, thanks :)

lzweopard avatar Dec 18 '12 08:12 lzweopard