{"id":63,"date":"2011-08-11T01:16:03","date_gmt":"2011-08-10T22:16:03","guid":{"rendered":"http:\/\/unitycoder.com\/blog\/?p=63"},"modified":"2011-08-11T01:16:52","modified_gmt":"2011-08-10T22:16:52","slug":"fractaltree-v1-0-2d","status":"publish","type":"post","link":"https:\/\/unitycoder.com\/blog\/2011\/08\/11\/fractaltree-v1-0-2d\/","title":{"rendered":"FractalTree v1.0 (2D)"},"content":{"rendered":"<p><a title=\"Open webplayer demo\" href=\"http:\/\/unitycoder.com\/upload\/demos\/mfractaltree1\/\" target=\"_blank\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"67\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2011\/08\/11\/fractaltree-v1-0-2d\/mfractaltree1\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1.jpg?fit=680%2C479&amp;ssl=1\" data-orig-size=\"680,479\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"mfractaltree1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1.jpg?fit=300%2C211&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1.jpg?fit=680%2C479&amp;ssl=1\" class=\"alignnone size-full wp-image-67\" title=\"mfractaltree1\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1.jpg?resize=680%2C479\" alt=\"\" width=\"680\" height=\"479\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1.jpg?resize=300%2C211&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/a><br \/>\n2D Fractaltrees using linerenderer.<\/p>\n<p>Converted Unity version from this source:<br \/>\n<a href=\"http:\/\/rosettacode.org\/wiki\/Fractal_tree#JavaScript\" target=\"_blank\">http:\/\/rosettacode.org\/wiki\/Fractal_tree#JavaScript<\/a><\/p>\n<p><strong>Webplayer:<\/strong><br \/>\n<a href=\"http:\/\/unitycoder.com\/upload\/demos\/mfractaltree1\/\" target=\"_blank\">http:\/\/unitycoder.com\/upload\/demos\/mfractaltree1\/<\/a><\/p>\n<p><strong>Source download:<\/strong><br \/>\n<a href=\"http:\/\/www.mediafire.com\/?eps34pa47ieklxx\" target=\"_blank\">http:\/\/www.mediafire.com\/?eps34pa47ieklxx<\/a><\/p>\n<p>Lots of room for optimisation, since now its using separate gameobject+linerenderer for each branch..<\/p>\n<p>Example images using different linerenderer materials (currently commented out in the source, you need to add your own materials)<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" title=\"mfractaltree1_d\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_d.jpg?resize=680%2C475\" alt=\"\" width=\"680\" height=\"475\" \/><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"65\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2011\/08\/11\/fractaltree-v1-0-2d\/mfractaltree1_c\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_c.jpg?fit=680%2C475&amp;ssl=1\" data-orig-size=\"680,475\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"mfractaltree1_c\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_c.jpg?fit=300%2C209&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_c.jpg?fit=680%2C475&amp;ssl=1\" class=\"alignnone size-full wp-image-65\" title=\"mfractaltree1_c\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_c.jpg?resize=680%2C475\" alt=\"\" width=\"680\" height=\"475\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_c.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_c.jpg?resize=300%2C209&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" data-attachment-id=\"66\" data-permalink=\"https:\/\/unitycoder.com\/blog\/2011\/08\/11\/fractaltree-v1-0-2d\/mfractaltree1_b\/\" data-orig-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_b.jpg?fit=680%2C475&amp;ssl=1\" data-orig-size=\"680,475\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;}\" data-image-title=\"mfractaltree1_b\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_b.jpg?fit=300%2C209&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_b.jpg?fit=680%2C475&amp;ssl=1\" class=\"alignnone size-full wp-image-66\" title=\"mfractaltree1_b\" src=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_b.jpg?resize=680%2C475\" alt=\"\" width=\"680\" height=\"475\" srcset=\"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_b.jpg?w=680&amp;ssl=1 680w, https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1_b.jpg?resize=300%2C209&amp;ssl=1 300w\" sizes=\"auto, (max-width: 680px) 100vw, 680px\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>2D Fractaltrees using linerenderer. Converted Unity version from this source: http:\/\/rosettacode.org\/wiki\/Fractal_tree#JavaScript Webplayer: http:\/\/unitycoder.com\/upload\/demos\/mfractaltree1\/ Source download: http:\/\/www.mediafire.com\/?eps34pa47ieklxx Lots of room for optimisation, since now its using separate gameobject+linerenderer for each branch.. Example images using different linerenderer materials (currently commented out in the source, you need to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":67,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[4,3],"tags":[16,18,17],"class_list":["post-63","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-demos","category-unity3d","tag-fractal","tag-javascript","tag-tree"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/unitycoder.com\/blog\/wp-content\/uploads\/2011\/08\/mfractaltree1.jpg?fit=680%2C479&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/p1KTaT-11","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/63","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/comments?post=63"}],"version-history":[{"count":3,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions"}],"predecessor-version":[{"id":70,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/posts\/63\/revisions\/70"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media\/67"}],"wp:attachment":[{"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/media?parent=63"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/categories?post=63"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unitycoder.com\/blog\/wp-json\/wp\/v2\/tags?post=63"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}