{"id":225,"date":"2015-09-19T00:36:41","date_gmt":"2015-09-19T00:36:41","guid":{"rendered":"http:\/\/fenstar.co\/wp\/?p=225"},"modified":"2015-09-19T00:36:41","modified_gmt":"2015-09-19T00:36:41","slug":"fun-with-gimp","status":"publish","type":"post","link":"https:\/\/fenstar.co\/wp\/?p=225","title":{"rendered":"Fun with GIMP"},"content":{"rendered":"<p>I&#8217;m a big fan of GIMP and Inkscape. I like the knowledge that they will always be there and that if the need arises, I can modify them. I have been interested in writing scrips, and also in generating textures. Below is an end result of a granite texture I generated using gimp and G&#8217;MIC.<\/p>\n<div id=\"attachment_226\" style=\"width: 522px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Granitey.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-226\" class=\"size-full wp-image-226\" src=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Granitey.png\" alt=\"I know you can't see it, but this is a really nice render of something that looks like granite.\" width=\"512\" height=\"512\" srcset=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Granitey.png 512w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Granitey-150x150.png 150w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Granitey-300x300.png 300w\" sizes=\"(max-width: 512px) 100vw, 512px\" \/><\/a><p id=\"caption-attachment-226\" class=\"wp-caption-text\">Why use a camera when you can get a similar result with a computer and a 5 hours of free time!<\/p><\/div>\n<p><!--more--><\/p>\n<p>The first part was figuring out how to generate some sort of starting texture. There didn&#8217;t seem to be a good way to generate blobs, but using some abomination of band-pass filters\u00a0of noise, Gaussian blurs, and thresholds I got something that kind of works.<\/p>\n<div id=\"attachment_227\" style=\"width: 610px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Gmic-script.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-227\" class=\"size-full wp-image-227\" src=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Gmic-script.png\" alt=\"Imagine a b&amp;w giraffe, that is basically what you see here. \" width=\"600\" height=\"500\" srcset=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Gmic-script.png 600w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Gmic-script-150x125.png 150w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Gmic-script-300x250.png 300w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Gmic-script-360x300.png 360w\" sizes=\"(max-width: 600px) 100vw, 600px\" \/><\/a><p id=\"caption-attachment-227\" class=\"wp-caption-text\">Totally blobular dude!<\/p><\/div>\n<p>Honestly, I have no idea what I am doing. I vaguely understand what I did and how the values change it, but I am basically just making it recompute until I find something that I like.<\/p>\n<p>After that it is just me messing around. I didn&#8217;t record what I did for the one at the intro, which is too bad because i spent something like three hours on it and don&#8217;t remember all of it. I show you how I made a new texture though.<\/p>\n<p>I take the layers from the output of the script and adjust the opacity so that I get some combination of what I want.\u00a0Then I add some noise and Gaussian blur (sort of a repeating pattern here. When in doubt, add noise and blur!)<\/p>\n<div id=\"attachment_228\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-1.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-228\" class=\"size-full wp-image-228\" src=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-1.png\" alt=\"Why are you reading this if you can't see the images?\" width=\"1024\" height=\"1024\" srcset=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-1.png 1024w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-1-150x150.png 150w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-1-300x300.png 300w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-228\" class=\"wp-caption-text\">Adjust opacity. Add noise. Blur. Copy what you did before you merge layers in case you want to go back.<\/p><\/div>\n<p>It sort of looks a bit like granite, but we can do better. Run the blob creating script again, and then enlarge it by 200%.<\/p>\n<div id=\"attachment_229\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-2.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-229\" class=\"size-full wp-image-229\" src=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-2.png\" alt=\"Larger b&amp;w giraffe. \" width=\"1024\" height=\"1024\" srcset=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-2.png 1024w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-2-150x150.png 150w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-2-300x300.png 300w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-229\" class=\"wp-caption-text\">I&#8217;m sure there is some way to make the blobs bigger in my script, but I got something that works and I don&#8217;t want to mess it up.<\/p><\/div>\n<p>Then we add some color and adjust the opacity! We may even add some noise and some blur! Play with the color balance! Adjust the brightness, contrast, hue and saturation. You know what you are doing as much as I do! And then we get something that actually doesn&#8217;t look that bad!<\/p>\n<div id=\"attachment_230\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-3.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-230\" class=\"size-full wp-image-230\" src=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-3.png\" alt=\"It almost looks real!\" width=\"1024\" height=\"1024\" srcset=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-3.png 1024w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-3-150x150.png 150w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-pt-3-300x300.png 300w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-230\" class=\"wp-caption-text\">It almost looks real!<\/p><\/div>\n<p>Most granite seems to have some natural color variation. I find generating some plasma and reducing it to basically a single hue, then adjusting the opacity helps it to look more real.<\/p>\n<div id=\"attachment_231\" style=\"width: 1034px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet.png\"><img loading=\"lazy\" decoding=\"async\" aria-describedby=\"caption-attachment-231\" class=\"size-full wp-image-231\" src=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet.png\" alt=\"And we are done! Yay!\" width=\"1024\" height=\"1024\" srcset=\"https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet.png 1024w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-150x150.png 150w, https:\/\/fenstar.co\/wp\/wp-content\/uploads\/2015\/09\/Newgranet-300x300.png 300w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/a><p id=\"caption-attachment-231\" class=\"wp-caption-text\">And we are done! Yay!<\/p><\/div>\n<p>Hopefully you like what you made, if not there seem to be countless resources online for textures. They also don&#8217;t require as much time to obtain, but where is the fun in that!<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m a big fan of GIMP and Inkscape. I like the knowledge that they will always be there and that if the need arises, I can modify them. I have been interested in writing scrips, and also in generating textures. &hellip; <a class=\"more-link\" href=\"https:\/\/fenstar.co\/wp\/?p=225\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[34,35],"_links":{"self":[{"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=\/wp\/v2\/posts\/225"}],"collection":[{"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=225"}],"version-history":[{"count":1,"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions"}],"predecessor-version":[{"id":232,"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=\/wp\/v2\/posts\/225\/revisions\/232"}],"wp:attachment":[{"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=225"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=225"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fenstar.co\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=225"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}