|
Re: Crytek's SSAO development thread
[Re: jane]
#340957
09/09/10 00:33
09/09/10 00:33
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
Hi Jane, nice to see someone testing it :-) I take your issues serious, but let me ask some questions because I can't reproduce your problems here, so I need some hints. - About excluding PP_SSAO_NOFOG and PP_SSAO_NOSOFTALPHA: which resolution (do you just start the demo?) and: --- which engine version are you using? I have tested it on 4:3 and widescreen resolution and I have no problems. Can you please post an image of these "artifacts"?
- "video functions not available before first frame" - I have in the ppSsao.h a starter function ("ppSsao_h_startup"), which generates the random vector map and loads the shaders dependent on your #define configuration. Try placing a wait(1) right before the line with "#ifndef PP_SSAO_CUSTOM_VECTORMAP"...
- Do you create your sky entities dynamically with ent_createlayer?
- Where do you place the integrate-function?
Can you please remove everything from your a local copy of your game so that the problem remains? It would be very fruitful if you could provide a minimal testcase in which all problems you mentioned are appearing at the same time. As long as I don't have any insight in *how* you use it, I can't tell if you do something terribly wrong or I am terribly wrong assuming how users develop their games ;-) Best regards, -Christian
Last edited by HeelX; 09/09/10 00:35.
|
|
|
Re: Crytek's SSAO development thread
[Re: HeelX]
#341167
09/12/10 16:52
09/12/10 16:52
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
I implemented a bilateral gaussian blur with single dynamic weights, respecting the depths and surface normals of each sample pixel compared with the base pixel. I still have to fix surface incontinoutities in the sampling process, but it looks already better! The images are the AO result after bilinear downsampling, AO approximation, blur and bilinear upsampling. Remember, I calculate on the half of the resolution.. Old (with 4x4 box blur): New (with bilateral gaussian blur): Next thing after fixing the above mentioned stuff is bilateral upsampling and switching to A8 exclusive features to reduce the overall texture lookup-count.
Last edited by HeelX; 09/12/10 16:55.
|
|
|
Re: Crytek's SSAO development thread
[Re: Hummel]
#341188
09/12/10 23:46
09/12/10 23:46
|
Joined: Jul 2001
Posts: 6,904
HeelX
OP
Senior Expert
|
OP
Senior Expert
Joined: Jul 2001
Posts: 6,904
|
Peter-Pike Sloan, Naga K. Govindaraju, Derek Nowrouzezahrai, John Snyder: "Image-Based Proxy Accumulation for Real-Time Soft Global Illumination", in: Pacific Graphics 2007 Just take the small paragraph about that upsampling. The idea is relative straight forward. When you have generated content that is based on coarse material that was previously hires and therefore downscaled, you are looking for an inverse projection, that transforms the coarse data into hires data. Bilinear upscaling is OK, but it doesn't take edges and surface normals into account. So you compare hires and coarse surface normals (and depths) per pixel and calculate sampling weights for a bilateral upscaling.
Last edited by HeelX; 09/12/10 23:47.
|
|
|
Re: Crytek's SSAO development thread
[Re: HeelX]
#341314
09/14/10 15:18
09/14/10 15:18
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
why dont you release a compiled one for the community, just for showcase purpose to compare the FPS on different machines o.O
Greets Rackscha
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: Crytek's SSAO development thread
[Re: Rackscha]
#341324
09/14/10 16:35
09/14/10 16:35
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Afair, it isn't allowed/possible to create a compiled version of your game/demo/whatever with a Gamestudio beta.
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
|