{"id":107,"date":"2010-09-29T13:46:28","date_gmt":"2010-09-29T12:46:28","guid":{"rendered":"http:\/\/shadowcovenant.com\/blog\/2010\/09\/29\/shadows-and-fractals\/"},"modified":"2010-09-29T13:49:00","modified_gmt":"2010-09-29T12:49:00","slug":"shadows-and-fractals","status":"publish","type":"post","link":"http:\/\/shadowcovenant.com\/blog\/2010\/09\/29\/shadows-and-fractals\/","title":{"rendered":"Shadows and Fractals"},"content":{"rendered":"<p><a href=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2010\/09\/shadowmap_spotlight.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-medium wp-image-108\" title=\"Shadowmap Test\" src=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2010\/09\/shadowmap_spotlight-300x238.jpg\" alt=\"\" width=\"300\" height=\"238\" srcset=\"http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2010\/09\/shadowmap_spotlight-300x238.jpg 300w, http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2010\/09\/shadowmap_spotlight-1024x813.jpg 1024w, http:\/\/shadowcovenant.com\/blog\/wp-content\/uploads\/2010\/09\/shadowmap_spotlight.jpg 1040w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/a><\/p>\n<p>Video of the first test of deferred rendering with a spotlight casting shadows, through use of a shadowmap with 256 by 256.<\/p>\n<p>This video was taken in debug mode, hence the speed (which is pretty impressive nevertheless).<\/p>\n<p>All light sources in this renderer can be shadowcasters or not, which will take different code paths in the renderer, to minimize DIP calls.<\/p>\n<p><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"480\" height=\"385\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/5vrgHCT9cVk?fs=1&amp;hl=en_US&amp;rel=0\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed type=\"application\/x-shockwave-flash\" width=\"480\" height=\"385\" src=\"http:\/\/www.youtube.com\/v\/5vrgHCT9cVk?fs=1&amp;hl=en_US&amp;rel=0\" allowfullscreen=\"true\" allowscriptaccess=\"always\"><\/embed><\/object><\/p>\n<p>This is for the new game project in which I&#8217;m involved (no information on this yet&#8230; please be patient, eheheh)&#8230;<\/p>\n<p>The ideia is to have a fully fledged deferred renderer to power the game&#8230; Currently I&#8217;m adding shadow support (through shadowmaps)&#8230; I only have spotlight support, but the rest should be done easily now that the hard part is over&#8230; Still want to add blurring to simulate soft-shadowing (and to disguise some bad artifacts as you can see in the video).<\/p>\n<p>On another note, check out this extremely amazing video:<\/p>\n<p><object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" width=\"640\" height=\"385\" codebase=\"http:\/\/download.macromedia.com\/pub\/shockwave\/cabs\/flash\/swflash.cab#version=6,0,40,0\"><param name=\"allowFullScreen\" value=\"true\" \/><param name=\"allowscriptaccess\" value=\"always\" \/><param name=\"src\" value=\"http:\/\/www.youtube.com\/v\/bO9ugnn8DbE?fs=1&amp;hl=en_US&amp;rel=0\" \/><param name=\"allowfullscreen\" value=\"true\" \/><embed type=\"application\/x-shockwave-flash\" width=\"640\" height=\"385\" src=\"http:\/\/www.youtube.com\/v\/bO9ugnn8DbE?fs=1&amp;hl=en_US&amp;rel=0\" allowfullscreen=\"true\" allowscriptaccess=\"always\"><\/embed><\/object><\/p>\n<p>Although I&#8217;ve done some study of fractals in the past, I have no idea on how to get the third dimension on a Mandelbrot set, to be honest&#8230;<br \/>\nBut the shading and texturing work give it so much atmosphere&#8230; It&#8217;s one of the most impressive videos I&#8217;ve ever seen on pure computer graphics&#8230;<\/p>\n<div id=\"tweetbutton107\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2010%2F09%2F29%2Fshadows-and-fractals%2F&amp;text=Shadows%20and%20Fractals&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2010%2F09%2F29%2Fshadows-and-fractals%2F\" class=\"twitter-share-button\"  style=\"width:55px;height:22px;background:transparent url('http:\/\/shadowcovenant.com\/blog\/wp-content\/plugins\/wp-tweet-button\/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;\">Tweet<\/a><\/div>","protected":false},"excerpt":{"rendered":"<p>Video of the first test of deferred rendering with a spotlight casting shadows, through use of a shadowmap with 256 by 256. This video was taken in debug mode, hence the speed (which is pretty impressive nevertheless). All light sources in this renderer can be shadowcasters or not, which will take different code paths in [&hellip;]<\/p>\n<div id=\"tweetbutton107\" class=\"tw_button\" style=\"\"><a href=\"http:\/\/twitter.com\/share?url=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2010%2F09%2F29%2Fshadows-and-fractals%2F&amp;text=Shadows%20and%20Fractals&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Fshadowcovenant.com%2Fblog%2F2010%2F09%2F29%2Fshadows-and-fractals%2F\" class=\"twitter-share-button\"  style=\"width:55px;height:22px;background:transparent url('http:\/\/shadowcovenant.com\/blog\/wp-content\/plugins\/wp-tweet-button\/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;\">Tweet<\/a><\/div>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[23,6],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","hentry","category-development","category-games"],"_links":{"self":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/comments?post=107"}],"version-history":[{"count":1,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":109,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/posts\/107\/revisions\/109"}],"wp:attachment":[{"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/media?parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/categories?post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shadowcovenant.com\/blog\/wp-json\/wp\/v2\/tags?post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}