{"id":376,"date":"2010-09-26T17:12:36","date_gmt":"2010-09-26T16:12:36","guid":{"rendered":"http:\/\/www.ozone3d.net\/blogs\/lab\/?p=376"},"modified":"2011-09-07T20:49:23","modified_gmt":"2011-09-07T19:49:23","slug":"depth-of-field-dof-quelques-tests","status":"publish","type":"post","link":"https:\/\/www.ozone3d.net\/blogs\/lab\/20100926\/depth-of-field-dof-quelques-tests\/","title":{"rendered":"Depth of Field (DoF): Quelques tests"},"content":{"rendered":"<p><center><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ozone3d.net\/public\/jegx\/201009\/geexlab_dof_test_01.jpg\" alt=\"GeeXLab, DoF test\"\/><\/p>\n<p><\/center><br \/>\n<!--more--><br \/>\nDans <a href=\"http:\/\/www.geeks3d.com\/20100923\/overview-of-modern-real-time-rendering-techniques\/\">cette news<\/a>, on peut voir un effet de <b>profondeur de champ<\/b> (<b>Depth of Field<\/b> ou <b>DoF<\/b> pour les intimes) vraiment sympa tir\u00e9 du jeu Metro2033. La technique utilis\u00e9e, <b>Diffusion Depth of Field<\/b>, pour effectuer la transition entre l&#8217;image flout\u00e9 et l&#8217;image nette est bas\u00e9e sur les \u00e9quations de diffusion de la chaleur d&#8217;o\u00f9 le nom (il y a un papier <a href=\"http:\/\/citeseerx.ist.psu.edu\/viewdoc\/download?doi=10.1.1.162.3047&#038;rep=rep1&#038;type=pdf\">ICI<\/a> qui explique un peu le principe). Le resultat est assez convaincant. Je suis amus\u00e9 \u00e0 reproduire cette image (avec <a href=\"http:\/\/www.geeks3d.com\/geexlab\/\">GeeXLab<\/a>) afin de voir si avec une technique plus simple (quelques petites \u00e9quations lin\u00e9aires) on pouvait se rapprocher visuellement du DoF de Metro2033.<br \/>\n<br \/>\n<center><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ozone3d.net\/public\/jegx\/201009\/geexlab_dof_test_02.jpg\" alt=\"GeeXLab, depth of field (DoF) test\"\/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ozone3d.net\/public\/jegx\/201009\/geexlab_dof_test_03.jpg\" alt=\"GeeXLab, depth of field (DoF) test\"\/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ozone3d.net\/public\/jegx\/201009\/geexlab_dof_test_04.jpg\" alt=\"GeeXLab, depth of field (DoF) test\"\/><\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.ozone3d.net\/public\/jegx\/201009\/geexlab_dof_test_05.jpg\" alt=\"GeeXLab, depth of field (DoF) test\"\/><\/p>\n<p><\/center><br \/>\n<br \/>\nResultat: on y arrive pas trop mal, mais en fonction de la texture du mur, l&#8217;effet DoF est plus ou moins cr\u00e9dible. Toute la difficult\u00e9 dans le DoF est de trouver le bon algo pour g\u00e9rer la transition entre l&#8217;image nette et l&#8217;image blurr\u00e9e. Comme d&#8217;hab, je releaserai la demo sur Geeks3D quand elle sera ok.<\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[408,469],"tags":[3,319,410,320,409,348,638,411],"class_list":["post-376","post","type-post","status-publish","format-standard","hentry","category-pixel-hacking-2","category-tools-de-jegx","tag-3d","tag-depth-of-field","tag-diffusion","tag-dof","tag-effet","tag-geexlab","tag-opengl","tag-realtime"],"aioseo_notices":[],"views":2994,"_links":{"self":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts\/376","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/comments?post=376"}],"version-history":[{"count":0,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/posts\/376\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/media?parent=376"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/categories?post=376"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ozone3d.net\/blogs\/lab\/wp-json\/wp\/v2\/tags?post=376"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}