Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

screen space ambient occlusion(ssao) #91

Open
lzweopard opened this issue Dec 13, 2012 · 2 comments
Open

screen space ambient occlusion(ssao) #91

lzweopard opened this issue Dec 13, 2012 · 2 comments

Comments

@lzweopard
Copy link

Hi, all

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

thank in advance.

@cjcliffe
Copy link
Owner

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

@lzweopard
Copy link
Author

it is really nice, thanks :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants