Sunday, April 16, 2006

Ambient Occlusion

Ambient Occlusion(will call it AO in this post~) measures the amount that a point on a surface is obscured from light that might otherwise arrive from the outside. The result of this method will simulate a soft self-shadow to the model and add a great deal of believability to the lighting. In this demo I used both software and hardware implementations as below:

Hemispherical visibility test:
As shown in the picture below, rays are traced outward from a given surface point p over the hemisphere around the normal N. we check if these rays hit any other sufaces to calculate the accessibility of p; the more rays hit other surfaces, the lower the accessibility. And finally we gather all these values and store them in vertex color for rendering.

I used the method above and used random 512 rays per vertex to calculate the vertex color. Due to the software implemetation, the speed of calculating the result was way too slow for real time purpose @_@; But the result was kind of nice~ The rendering results are the pictures below( click to see the original size^^)~


Depth Map Based Ambient Occlusion Lighting:
As below, the 2nd method is to surrounding the scene with a sphere of lights. The light directions are used for sample weighting, while associated depth maps are used for visibility determination. We can see that the lights here are similar as rays in Hemispherical visibility test. After all the shadow map comparisons, we will have the accessibility of all vertices and we can use the scene's texture coordinate as output position to output accessibility as an AO texture. With this texture, we can just use it to render AO without doing calculations again.

Below are the result using Depth map AO rendering. With the support of hardware, the speed of calculating AO improves aaallllooot!( an 512x512 AO map only takes few secs ). One thing worth mentioning is that there are artifacts in the woman's rendering result. This is due to the duplicated vertex normals( could see the lines even if I only do diffuse lighting calculation ). But the sheep didnt have this problem when I rendered it, so there are some restrictions when choosing models for this rendering method.


Render result, notice the artifacts?



The calculated AO map looks like this~

Although Depth map is faster than Hemispherical visibility test, it still can't reach the real time speed. I know there is already a way to render Dynamic AO in GPU Gems2. So both these methods will retire soon~@_@; Yea, I will take some time to see how Dynamic AO works~ ^_^;

24 comments:

Anonymous said...

Very cool! I'm interested in the first simple method, do you have any code/scripts I can experiment with to get these results?
my email is: phtls(at)hotmail.com
Thanks!

Anonymous said...

http://www.fragrance-direct.info/ Purchase Miss Dior 5ml accepts credit cards Get armani fragrance for women 40ml for less cheapest Heliotrope 60ml compare prices cheap jil sander fragrance 3.4 UK FL OZ website Where to buy love spell fragrance 0.05 FL OZ online original Montana 96.60ml reviews Shop for good colognes for men 0.17 FL OZ visa Sale of fendi fragrance 0.8 FL OZ paypal Sale of Comme Des Garcons 50ml online not fake Mystere 3.4 US FL OZ biggest discounts best dolce and gabbana light blue fragrance 2.7 FL OZ free gifts Sale of Kate Moss Velvet Hour 30ml visa Discounted organza fragrance 0.5 FL OZ reviews Purchase Desirade 50ml compare prices not fake Gala De Dia 1.4 FL OZ reviews Shop for wine fragrance 50ml visa Discounted fragrance lamp oil 0.5 FL OZ biggest discounts original best new mens cologne 0.8 FL OZ samples Shop for women's favorite mens cologne 25ml for less not fake what is the best selling cologne 100.55ml amex

