No time to explain, as I have to go to bed in a minute, but these are initial experiments based on this article on Screen Space Ambient Occlusion, a technique to simulate self-shadowing on 3D objects. I’ll write more next week.
It needs a lot of tweaking, but I’m quite pleased so far.
More info to follow.
wow, thats gorgeous!! is this realtime? i’ve been meaning to get into realtime ambient occlusion for ages! and this looks sweet!
nice one. can’t wait to see more 🙂
HRM. Interesting hack.
Actually, where are you getting the ZBuffer from? Using a GLSL Shader ?
w.o.w
as always you are coming with very cool new things !
can’t wait to see more !…:)
Hi yanomano!
Cheers! It was surprisingly easy.
Now the challenge is to make it run faster (as usual).
a|x
Hi vade 🙂
To answer your question:
Yes, a very simple one that just maps the distance from 0.0,0.0,0.0 in Eye Space to a greycale (as in the 3rd pic). The plan is then to embed this in the alpha of the texture, and extract it later for processing once the shader has been rendered in a Render In Image. Currently, I’m running two separate shaders, each rendered to an image. One does the shading and the other produces the depthmap. Obviously this is massively inefficient, but I wanted to see if the effect worked before trying to optimise it.
a|x
Cool, thats what I expected. It looks quite nice. I did some quick experimenting based on the link you suggested, bug havent gotten anything working similarly to what you have. Good stuff 🙂 Keep it up