{"id":29,"date":"2012-11-01T11:05:10","date_gmt":"2012-11-01T11:05:10","guid":{"rendered":"http:\/\/www.entropic.ch\/blog\/?page_id=29"},"modified":"2012-11-04T23:37:10","modified_gmt":"2012-11-04T23:37:10","slug":"fractals","status":"publish","type":"page","link":"https:\/\/www.entropic.ch\/blog\/fractals\/","title":{"rendered":"Fractals"},"content":{"rendered":"<p>I have written some code for rendering fractals (such as Julia or Mandelbrot) using <a href=\"http:\/\/www.povray.org\" target=\"_blank\">Povray<\/a>. Instead of separately rendering every single point, which makes the calculations very slow, I have implemented code that subdivides the image into sections that are calculated based on the information contained within them.<\/p>\n<p>The algorithm is iterative. It starts at a level with low resolution, refining the mesh specifically in those parts of the image, where underlying structure is found.\u00a0\u00a0 For instance, only a minimal number of points is calculated in the homogeneous convergent region of the fractal. Homogeneous regions are rendered as a single big box. Thereby, a significant amount of calculation and rendering time is saved.<\/p>\n<p>With povray, boxes or polygons are used to render the fractals. Thus, maximum resolution of the pictures is limited, since the number of objects gets very high at high resolutions. This <a title=\"Fractals via C++\" href=\"http:\/\/www.entropic.ch\/blog\/uncategorized\/fractals-via-c\/\">issue will be addressed<\/a> by implementing the code in C++, which should speed up things even more.<\/p>\n<p><code>\t\t\t\t<div class=\"gallery_box_single\">\n\t\t\t\t\t\t\t\t\t\t\t<div class=\"gallery clearfix\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gllr_image_row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gllr_image_block\">\n\t\t\t\t\t\t\t\t\t\t<p style=\"width:180px;height:140px;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a rel=\"gallery_fancybox\" href=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11110-1024x768.png\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"width:160px;height:120px; border-width: 10px; border-color:#F1F1F1\" alt=\"\" title=\"\" src=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11110-160x120.png\" rel=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11110.png\" \/>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\t\t\t\t<div style=\"width:180px; \" class=\"gllr_single_image_text\">&nbsp;<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gllr_image_block\">\n\t\t\t\t\t\t\t\t\t\t<p style=\"width:180px;height:140px;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a rel=\"gallery_fancybox\" href=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1039-1024x768.png\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"width:160px;height:120px; border-width: 10px; border-color:#F1F1F1\" alt=\"\" title=\"\" src=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1039-160x120.png\" rel=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1039.png\" \/>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\t\t\t\t<div style=\"width:180px; \" class=\"gllr_single_image_text\">&nbsp;<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gllr_image_block\">\n\t\t\t\t\t\t\t\t\t\t<p style=\"width:180px;height:140px;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a rel=\"gallery_fancybox\" href=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1124-1024x768.png\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"width:160px;height:120px; border-width: 10px; border-color:#F1F1F1\" alt=\"\" title=\"\" src=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1124-160x120.png\" rel=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1124.png\" \/>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\t\t\t\t<div style=\"width:180px; \" class=\"gllr_single_image_text\">&nbsp;<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gllr_image_row\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gllr_image_block\">\n\t\t\t\t\t\t\t\t\t\t<p style=\"width:180px;height:140px;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a rel=\"gallery_fancybox\" href=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1140-1024x768.png\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"width:160px;height:120px; border-width: 10px; border-color:#F1F1F1\" alt=\"\" title=\"\" src=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1140-160x120.png\" rel=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid1140.png\" \/>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\t\t\t\t<div style=\"width:180px; \" class=\"gllr_single_image_text\">&nbsp;<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gllr_image_block\">\n\t\t\t\t\t\t\t\t\t\t<p style=\"width:180px;height:140px;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a rel=\"gallery_fancybox\" href=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11111-1024x768.png\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"width:160px;height:120px; border-width: 10px; border-color:#F1F1F1\" alt=\"\" title=\"\" src=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11111-160x120.png\" rel=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11111.png\" \/>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\t\t\t\t<div style=\"width:180px; \" class=\"gllr_single_image_text\">&nbsp;<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<div class=\"gllr_image_block\">\n\t\t\t\t\t\t\t\t\t\t<p style=\"width:180px;height:140px;\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<a rel=\"gallery_fancybox\" href=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11108-1024x768.png\" title=\"\">\n\t\t\t\t\t\t\t\t\t\t\t\t<img style=\"width:160px;height:120px; border-width: 10px; border-color:#F1F1F1\" alt=\"\" title=\"\" src=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11108-160x120.png\" rel=\"https:\/\/www.entropic.ch\/blog\/wp-content\/uploads\/2012\/11\/grid11108.png\" \/>\n\t\t\t\t\t\t\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/p>\n\t\t\t\t\t\t\t\t\t\t<div style=\"width:180px; \" class=\"gllr_single_image_text\">&nbsp;<\/div>\n\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t\t<div class=\"clear\"><\/div>\n\t\t\t\t\t\t\t<script type=\"text\/javascript\">\n\t\t(function($){\n\t\t\t$(document).ready(function(){\n\t\t\t\t$(\"a[rel=gallery_fancybox]\").fancybox({\n\t\t\t\t\t'transitionIn'\t\t: 'elastic',\n\t\t\t\t\t'transitionOut'\t\t: 'elastic',\n\t\t\t\t\t'titlePosition' \t: 'inside',\n\t\t\t\t\t'speedIn'\t\t\t\t\t:\t500, \n\t\t\t\t\t'speedOut'\t\t\t\t:\t300,\n\t\t\t\t\t'titleFormat'\t\t\t: function(title, currentArray, currentIndex, currentOpts) {\n\t\t\t\t\t\treturn '<span id=\"fancybox-title-inside\">' + (title.length ? title + '<br \/>' : '') + 'Image ' + (currentIndex + 1) + ' \/ ' + currentArray.length + '<\/span><br \/><a href=\"'+$(currentOpts.orig).attr('rel')+'\" target=\"_blank\">Download High resolution image <\/a>';\n\t\t\t\t\t}\t\t\t\t});\n\t\t\t});\n\t\t})(jQuery);\n\t\t<\/script>\n\t<\/code><\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have written some code for rendering fractals (such as Julia or Mandelbrot) using Povray. Instead of separately rendering every single point, which makes the calculations very slow, I have implemented code that subdivides the image into sections that are &hellip; <a href=\"https:\/\/www.entropic.ch\/blog\/gallery\/fractals-2\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"open","ping_status":"open","template":"","meta":[],"_links":{"self":[{"href":"https:\/\/www.entropic.ch\/blog\/wp-json\/wp\/v2\/pages\/29"}],"collection":[{"href":"https:\/\/www.entropic.ch\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.entropic.ch\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.entropic.ch\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.entropic.ch\/blog\/wp-json\/wp\/v2\/comments?post=29"}],"version-history":[{"count":11,"href":"https:\/\/www.entropic.ch\/blog\/wp-json\/wp\/v2\/pages\/29\/revisions"}],"predecessor-version":[{"id":31,"href":"https:\/\/www.entropic.ch\/blog\/wp-json\/wp\/v2\/pages\/29\/revisions\/31"}],"wp:attachment":[{"href":"https:\/\/www.entropic.ch\/blog\/wp-json\/wp\/v2\/media?parent=29"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}