{"id":2199,"date":"2010-01-06T08:42:04","date_gmt":"2010-01-06T06:42:04","guid":{"rendered":"http:\/\/4eyes.code66.se\/?p=2199"},"modified":"2010-01-06T08:42:04","modified_gmt":"2010-01-06T06:42:04","slug":"filterforge-making-a-ruined-pavement-filter-part-two","status":"publish","type":"post","link":"http:\/\/4eyes.code66.se\/?p=2199","title":{"rendered":"FilterForge &#8211; making a ruined pavement filter, part two"},"content":{"rendered":"<p>Back to our pavement making. Today we will finish the pavement, and I think you will all like the results.<\/p>\n<p><!--more-->We go back to FilterForge and open up our filter Bad Pavements.<\/p>\n<p><em>The observant reader might notice that the Tiles doesn&#8217;t generate the same pattern as yesterday, thats because I&#8217;ve fiddled with the variation settings a little between snapshots, but the concept is still the same.<\/em><\/p>\n<p>To recap, I show the Tiles component again, with the new pattern so everything becomes more clear.<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-00.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2208\" title=\"bp1-00\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-00.jpg\" alt=\"\" width=\"211\" height=\"283\" \/><\/a><\/p>\n<p>First, we use a <strong>Threshold<\/strong> component, to put some stone texture on the result from the <strong>Tiles<\/strong> that are white.<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-01.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2206\" title=\"bp1-01\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-01.jpg\" alt=\"\" width=\"217\" height=\"159\" \/><\/a><\/p>\n<p>The <strong>Treshold<\/strong> component setup like this:<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-01a.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2207\" title=\"bp1-01a\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-01a.jpg\" alt=\"\" width=\"311\" height=\"160\" \/><\/a><\/p>\n<p>As you can see, we map transparent color where the low part (anything else than white) is.<\/p>\n<p>Now we drive the output from the <strong>Treshold<\/strong> component into a <strong>Get Alpha<\/strong> component, to get the Alpha channel, which we will use for the fun things we will do next.<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-02.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2205\" title=\"bp1-02\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-02.jpg\" alt=\"\" width=\"184\" height=\"143\" \/><\/a><\/p>\n<p>Now, we drive the output from the <strong>Get Alpha<\/strong> component into an <strong>Offset<\/strong> component, and we set that up with <strong>3<\/strong> as vertical and horizontal offset, and connect the <em>Percentage<\/em> input to an Integer Slider.<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-03.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2204\" title=\"bp1-03\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-03.jpg\" alt=\"\" width=\"309\" height=\"168\" \/><\/a><\/p>\n<p>Now we connect the output from the Offset component to a Blur component, doing a radius 5 gaussian blur.<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-04.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2203\" title=\"bp1-04\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-04.jpg\" alt=\"\" width=\"212\" height=\"145\" \/><\/a><\/p>\n<p>Now, we use a <strong>Blend<\/strong>, (<em>blend-1<\/em>) blend together the result from the <strong>Blur<\/strong> with the result from the <strong>Get Alpha<\/strong>, like this:<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-05.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2213\" title=\"bp1-05\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-05.jpg\" alt=\"\" width=\"222\" height=\"151\" \/><\/a><\/p>\n<p>We now use another <strong>Blend <\/strong>(<em>blend-2<\/em>), and blend together the output from the Threshold and the Mortar we made yesterday, like this:<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-06.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2212\" title=\"bp1-06\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-06.jpg\" alt=\"\" width=\"229\" height=\"148\" \/><\/a><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-06a.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2210\" title=\"bp1-06a\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-06a.jpg\" alt=\"\" width=\"313\" height=\"163\" \/><\/a><\/p>\n<p>The last operation we will do today, is to put back the alpha channel using the <strong>Set Alpha<\/strong> component. We set the Alpha on the result from <em>b<\/em><em>lend-2<\/em>, using the result from <em>blend-1<\/em> as the new Alpha channel.<\/p>\n<p><a href=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-07.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-2211\" title=\"bp1-07\" src=\"http:\/\/4eyes.code66.se\/wp-content\/uploads\/2009\/12\/bp1-07.jpg\" alt=\"\" width=\"230\" height=\"158\" \/><\/a><\/p>\n<p>As you can see, we have a bunch of tiles together, showing some mortar on the edges.<\/p>\n<p>Tomorrow, we will finalize this filter.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Back to our pavement making. Today we will finish the pavement, and I think you will all like the results.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[13],"class_list":["post-2199","post","type-post","status-publish","format-standard","hentry","category-mapmaking","tag-filterforge"],"_links":{"self":[{"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/posts\/2199","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2199"}],"version-history":[{"count":5,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/posts\/2199\/revisions"}],"predecessor-version":[{"id":2303,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=\/wp\/v2\/posts\/2199\/revisions\/2303"}],"wp:attachment":[{"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2199"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2199"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4eyes.code66.se\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2199"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}