{"id":281,"date":"2008-05-01T13:17:49","date_gmt":"2008-05-01T01:17:49","guid":{"rendered":"http:\/\/wp.davidbrebner.com\/?p=281"},"modified":"2013-04-28T20:53:59","modified_gmt":"2013-04-28T08:53:59","slug":"ambient-occlusion","status":"publish","type":"post","link":"https:\/\/davidbrebner.com\/?p=281","title":{"rendered":"Ambient Occlusion"},"content":{"rendered":"<p><iframe width=\"420\" height=\"315\" src=\"http:\/\/www.youtube.com\/embed\/9Q1WQ9iVEAg\" frameborder=\"0\" allowfullscreen><\/iframe><\/p>\n<p>\n\t\t\t\t\t\t\tNote: Many thanks to the the work that the Collada organisation have put it in their 3D specification, and to Sony for this demonstration model.  <a href=\"http:\/\/www.collada.org\/owl\/index.php\">Collada Model Bank<\/a><\/p>\n<p>\n\t\t\t\t\t\t\t\t<b>Ambient Occlusion<\/b><\/p>\n<p>\n\t\t\t\t\t\t\tAmbient Occlusion is a local reflection model.  It takes into account the brightness due to how much light can hit that spot.  In this demo the map is baked down as a simple shadow which is precalculated for only one light source.<\/p>\n<p><p>\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"http:\/\/wp.davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient1.jpg\" alt=\"ambient1\" width=\"208\" height=\"155\" class=\"alignnone size-full wp-image-267\" srcset=\"https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient1.jpg 208w, https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient1-150x111.jpg 150w, https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient1-160x120.jpg 160w\" sizes=\"(max-width: 208px) 100vw, 208px\" \/><\/p>\n<p>\n\t\t\t\t\t\t\t\t\tWhen the scene is built up we apply the normal flat shaded lighting&#8230; then the diffuse textures&#8230; and finally multiply the ambient occlusion maps.<\/p>\n<p>\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"http:\/\/wp.davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient2.jpg\" alt=\"ambient2\" width=\"690\" height=\"218\" class=\"alignnone size-full wp-image-258\" srcset=\"https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient2.jpg 690w, https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient2-150x47.jpg 150w, https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient2-300x94.jpg 300w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/p>\n<p>\n\t\t\t\t\t\t\t\t\tHere are some beauty renders.  These also include a specular map which brightens based on the angle of the camera to the fixed light.  It lends a really nice shine to the models.<\/p>\n<p>\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"http:\/\/wp.davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient5.jpg\" alt=\"ambient5\" width=\"690\" height=\"405\" class=\"alignnone size-full wp-image-257\" srcset=\"https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient5.jpg 690w, https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient5-150x88.jpg 150w, https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient5-300x176.jpg 300w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/p>\n<p>\n\t\t\t\t\t\t\t\t<img decoding=\"async\" src=\"http:\/\/wp.davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient3.jpg\" alt=\"ambient3\" width=\"690\" height=\"406\" class=\"alignnone size-full wp-image-256\" srcset=\"https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient3.jpg 690w, https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient3-150x88.jpg 150w, https:\/\/davidbrebner.com\/wp-content\/uploads\/2013\/02\/ambient3-300x176.jpg 300w\" sizes=\"(max-width: 690px) 100vw, 690px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Note: Many thanks to the the work that the Collada organisation have put it in their 3D specification, and to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":258,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[40],"tags":[3,10,16,33,34],"class_list":["post-281","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-umaijn","tag-umajin","tag-rendering","tag-3d","tag-occlusion","tag-ambient"],"_links":{"self":[{"href":"https:\/\/davidbrebner.com\/index.php?rest_route=\/wp\/v2\/posts\/281","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/davidbrebner.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/davidbrebner.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/davidbrebner.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/davidbrebner.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=281"}],"version-history":[{"count":6,"href":"https:\/\/davidbrebner.com\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions"}],"predecessor-version":[{"id":496,"href":"https:\/\/davidbrebner.com\/index.php?rest_route=\/wp\/v2\/posts\/281\/revisions\/496"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/davidbrebner.com\/index.php?rest_route=\/wp\/v2\/media\/258"}],"wp:attachment":[{"href":"https:\/\/davidbrebner.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/davidbrebner.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/davidbrebner.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}