Gamestudio Links
Zorro Links
Newest Posts
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AbrahamR), 717 guests, and 4 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Foxfire's SSAO #241252
12/15/08 02:52
12/15/08 02:52
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline OP
Member
Foxfire  Offline OP
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3
Hey,
For my christmas contribution this year, I am releasing a script, demo, and tutorial on SSAO!

Because so many of you guys have been asking for it, I will provide it.

In a minute I will upload some pictures of the shader.

The Screen Space Ambient Occlusion shader runs efficientley enough to implement in your 3D game and transforms occluded areas into realistic shadows that can make your image "pop out" of the screen! In my implementation, you simply need to create an extra view which renders each pixels depth to the camera which then feeds into a post processing view that calculates the per pixel ambient occlusion. The result can be added or multiplied to the final scene or used in the camera's shaders to effect specualr highlights and other shadow-dependent factors.

Please note that the lighter shadows in the scene are actuallt NOT the SSAO (they are a HUGE VSM effect covering 1000 quants). The process I developed also eliminates false edges and occlusion without a edge detection system. This speeds up the shader by nearly 2 times over the classic implementation!!! I also used a fixed texture kernal so there is virtually no noise! pixel samples are repeated every nxn sample to allow for larger scale occlusions however the non-rotated kernal means no noise. Please enjoy this, I will release it a bit closer to Christmas. -Mike-


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps
Re: Foxfire's SSAO [Re: Foxfire] #241253
12/15/08 02:58
12/15/08 02:58
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline OP
Member
Foxfire  Offline OP
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3
http://img185.imageshack.us/my.php?image=shot1zv5.jpg

image shack is being painfully slow today frown


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps
Re: Foxfire's SSAO [Re: Foxfire] #241254
12/15/08 03:05
12/15/08 03:05
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline OP
Member
Foxfire  Offline OP
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3
http://img178.imageshack.us/my.php?image=shot3kg9.jpg

This one has some wierd halos around the horizon, this doesn't occur when running (probably because there is no background):
http://img185.imageshack.us/my.php?image=shot2mz3.jpg

http://img185.imageshack.us/my.php?image=shot4kk8.jpg

ImageShack is angry at me XD I'll upload the rest later - Mike-


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps
Re: Foxfire's SSAO [Re: Foxfire] #241256
12/15/08 03:11
12/15/08 03:11
Joined: Mar 2006
Posts: 3,538
WA, Australia
J
JibbSmart Offline
Expert
JibbSmart  Offline
Expert
J

Joined: Mar 2006
Posts: 3,538
WA, Australia
g'day Foxfire,

can you show us screenshots that only show the ambient occlusion, or some that accentuate it, so it's more obvious?

it does look good though, and sounds very clever :P

julz


Formerly known as JulzMighty.
I made KarBOOM!
Re: Foxfire's SSAO [Re: JibbSmart] #241259
12/15/08 04:10
12/15/08 04:10
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline OP
Member
Foxfire  Offline OP
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps
Re: Foxfire's SSAO [Re: Foxfire] #241260
12/15/08 04:14
12/15/08 04:14
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline OP
Member
Foxfire  Offline OP
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps
Re: Foxfire's SSAO [Re: Foxfire] #241261
12/15/08 04:21
12/15/08 04:21
Joined: Apr 2008
Posts: 235
TEXCOORD3
Foxfire Offline OP
Member
Foxfire  Offline OP
Member

Joined: Apr 2008
Posts: 235
TEXCOORD3
This first examples are Ambient + Diffuse + shadows + textures.
Note the last example. The occlusion is correctley portrayed even at multiple distances. The wires from the pipleine occlude only against the pillars (not the sky or other wires). Objects closer to the camera also occlude without unwanted bias (and objects very far away). Also notice how deeper occlusions are darker, in all these examples I super saturated the ambient result to highlight the ambient occlusion. This can easily be modified for a more realistic level of AO in your game. You can also reduce the "radiosity exposure" to increase the amount of gradation between deep and shallow occluders (again, I set the exposure very high so that all occlusions would be considered very "deep").

good night - Michael H Auerbach -


http://www.groundtacticsgame.com/
Alienware m17x R Custom laptop
specs:
Intel Core 2 Extreme Quad CPU Q9300
2x Nvidia 280GTX 2GB vram
6GB ddr3 memory@ 1333Mhz
512GB SSD
1200p 17' screen
runs Crysis Warhead on max settings at 1200p at 90 fps
Re: Foxfire's SSAO [Re: Foxfire] #241275
12/15/08 08:34
12/15/08 08:34
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Looks very nice.

FPS/system specs?

will be a nice cont. btw.


3333333333
Re: Foxfire's SSAO [Re: Quad] #241460
12/16/08 14:16
12/16/08 14:16
Joined: Jul 2001
Posts: 6,904
H
HeelX Offline
Senior Expert
HeelX  Offline
Senior Expert
H

Joined: Jul 2001
Posts: 6,904
So, I could combine it with my own shadowmapping? The question is, how fast it is? Would it be faster if I would render it in a smaller view, scale it up and then box-blur it?

Bye,
Christian

Re: Foxfire's SSAO [Re: HeelX] #241487
12/16/08 17:40
12/16/08 17:40
Joined: Oct 2005
Posts: 4,771
Bay City, MI
lostclimate Offline
Expert
lostclimate  Offline
Expert

Joined: Oct 2005
Posts: 4,771
Bay City, MI
box-bluring an ssao shader or a shadowmapping shader is a very very bad idea. especially since its hard enough to not get black or light halos around every thing, let alone if the blur adds even more to it.

Page 1 of 2 1 2

Moderated by  adoado, checkbutton, mk_1, Perro 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1