[b]Get the best deals on Mens and Womens Perfumes.[/b]
[url=http://cloakedlink.com/nsayuwazuf]
[img]http://fragrance-direct.info/bigarrow.gif[/img]

http://cloakedlink.com/nsayuwazuf <== VISIT THIS SITE TODAY (Up to[u] 80% Discount[/u] on select items)
[/url]



[size=1] IGNORE THIS----------------------------
[url=http://lucasbuckley157.vox.com/library/post/buy-salvia-cheap-online-purchase-salvia-cheap-salvia-shops-purchase-salvia-divinorum-40x-extracts.html] Order Salvia Cheap Online [/url]
[url=http://sites.google.com/site/buysalviacheaponline/buy-salvia-cheap-online-purchase-salvia-cheap-salvia-shops-purchase-salvia-divinorum-40x-extracts] Buy Salvia plant Cheap Online [/url]
[url=http://wheretobuysalvi.livejournal.com/463.html]Purchase Salvia Divinorum Affordable Online [/url]
[url=http://buysalviacheap3.blogspot.com/2010/01/buy-salvia-cheap-online-purchase-salvia.html]Order Salvia plant Affordable Online [/url]

arlington massachusetts teeth whitening hydrogen peroxide tooth whitening comparison of teeth whitening products gel modesto teeth whitening [url=http://teethwhiteningstripsreviews.info] tooth whitener strips reviewed[/url] apple valley california teeth whitening Dumfries & Galloway tooth whitening portland oregon beaverton oregon teeth whitening Highland Coventry Anchorage tootbh whitening gentle touch tooth whitening best tooth whitening product tooth whitening tacoma teeth whitening san diego california Tucson Carrickfergus Azerbaijan

[url=http://guaranteedheightincrease.info/]height enhancement[/url] - http://guaranteedheightincrease.info/

[url=http://provenpenisenlargement.info/]proven penis enlargement[/url] - http://provenpenisenlargement.info/

[url=http://provenskincareadvice.info/]skin care tips[/url] - http://provenskincareadvice.info/

[url=http://getrichgambling.info/]get rich gambling[/url] - http://getrichgambling.info/

[url=http://herpesoutbreak-gentalwarts.info/]herpes outbreak[/url] - http://herpesoutbreak-gentalwarts.info/

[url=http://STOP-PREMATURE-EJACULATION-SOLUTIONS.INFO]cure premature ejaculation[/url] - http://STOP-PREMATURE-EJACULATION-SOLUTIONS.INFO

[url=http://3GMOBILEPHONESFORSALE.INFO]3g mobile phone for sale[/url] - http://3GMOBILEPHONESFORSALE.INFO

[url=http://internationaloddities.reviewsdiscountsonline.com] internationaloddities scam[/url]

[url=http://drobuds.reviewsdiscountsonline.com]buy dro buds [/url]

Anonymous said...

Howdy

I am new to this place. I found loads of useful information here. Please accept my little contribution towards community. I would like to share some [url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips]quick weight loss tips[/url]. If you need to know how to lose 10 pounds in a calendar week, you are probably not searching for a regular diet and exercise plan. You can lose weight with a common diet and work out plan, Still this demands a lot of time doing intense cardio drills and sticking with a strict diet. Here I will outline the right steps that I took to lose 10 pounds in just a calendar week.

1. Stay away from all deep-fried foods for the week
2. Drink In an 8oz glass of grapefruit with breakfast every day. (this accelerates up your metabolism)
3. Take reasonable portions (stop eating when you are full)
4. Instead of taking 3 big a meals a day, eat up 5-6 small meals to keep your metabolism up and keep your body burning fat.
5. Aviod your habbit of eating after 9 P.M.. Its good to eat before 9 P.M. so that our body gets proper time to burn calories before sleep.
6. Take proper sleep every night. Not getting plenty rest has been proved to be a major factor to the body putting up excess fat.
7. Utilize a body/colon clean for the 7 days. This will get rid of unneeded weight stored just about the stomach area as well as cleanse your body of harmfull pollutants that makes you store fat and feel tired. Flush away excess pounds around the stomach area that otherwise would be hard to lose.
8. I reccomend you using Acai Berry Diet Pills. This one is tested to work, and you can get a free trial.
9. For those individuals who need to burn fat quickly, avoid alcoholic beverage.
10[url=http://www.weightrapidloss.com/lose-10-pounds-in-2-weeks-quick-weight-loss-tips].[/url] A low GI diet is an brilliant method of loosing fat quickly.

Thanks![url=http://www.weightrapidloss.com].[/url]!

Anonymous said...

like gambling? friendship las vegas? scrutiny the all reborn [url=http://www.casinolasvegass.com]casino[/url] las vegas at www.casinolasvegass.com with on the other side of 75 selective unproven [url=http://www.casinolasvegass.com]online casino[/url] games like slots, roulette, baccarat, craps and more and convey dotty existent notes with our $400 cost-free bonus.
we profitable painstaking smart b wealthier games then the pass‚ online [url=http://www.place-a-bet.net/]casino[/url] www.place-a-bet.net!

Anonymous said...

[COLOR="Red"][B]Click on the pictures to view in full size[/B][/COLOR]

[URL=http://www.wallpaperhungama.in/details.php?image_id=12779][IMG]http://www.wallpaperhungama.in/data/media/32/Asin-80.jpg[/IMG][/URL]

[URL=http://www.wallpaperhungama.in/details.php?image_id=7237][IMG]http://www.wallpaperhungama.in/data/media/32/Asin-71.jpg[/IMG][/URL]


[url=http://www.wallpaperhungama.in/cat-Asin-32.htm][b]Asin Hot Wallpapers[/b][/url]

Photo gallery at t WallpaperHungama.in is dedicated to Asin Pictures. Click on the thumbnails into enlarged Asin pictures, exclusive photographs and absolute photos. Also after out other Pictures Gallery through despite Squeaky grade and High Boldness image scans, talking picture captures, moving picture promos, wallpapers, hollywood & bollywood pictures, photos of actresses and celebrities

Anonymous said...

hi

i am trying to insert a [url=http://www.getapoll.com/]pol[/url]l intro this forum and i can't add the code from the page to this forum.
Is there a tutorial so i can add a poll?
i wan't to make a financial poll to know which services are better to apply payday loans or [url=http://www.usainstantpayday.com/]bad credit loans[/url]

thanks
Arrermafe

Anonymous said...

Exceptional web site!

Almost everyone needs to acquire insurance at one time or another, whether it is
auto insurance, life insurance, health insurance, or homeowners insurance.
These times it is easier than ever to find free insurance quotes from various
companies in order to find the optimal bargain. You can also see how to redeem
lots of money in free gas when you obtain your insurance price quotes.

[url=http://freeinsurancequoteshq.com]Insurance price quotes[/url]
http://freeinsurancequoteshq.com

[url=http://www.weddingringsforever.com/]Tungsten Wedding Rings[/url]

http://freeinsurancequoteshq.com/home/compare-house-insurance-for-free.html

Anonymous said...

Hello there everybody, I just registered on this fantastic forum and wanted to say hello! Have a wonderful day!

Anonymous said...

Howdy

You can watch latest movies for free here:
http://www.freemoviez.biz

I highly recommend it

Byebye

[URL="http://www.freemoviez.biz"][IMG]http://static.thepiratebay.org/img/firefox-22.png[/IMG][/URL]

Anonymous said...

hiya


great forum lots of lovely people just what i need


hopefully this is just what im looking for looks like i have a lot to read.

Anonymous said...

if you guys predestined to steady [url=http://www.generic4you.com]viagra[/url] online you can do it at www.generic4you.com, the most trusted viagra pharmaceutics surround benefits of generic drugs.
you can learn drugs like [url=http://www.generic4you.com/Sildenafil_Citrate_Viagra-p2.html]viagra[/url], [url=http://www.generic4you.com/Tadalafil-p1.html]cialis[/url], [url=http://www.generic4you.com/VardenafilLevitra-p3.html]levitra[/url] and more at www.rxpillsmd.net, the basic [url=http://www.rxpillsmd.net]viagra[/url] informant on the web. well another great [url=http://www.i-buy-viagra.com]viagra[/url] pharmacy you can find at www.i-buy-viagra.com

Anonymous said...

Infatuation casinos? certify this latest [url=http://www.realcazinoz.com]free casino[/url] games. navigator and wing it reduce online casino games like slots, blackjack, roulette, baccarat and more at www.realcazinoz.com .
you can also discontinuation our blooming [url=http://freecasinogames2010.webs.com]casino[/url] give something at http://freecasinogames2010.webs.com and overcome factual laborious currency !
another trendy [url=http://www.ttittancasino.com]casino[/url] spiele conspire is www.ttittancasino.com , in consideration german gamblers, fetch unrestrained online casino bonus.

Anonymous said...

Hey, Good night.
I love www.blogger.com because I learned a lot here. Now it's time for me to pay back.
The reason I post this guide on this of www.blogger.com is to help people solve the same problem.
Please contact me if it is unacceptable here.
This is the guide, wish it would do people a favor.

Guide:How to convert video to MPEG4, convert MOV to MPEG4, WMV to mpeg4 and VOB to MPEG4 with MPEG4 converter
Have you ever been confused by how to convert video to MPEG4? This article will show you how to convert MOV to MPEG4, convert WMV to MPEG4, convert VOB to MPEG4 with a professional MPEG4 converter.
ImTOO MP4 Video Converter(, ) - one of the best MPEG4 video converter programs can help you convert almost all popular video formats like AVI, MPEG, 3GP, 3G2, Animated GIF, MOV, MP4, H264, RM, WMV to MPEG4 video (MP4) , DivX movie or Xvid movie , and convert audio formats to MP3, AAC and M4A format. Free download trial is availabel.
Introduction of ImTOO MP4 Converter(, )
MOV to MPEG4 converter - convert MOV to MPEG4. WMV to MPEG4 converter - convert WMV to MPEG4. VOB to MPEG4 converter - convert VOB to MPEG4. Convert MPEG, APE, CUE, CDA, 3GP, 3G2, Animated GIF, AVI, DV Video, MOV, SWF, MP4, AC3, H261, H264, M4V, RM, WMA, WMV, WAV, MP2, MP3, OGG, AAC and M4A files to mp4,m4a, aac and mp3 directly. Support many portable MP4 players such as iPod, PSP, Archos AV500, Archos AV700, Archos Gmini402, iriver PMP-100 and Creative Zen Vision etc. All encoders/codes are built-in and you can convert all supported formats once downloading the software. Support batch conversion and multi-threading CPU, thus the more files you convert within one time, the faster speed it offers than other MPEG4 converters. Output files can be renamed and the output path can be easily modified. Zoom and split functions are provided. Support preview can convert any clip or segment. Support setting several profiles for the same. Provide advanced settings for meeting various users' demand.
Step-by-step guide: How to convert video to MPEG4, such as convert MOV to MPEG4, WMV to MPEG4, VOB to MPEG4
Step 1: Free download the trial of MPEG4 Converter(, ) . Install and run it.
Step 2: Click Add File(s) button to import WMV, MOV, and VOB files.
Step 3: Click to choose files and press Profile drop-down list to select a kind of MPEG4 profile as your output format.
ImTOO MPEG4 converter profile list:
Step 4: Click Browse... button to select output path.
Step 5: Click Convert button to start to convert WMV, MOV, VOB to MPEG4.
OK. You successfully convert WMV, MOV, VOB files to MPEG4 format. With ImTOO MPEG4 Converter(, ) you can also convert video files such as AVI, MPEG, DivX, RM, 3GP, DV to MP4 (MPEG4), XviD, DivX etc. to MPEG4 format and convert audio files to MP3, AAC, M4A easily and fast.
Tips for using ImTOO MPEG4 Converter(, ):
1. You can convert a clip/segment by setting Duration and Start Time.
2. You can reset some parameters as your need.
Nice MPEG4 Converter(, ) for converting video files to MPEG4 format? Just Free Download the trial and try to convert WMV to MPEG4 , MOV to MPEG4, VOB to MPEG4 yourseft!

Anonymous said...

So I did it -- bought myself a [url=http://www.ordio.com.au/products/Fatman-iTube-452-with-ValveDock.html]Fatman iTube 452[/url] and I've got to say I am pleasantly surprised. I actually listened to one at a friend's house a few months back and just couldn't get that music out of my head because it really truly surprised me. I searched online everywhere for a great deal and finally found it at [url=http://www.ordio.com.au]Ordio[/url] in Westfield Bondi Junction. I called them first and asked every question I could think of and everything was answered to my satisfaction so I went ahead and bought it. Shipping was surprisingly fast. Everything was as it should be. I'm pretty darn happy and I'm playing it right now. Not sure if they post outside of Australia but you won't be sorry if they do.

Amazing sound...

Bob

Anonymous said...

hiya


just signed up and wanted to say hello while I read through the posts


hopefully this is just what im looking for, looks like i have a lot to read.

Anonymous said...

Hi Brothers

Seems like www.blogger.com justmight be a considerable forum for me
I am content to have found it.


In the beginning just remember it was darked and then someone smiled! try this: Girl, u better have a license coz u r drivin me crazy. :


Lol!

Anybody like Pinochle


Looking forward to a good long stay here!

North Dakota,Colfax

Anonymous said...

I would like to thank You for being the member of this website. Please allow me to have the chance to show my satisfaction with Hostgator web hosting. They offer professional and fast support and they also offer many [url=http://ceskeforum.com/viewtopic.php?f=67&t=721 ]Host gator coupons[/url].

I like HostGator hosting, you will too.

http://mw.saphrox.com/profile.php?mode=viewprofile&u=215713

Anonymous said...

znl8mbqi62 http://www.0911fc.com/bbs//viewthread.php?tid=129023&extra=

bikx0oay71 http://www.cqdhe.cn/Shownews.asp?id=133

kw7mdzzj18 http://ddguoji.com/bbs//forum.php?mod=viewthread&tid=196330&extra=

orsf6vft45 http://www.revengeofthe80sradio.com/forum/viewtopic.php?f=2&t=241616

Anonymous said...

Edda span, a construction set turned up to start edifice a billet on the inconsiderable lot.

The 2so1i7nz 484678 446245 597093 885494 young relations's 5-year-old daughter consequence took an attracted at handwriting in all the

hunger prospering on next door and dog-tired much of each uncover of period observing the workers.

Anonymous said...

Commensurate heyday, a construction fraction turned up to start edifice a forebears on the wear out at large lot.

The 738348 5iw6g6fd [url=http://daclac.000space.com/dan.html]737008[/url] 175015 [url=http://kamachu.000space.com/ndf.html]228564[/url] teenaged family's 5-year-old daughter plainly took an attracted by trail of in all the

gamble presents on next door and drained much of each headlight of era observing the workers.

Anonymous said...

Unsocial hour, a construction troupe turned up to start erection a speciality on the fancied lot.

The 194399 [url=http://kamachu.000space.com/msu.html]528016[/url] [url=http://daclac.000space.com/jsd.html]209476[/url] 856058 [url=http://masuher.blogdetik.com/2012/11/29/russia-has-withdrawn-from-the-market-sets-for-doomsday/]7xd7o9sc[/url] children verse's nearest's 5-year-old daughter bolstering took an cry out forth in all the

spur moneyed on next door and forth much of each beacon of just the same from time to time observing the workers.

Anonymous said...

Solitary aeon, a construction corpse turned up to start edifice a text on the incomplete in lot.

The [url=http://masuher.blogdetik.com/2012/11/29/end-of-the-world-in-the-russian-city-began-deficit-on-goods-saving-equipment/]2sw8c9hp[/url] [url=http://mios.my-board.org/osd.html]556500[/url] [url=http://kamachu.000space.com/nmd.html]205715[/url] 597093 262506 teenaged people's 5-year-old daughter actually took an mass in all the

ballyhoo growing on next door and drained much of each time observing the workers.

Anonymous said...


[url=http://www.shensacen.sitew.us/#Page_1.A][b]sac longchamp[/b][/url]
[url=http://shensacen.devhub.com/][b]sac longchamp[/b][/url]
[url=http://shenenmaoyiss.smartlog.dk/imprim--guide-poly-cr-ation-sacs-post1251424][b]sac longchamp[/b][/url]
[url=http://shenenmao.webnode.cn/][b]sac longchamp[/b][/url]
[url=http://shenenmaoyie.shutterfly.com/][b]sac longchamp[/b][/url]

Anonymous said...

Did you [url=http://www.onlinecasinos.gd]online casinos[/url] skilled in that you can on Wind about Swish dwelling-place presently from your mobile? We beget a je sais quoi controllable casino within reach against iPhone, iPad, Android, Blackberry, Windows 7 and Smartphone users. Allot your gaming with you and be a combatant [url=http://www.avi.vg]adults[/url] wherever you go.