Discuss programming topics for any language, any source base. If it is programming related but doesn't fit in one of the below categories, it goes here.
Phun aside sikkpin asked my help getting SSAO to Work, but before i lead him into even darker reaches I suggested id ask here, maybe MH or barnes can give him a hint of what would be needed.
From his post at doom3world.
What are the chances of getting you to help me with a problem that I can't seem to figure out. That problem being generating the ao buffer before the lighting pass. Since I don't know enough do it from scratch (draw a fullscreen quad, bind the shader and such, and then draw and capture), I'm forced to rely on the functionality that's already there (DrawStretchPic(),EmitFullScreen(),RB_STD_DrawShaderPasses(), etc.) but no matter what I do, I just can't get it to work.
I mean, ssao is already in there and fully functional, but since the ao texture is created after the lighting pass during the post process phase but passed to the lighting shaders, it's always a frame behind, which of course doesn't look good. Other than the surface sorting issue, which I can live without, proper ssao is the only thing left rendering-wise that I really need done.
So what do you say? I'll be in your debt and will do anything you need that's in my power to return the favor.
Cheers
Sikk
In return i bet he would probably help with any shader related stuff you might be fighting with
It uses an image to get the depth renderer for the softshadow effect much like the SSAO hack so downsampling will make it look wierd,
was wondering if we couldnt create one at runtime instead of using a hardcoded one hmm ? bit like darkplaces detail maps.
edit: should actually be redone sikk created it while doom3 was not GPL and it probably suffers from a bit of the same issues that SSAO does.