<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Syntopia &#187; Mandelbulb</title>
	<atom:link href="http://blog.hvidtfeldts.net/index.php/category/mandelbulb/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.hvidtfeldts.net</link>
	<description>Art + Culture + Technology</description>
	<lastBuildDate>Tue, 01 Jun 2010 04:59:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Folding Space II: Kaleidoscopic Fractals</title>
		<link>http://blog.hvidtfeldts.net/index.php/2010/06/folding-space-ii-kaleidoscopic-fractals/</link>
		<comments>http://blog.hvidtfeldts.net/index.php/2010/06/folding-space-ii-kaleidoscopic-fractals/#comments</comments>
		<pubDate>Tue, 01 Jun 2010 04:40:41 +0000</pubDate>
		<dc:creator>Mikael Christensen</dc:creator>
				<category><![CDATA[Fractals]]></category>
		<category><![CDATA[GPU]]></category>
		<category><![CDATA[Kaleidoscopic IFS]]></category>
		<category><![CDATA[Mandelbulb]]></category>

		<guid isPermaLink="false">http://blog.hvidtfeldts.net/?p=524</guid>
		<description><![CDATA[Another type of interesting 3D fractal has appeared over at fractalforums.com: the Kaleidoscopic 3D fractals, introduced in this thread, by Knighty.
Once again these fractals are defined by investing the convergence properties of a simple function. And similar to the Mandelbox, the function is built around the concept of folds. Geometrically, a fold is simply a [...]]]></description>
			<content:encoded><![CDATA[<p>Another type of interesting 3D fractal has appeared over at fractalforums.com: the Kaleidoscopic 3D fractals, introduced in <a href="http://www.fractalforums.com/3d-fractal-generation/kaleidoscopic-%28escape-time-ifs%29/">this thread</a>, by Knighty.</p>
<p>Once again these fractals are defined by investing the convergence properties of a simple function. And similar to the Mandelbox, the function is built around the concept of folds. Geometrically, a fold is simply a conditional reflection: you reflect a point in a plane, if it is located on the wrong side of the plane.</p>
<p>It turns out that just by using plane-folds and scaling, it is possible to create classic 3D fractals, such as the Menger cube and the Sierpinsky tetrahedron, and even recursive versions of the rest of the <a href="http://en.wikipedia.org/wiki/Platonic_solid">Platonic solids</a>: the octahedron, the dodecahedron, and the icosahedron.</p>
<p><img src="http://blog.hvidtfeldts.net/media/dodeca.png" /><br />
<i>Example of a recursive dodecahedron</i></p>
<p>The kaleidoscopic fractals introduce an additional 3D rotation before and after the folds. It turns out that these perturbations introduce a rich variety of interesting and complex structures.</p>
<p>I&#8217;ve followed the thread and implemented most of the proposed systems by modifying Subblue&#8217;s <a href="http://www.subblue.com/projects/mandelbulb">Pixel Bender scripts</a>. </p>
<p>Below are some of my images: </p>
<h2>The Menger Sponge</h2>
<p>My first attempts. Pixel Bender kept crashing on me, until I realized that there is a GPU timeout in Windows Vista (read <a href="http://www.flickr.com/photos/syntopia/4575335808/in/photostream">this</a> for a solution).</p>
<p><a href="http://www.flickr.com/photos/syntopia/4581686367/"><img src="http://blog.hvidtfeldts.net/media/mengers1.png" /></a><a href="http://www.flickr.com/photos/syntopia/4581685939/"><img src="http://blog.hvidtfeldts.net/media/mengers2.png" /></a><br />
<a href="http://www.flickr.com/photos/syntopia/4575335808/in/photostream/"><img src="http://blog.hvidtfeldts.net/media/mengers3.png" /></a></p>
<h2>The Sierpinsky</h2>
<p>Then I moved on to the Sierpinsky. The sequence below shows something characteristic for these fractals: the first slightly perturbed variations look artificial and synthetic, but when the system is distorted, it becomes organic and alive.</p>
<p><a href="http://www.flickr.com/photos/syntopia/4601559959/in/photostream/"><img src="http://blog.hvidtfeldts.net/media/sier1s.png" /></a><a href="http://www.flickr.com/photos/syntopia/4601558439/in/photostream/"><img src="http://blog.hvidtfeldts.net/media/sier2s.png" /></a><br />
<a href="http://www.flickr.com/photos/syntopia/4601554859/in/photostream/"><img src="http://blog.hvidtfeldts.net/media/sier3s.png" /></a><a href="http://www.flickr.com/photos/syntopia/4601553411/in/photostream/"><img src="http://blog.hvidtfeldts.net/media/sier4s.png" /></a><br />
<a href="http://www.flickr.com/photos/syntopia/4602166152/in/photostream/"><img src="http://blog.hvidtfeldts.net/media/sier5s.png" /></a></p>
<h2>The Icosahedron</h2>
<p>I also tried the octahedron and dodecahedron, but my favorite is the icosahedron. Especially knighty&#8217;s hollow variant.</p>
<p><a href="http://www.flickr.com/photos/syntopia/4621378803/"><img src="http://blog.hvidtfeldts.net/media/i1.png" /></a><a href="http://www.flickr.com/photos/syntopia/4621983786/"><img src="http://blog.hvidtfeldts.net/media/i2.png" /></a><br />
<a href="http://www.flickr.com/photos/syntopia/4621973610/"><img src="http://blog.hvidtfeldts.net/media/i3.png" /></a><a href="http://www.flickr.com/photos/syntopia/4621977652/"><img src="http://blog.hvidtfeldts.net/media/i4.png" /></a><br />
<a href="http://www.flickr.com/photos/syntopia/4621376379"><img src="http://blog.hvidtfeldts.net/media/i5.png" /></a><br />
<a href="http://www.flickr.com/photos/syntopia/4621376379/"><img src="http://blog.hvidtfeldts.net/media/i6.png" /></a></p>
<h2>Arbitrary Planes</h2>
<p>One nice thing about these systems is, that you do not necessarily need to derive a complex distance estimator &#8211; you can also just modify the distance estimator code, and see what happens. These last two images were constructed by modifying existing distance estimators. </p>
<p><a href="http://www.flickr.com/photos/syntopia/4627146718/in/photostream/"><img src="http://blog.hvidtfeldts.net/media/arb1.png" /></a></p>
<p><a href="http://www.flickr.com/photos/syntopia/4626531029/in/photostream/"><img src="http://blog.hvidtfeldts.net/media/arb2.png" /></a></p>
<p>It will be interesting to see where this is going. </p>
<p>Many fascinating 3D fractals have appeared at fractalforums.com over the last few weeks. And GPU processing now makes it is possible to explore these systems in real-time. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hvidtfeldts.net/index.php/2010/06/folding-space-ii-kaleidoscopic-fractals/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>A Few Links</title>
		<link>http://blog.hvidtfeldts.net/index.php/2010/05/a-few-links/</link>
		<comments>http://blog.hvidtfeldts.net/index.php/2010/05/a-few-links/#comments</comments>
		<pubDate>Wed, 05 May 2010 21:12:49 +0000</pubDate>
		<dc:creator>Mikael Christensen</dc:creator>
				<category><![CDATA[Generative Art]]></category>
		<category><![CDATA[Mandelbulb]]></category>
		<category><![CDATA[Mathematical Art]]></category>

		<guid isPermaLink="false">http://blog.hvidtfeldts.net/?p=487</guid>
		<description><![CDATA[&#8230;some old, some new.
The Demoscene
It was only a matter of time, before a Mandelbox would show up on the Demoscene:

Hochenergiephysik by Still is a 4K demo, featuring the Mandelbox. If 4KB sounds bloated, Still has also created a 1K demo: Futurism by Still.
And while we are at it, may I suggest these as well: The [...]]]></description>
			<content:encoded><![CDATA[<p>&#8230;some old, some new.</p>
<h2>The Demoscene</h2>
<p>It was only a matter of time, before a Mandelbox would show up on the Demoscene:</p>
<p><a href="http://www.pouet.net/prod.php?which=54917&#038;howmanycomments=-1"><img src="http://blog.hvidtfeldts.net/media/hoch.jpg" /></a></p>
<p><a href="http://www.pouet.net/prod.php?which=54917&#038;howmanycomments=-1">Hochenergiephysik</a> by Still is a 4K demo, featuring the Mandelbox. If 4KB sounds bloated, Still has also created a 1K demo: <a href="http://pouet.net/prod.php?which=54812">Futurism</a> by Still.</p>
<p>And while we are at it, may I suggest these as well: <a href="http://www.youtube.com/watch?v=lG-g1l0FtDM&#038;feature=channel">The Cube</a> by Farbrausch, <a href="http://www.youtube.com/watch?v=k_oTQd93eRI">Rove</a> by Farbraush, and <a href="http://www.youtube.com/watch?v=ON4N0yGz4n8">Agenda Circling Forth</a> by Fairlight &#038; Cncd.</p>
<h2>New software</h2>
<p>NodeBox 2.0 is out in a <a href="http://beta.nodebox.net/">beta version</a>. The big news is that it is now available for Windows. It also sports a graph-based GUI for patching nodes together.</p>
<p><a href="http://news.deviantart.com/article/105035/">Tacitus</a> is a GUI for creating per-pixel GPU effects. In concept it is similar to Pixel Bender. It has a very nice look and feel, but a big short-coming is that it is not possible to directly edit the GPU scripts in the GUI &#8211; you have to compile your script to a plugin via an included compiler. Another feature I miss, is the ability to directly navigate the camera using the mouse on the viewport, instead of using sliders (something Pixel Bender also doesn&#8217;t support). But Tacitus is still in beta, and it will be interesting to see where it is going. It comes with a single plugin, a port of Subblue&#8217;s Mandelbulb Pixel Bender plugin. Tacitus is Windows only.</p>
<p><a href="http://www.neuro-systems.net/documents/substance.html"><img src="http://blog.hvidtfeldts.net/media/substance.jpg" /></a></p>
<p>NeuroSystems <a href="http://www.neuro-systems.net/documents/substance.html">Substance</a> is an &#8216;Evolutionary and Organic Art Creator&#8217;. Some interesting concepts here, including a real-time global illumination raytracer (video <a href="http://www.youtube.com/watch?v=PA7bqh3hTwc&#038;feature=player_embedded">here</a>). Unfortunately, the raytracer is not part of the free viewer. Surprisingly, NeuroSystems impressive visualization technology seems to originate from <a href="http://www.neuro-systems.net/documents/simplant.html">SIMPLANT</a>, a real-time 3D breast implant simulator. Substance is Windows only, and the full (non-free) versions should be released very soon.</p>
<h2>Gifts for Geeks</h2>
<p><a href="http://scientificsonline.com/product.asp_Q_pn_E_3151544"><img src="http://blog.hvidtfeldts.net/media/calabi.jpg" /></a></p>
<p>A <a href="http://scientificsonline.com/product.asp_Q_pn_E_3151544">Calabi-Yau Manifold Crystal</a> sculpture.</p>
<p><center><a href="http://www.gomboc-shop.com/"><img src="http://blog.hvidtfeldts.net/media/gomboc.jpg" /></a></center><br />
<br />
A <a href="http://www.gomboc-shop.com/">Gömböc</a>. &#8220;The &#8216;Gömböc&#8217; is the first known homogenous object with one stable and one unstable equilibrium point, thus two equilibria altogether on a horizontal surface. It can be proven that no object with less than two equilibria exists.&#8221;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hvidtfeldts.net/index.php/2010/05/a-few-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The Reality of Fractals</title>
		<link>http://blog.hvidtfeldts.net/index.php/2010/04/the-reality-of-fractals/</link>
		<comments>http://blog.hvidtfeldts.net/index.php/2010/04/the-reality-of-fractals/#comments</comments>
		<pubDate>Fri, 23 Apr 2010 20:49:02 +0000</pubDate>
		<dc:creator>Mikael Christensen</dc:creator>
				<category><![CDATA[Fractals]]></category>
		<category><![CDATA[Generative Art]]></category>
		<category><![CDATA[Mandelbulb]]></category>
		<category><![CDATA[Mathematical Art]]></category>

		<guid isPermaLink="false">http://blog.hvidtfeldts.net/?p=430</guid>
		<description><![CDATA[&#8220;&#8230; no one, not even Benoit Mandelbrot himself [...] had any real preconception of the set&#8217;s extraordinary richness. The Mandelbrot set was certainly no invention of any human mind. The set is just objectively there in the mathematics itself. If it has meaning to assign an actual existence to the Mandelbrot set, then that existence [...]]]></description>
			<content:encoded><![CDATA[<blockquote><p><i>&#8220;&#8230; no one, not even Benoit Mandelbrot himself [...] had any real preconception of the set&#8217;s extraordinary richness. The Mandelbrot set was certainly no invention of any human mind. The set is just objectively there in the mathematics itself. If it has meaning to assign an actual existence to the Mandelbrot set, then that existence is not within our mind, for no one can fully comprehend the set&#8217;s endless variety and unlimited complication.&#8221;</i></p>
<p>Roger Penrose (from The Road to Reality)
</p></blockquote>
<p>The recent proliferation of 3D fractals, in particular the Mandelbox and <a href="/index.php/category/mandelbulb/index.php/category/mandelbulb/">Mandelbulb</a>, got me thinking about the reality of these systems. The million dollar question is whether we <i>discover</i> or <i>construct</i> these entities. Surely these systems give the impression of exploring uncharted territory, perhaps even looking into another world. But the same can be said for many traditional man-made works of art.</p>
<p>I started out by citing Roger Penrose. He is a mathematical Platonist, and believes that both the fractals worlds (such as the Mandelbrot set) and the mathematical truths (such as Fermat&#8217;s last theorem) are discovered. In his view, the mathematical truths have an eternal, unchanging, objective existence in some kind of Platonic ideal world, independent of human observers. </p>
<p>In Penrose&#8217;s model, there are three distinct worlds: the physical world, the mental world (our perception of the physical world), and the cryptic Platonic world. Even Penrose himself admits that the connections and interactions between these worlds are mysterious. And personally I cannot see any kind of evidence pointing in favor of this third, metaphysical world.</p>
<p><a href="http://makinmagic.deviantart.com/art/Designer-World-158071809"><img src="http://blog.hvidtfeldts.net/media/makin.png" /></a><br />
<a href="http://makinmagic.deviantart.com/art/Designer-World-158071809">Designer World</a> by David Makin</p>
<p>Roger Penrose is a highly renowned mathematician and physicist, and I value his opinions and works highly. In fact, it was one of his earlier books, The Emperors New Mind, that in part motivated me to become a physicist myself. But even though he is probably one of the most talented mathematicians living today, I am not convinced by his Platonist belief. </p>
<p>Personally, I subscribe to the less exotic <i>formalist</i> view: that the mathematical truths are the theorems we can derive by applying a set of deduction rules to a set of mathematical axioms. The axioms are not completely arbitrary, though. For instance, a classic mathematical discipline, such as Euclidean geometry, was clearly motivated by empirical observations of the physical world. The same does not necessarily apply to modern mathematical areas. For instance, Lobachevsky&#8217;s non-Euclidean geometry, was conceived by exploring the consequences of modifying one of Euclid&#8217;s fundamental postulates (interestingly non-Euclidean geometry later turned out to be useful in describing the physical world through Einstein&#8217;s general theory of relativity). </p>
<p>But if modern mathematics has become detached from its empirical roots, what governs the evolution of modern mathematics? Are all formal systems thus equally interesting to study? My guess is that most mathematicians gain some kind of intuition about what directions to pursue, based on a mixture of trends, historical research, and feedback from applied mathematics.</p>
<p><a href="http://krzysztofmarczak.deviantart.com/art/Mandelballs-160925525"><img src="http://blog.hvidtfeldts.net/media/mandelballs.png" /></a><br />
<a href="http://krzysztofmarczak.deviantart.com/art/Mandelballs-160925525">Mandelballs </a> by Krzysztof Marczak [Mandelbox / Juliabulb mix]</p>
<p>Does my formalist position mean that I consider the Mandelbrot set to be a man-made creation, in the same category as a Picasso painting or a Bach concert? Not exactly. Because I do believe in a <i>physical</i> realism (in the sense that I believe in a objective, physical world independent of human existence), and since I do believe some parts of mathematics is inspired by this physical world and tries to model it, I believe some parts of mathematics can be attributed an objective status as well. But it is a weaker kind of objective existence: the mathematical models and structures used to describe reality are not persistent and ever-lasting, instead they may be refined and altered, as we progressively create models with greater predictive power. And I think this is the reason fractals often resemble natural structures and phenomena: because the mathematics used to produce the fractals was inspired by nature in the first place. Let me give another example:</p>
<p><a href="http://www.fractalforums.com/index.php?action=gallery;sa=view;id=1626"><img src="http://blog.hvidtfeldts.net/media/eggs.png" /></a><br />
<a href="http://www.fractalforums.com/index.php?action=gallery;sa=view;id=1626">Teeth</a> by Jesse</p>
<p>Would a distant alien civilization come up with the same Mandelbrot images as we see? I think it is very likely. Any advanced civilization studying nature, would most likely have created models such as the natural numbers, the real numbers, and eventually the complex numbers. The complex numbers are extremely useful when modeling many physical phenomena, such as waves or electrodynamics, and complex numbers are essential in the description of quantum mechanics. And if this hypothetical civilization had computational power available, eventually someone would investigate the convergence of a simple, iterated system like  <b>z = z<sup>2</sup> + c</b>. So there would probably be a lot of overlapping mathematical structures. But there would also be differences: for instance the construction of the slightly more complex Mandelbox set contains several human-made design decisions, making it less likely to be invented by our distant civilization.  </p>
<p>I think there is a connection to other areas of generative art as well. In the opening quote Penrose claims that no-one could have any real preconception of the Mandelbrot sets extraordinary richness. And the same applies to many generative systems: they are impossible to predict and often surprisingly complex and detailed. But this does not imply that they have a meta-physical Platonic origin. Many biological and physical systems share the same properties. And many of the most interesting generative systems are inspired by these physical or biological systems (for instance using models such as genetic algorithms, flocking behavior, cellular automata, reaction-diffusion systems, and L-systems). </p>
<p>Another point to consider is, that creating beautiful and interesting fractal images as the ones above, requires much more than a simple formula. It requires aesthetic intuition and skills to choose a proper palette, find an interesting camera location, and it takes many hours of formula parameter tweaking. I know this from my experiments with 3D fractals &#8211; I&#8217;m very rarely satisfied with my own results. </p>
<p>But to sum it all up: Even though fractals (and generative systems) may posses endless variety and unlimited complication, there is no need to call upon metaphysical worlds in order to explain them.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hvidtfeldts.net/index.php/2010/04/the-reality-of-fractals/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Folding Space: The Mandelbox Fractal</title>
		<link>http://blog.hvidtfeldts.net/index.php/2010/04/folding-space-the-mandelbox-fractal/</link>
		<comments>http://blog.hvidtfeldts.net/index.php/2010/04/folding-space-the-mandelbox-fractal/#comments</comments>
		<pubDate>Sat, 03 Apr 2010 20:43:13 +0000</pubDate>
		<dc:creator>Mikael Christensen</dc:creator>
				<category><![CDATA[Fractals]]></category>
		<category><![CDATA[Mandelbulb]]></category>

		<guid isPermaLink="false">http://blog.hvidtfeldts.net/?p=393</guid>
		<description><![CDATA[Over at fractalforums.com another interesting 3D fractal has emerged: the Mandelbox. 
It originates from this thread, where it was introduced by Tglad (Tom Lowe). Similar to the original Mandelbrot set, an iterative function is applied to points in 3D space, and points which do not diverge are part of the set. The iterated function used [...]]]></description>
			<content:encoded><![CDATA[<p>Over at fractalforums.com another interesting 3D fractal has emerged: the Mandelbox. </p>
<p>It originates from <a href="http://www.fractalforums.com/3d-fractal-generation/amazing-fractal/">this thread</a>, where it was introduced by Tglad (Tom Lowe). Similar to the original Mandelbrot set, an iterative function is applied to points in 3D space, and points which do not diverge are part of the set. The iterated function used for the Mandelbox set has a nice geometric interpretation: it corresponds to repeated <a href="http://sites.google.com/site/mandelbox/what-is-a-mandelbox">folding operations</a>.</p>
<p>In contrast to the organic presence of the <a href="/index.php/category/mandelbulb/">Mandelbulbs</a>, the Mandelbox has a very architectural and structural feel to it:</p>
<p><a href="http://sites.google.com/site/mandelbox/home/interior"><br />
<img src="http://blog.hvidtfeldts.net/media/mandelbox1.jpg" /></a></p>
<p>The Mandelbox probably owes it name to the cubic and square patterns that emerge at many levels: </p>
<p><a href="http://sites.google.com/site/mandelbox/negative-mandelbox"><br />
<img src="http://blog.hvidtfeldts.net/media/mandelbox2.jpg" /></a></p>
<p>It is also possible to create Julia Set variations:</p>
<p><a href="http://www.fractalforums.com/index.php?action=gallery;sa=view;id=1799"><img src="http://blog.hvidtfeldts.net/media/mandelbox3.jpg" /></a><br />
<i><a href="http://www.fractalforums.com/index.php?action=gallery;sa=view;id=1799">Juliabox</a> by &#8216;Jesse&#8217; (click to see the large version of this fantastic image!) </i></p>
<p>Be sure to check out Tom Lowe&#8217;s <a href="http://sites.google.com/site/mandelbox/home">Mandelbox site</a> for more pictures and some technical background information, including links to a few (Windows only) software implementations.</p>
<p>I tried out the Ultra Fractal extension myself. This was my first encounter with Ultra Fractal, and it took me quite some time to figure out how to setup a Mandelbox render. For others, the following steps may help:</p>
<ol>
<li>Install Ultra Fractal (there is a <a href="http://www.ultrafractal.com/download/index.php">free trial version</a>).
<li>Choose &#8216;Options | Update Public Formulas&#8230;&#8217; to get some needed dependencies.
<li>Install David Makin&#8217;s <a href="http://www.fractalforums.com/mandelbulb-implementation/update-to-the-mmf-wip-formula-for-ultra-fractal/">MMFwip3D</a> package and install it into the Ultra Fractal formula folder &#8211; it is most likely located at &#8220;%userprofile%\Documents\Ultra Fractal 5\Formulas&#8221;.
<li>In principle, this is all you need. But the MMFwip3D formulas contain a <i>vast</i> number of parameters and settings. To get started try using some existing parameter set:  <a href="http://sites.google.com/site/mandelbox/parameter-settings/">this</a> is a good starting point. In order to use these settings, simply select the text, copy it into the clipboard, and paste it into an Ultra Fractal fractal window.
</ol>
<p>The CPU-based implementations are somewhat slow, taking minutes to render even small images &#8211; but it probably won&#8217;t be long before a GPU-accelerated version appear: Subblue has already posted <a href="http://www.flickr.com/photos/subblue/4479448043/">images</a> of a PixelBender implementation in progress. </p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hvidtfeldts.net/index.php/2010/04/folding-space-the-mandelbox-fractal/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Shader Toy</title>
		<link>http://blog.hvidtfeldts.net/index.php/2010/02/shader-toy/</link>
		<comments>http://blog.hvidtfeldts.net/index.php/2010/02/shader-toy/#comments</comments>
		<pubDate>Wed, 10 Feb 2010 21:39:47 +0000</pubDate>
		<dc:creator>Mikael Christensen</dc:creator>
				<category><![CDATA[GPU]]></category>
		<category><![CDATA[Generative Art]]></category>
		<category><![CDATA[Mandelbulb]]></category>
		<category><![CDATA[WebGL]]></category>

		<guid isPermaLink="false">http://blog.hvidtfeldts.net/?p=343</guid>
		<description><![CDATA[For some time I&#8217;ve been wanting to play around with pixel (fragment) shaders, but I couldn&#8217;t find a proper playground.
Then I stumbled upon Shader Toy, by Inigo Quilez (whom I&#8217;ve mentioned several times on this blog). A couple of things make Shader Toy stand out:

It runs inside your browser. It uses the emerging WebGL standard, [...]]]></description>
			<content:encoded><![CDATA[<p>For some time I&#8217;ve been wanting to play around with pixel (fragment) shaders, but I couldn&#8217;t find a proper playground.</p>
<p>Then I stumbled upon <a href="http://www.iquilezles.org/apps/shadertoy/">Shader Toy</a>, by Inigo Quilez (whom I&#8217;ve mentioned <a href="http://blog.hvidtfeldts.net/?s=inigo">several times</a> on this blog). A couple of things make Shader Toy stand out:</p>
<p><img src="/media/st1.jpg" /></p>
<p><i>It runs inside your browser</i>. It uses the emerging <a href="http://en.wikipedia.org/wiki/WebGL">WebGL</a> standard, which is JavaScript bindings for OpenGL (ES) 2.0. OpenGL can be used directly inside a Canvas HTML element, including support for custom shaders. As Shader Toy demonstrates, this makes it possible to do some very impressive stuff, such as real-time GPU-accelerated raytracing inside an element on a web page. </p>
<p><img src="/media/st2.jpg" /></p>
<p><i>The examples are great</i>. While Shader Toy itself is mostly a thin wrapper around the WebGL functionality, the great thing about it is the example shaders: 2D fractals and Demo Scene effects, but also complex examples like the <a href="http://blog.hvidtfeldts.net/index.php/2008/08/generative-art-in-4kb/">Slisesix</a> 4K demo, and examples of raytracing, and complex fractals, like the Quaternion Julia set, and the Mandelbulb.</p>
<p>The only problem with WebGL is, that it is not supported by the current generation of browsers. </p>
<p>The good news is that the nightly builds of Firefox, Safari (WebKit), and Chromium (Google Chrome) all support it, and are quite easy to install: <a href="http://www.khronos.org/webgl/wiki/Getting_a_WebGL_Implementation">this</a> is a good place for more information. If you use the Chromium builds, you don&#8217;t have to worry about messing up your existing browser configuration &#8211; the nightly builds are standalone versions and can be run without installation.</p>
<p>There are lots of complex shader tools out there: for instance, NVIDIAs <a href="http://developer.nvidia.com/object/fx_composer_home.html">FX Composer</a>, AMDs <a href="http://developer.amd.com/GPU/RENDERMONKEY/Pages/default.aspx">Rendermonkey</a>, TyphoonLabs OpenGL <a hreg="http://www.opengl.org/sdk/tools/ShaderDesigner/">Shader Designer</a>, and <a href="http://lumina.sourceforge.net/">Lumina</a>, but Shader Toy makes it very easy to get started with shaders. And it provides a rare insight into how those amazing 4K demos were made.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hvidtfeldts.net/index.php/2010/02/shader-toy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mandelbulb Implementations</title>
		<link>http://blog.hvidtfeldts.net/index.php/2009/12/mandelbulb-implementations/</link>
		<comments>http://blog.hvidtfeldts.net/index.php/2009/12/mandelbulb-implementations/#comments</comments>
		<pubDate>Wed, 23 Dec 2009 21:56:14 +0000</pubDate>
		<dc:creator>Mikael Christensen</dc:creator>
				<category><![CDATA[Fractals]]></category>
		<category><![CDATA[GPU]]></category>
		<category><![CDATA[Mandelbulb]]></category>

		<guid isPermaLink="false">http://blog.hvidtfeldts.net/?p=199</guid>
		<description><![CDATA[Several implementations have appeared since the Mandelbulb surfaced a couple of months ago.
The first public GPU implementation I know of was created by &#8216;cbuchner1&#8242;. It is based on a sample from NVIDIAs OptiX SDK, and features anaglyphic 3D, ambient occlusion, phong shading, reflection, and environment maps. It can be downloaded here (Windows only and requires [...]]]></description>
			<content:encoded><![CDATA[<p>Several implementations have appeared since the <a href="http://blog.hvidtfeldts.net/index.php/2009/11/mandelbulb/">Mandelbulb</a> surfaced a couple of months ago.</p>
<p>The first public GPU implementation I know of was created by &#8216;cbuchner1&#8242;. It is based on a sample from NVIDIAs <a href="http://developer.nvidia.com/object/optix-home.html">OptiX SDK</a>, and features anaglyphic 3D, ambient occlusion, phong shading, reflection, and environment maps. It can be <a href="http://forums.nvidia.com/index.php?showtopic=150985&#038;st=20">downloaded here</a> (Windows only and requires a forum signup).</p>
<p><img src="/media/mandel3.jpg" /><br />
<i>Example made with cbuchner1&#8217;s implementation</i></p>
<p>Very interestingly this binary runs on my laptops modest GeForce 8400M. I am a bit puzzled about this &#8211; NVIDIA state that the OptiX SDK requires a Quadro or a Tesla card, and I am not able to run the <a href="http://developer.nvidia.com/object/optix-examples.html">Julia</a> OptiX demo, that cbuchner1s app is derived from. </p>
<p>Subblue has also created a <a href="http://www.subblue.com/blog/2009/12/13/mandelbulb">Mandelbulb implementation</a>, released as a Pixel Bender script and a Quartz composer plugin. A number of interesting customizations makes this my favorite choice: it is possible to explore negative and fractional powers, switch to Julia sets, and the lightning options can be fine-tuned. The only drawback is that Pixel Bender does not make it possible to directly rotate, zoom, and translate the camera &#8211; you have to rely on sliders for that. </p>
<p><a href="http://www.flickr.com/photos/subblue/4148811390/"><img src="/media/mandelbulb2.jpg" /></a><br />
<i>Example created by Subblue.</i></p>
<p><a href="http://iquilezles.org/">Iñigo Quílez</a> has also created a GPU implementation, but unfortunately he has not released any code yet. A couple of videos are available on Youtube, though: <a href="http://www.youtube.com/watch?v=erS6SKqtXLY&#038;feature=related">Part 1</a>, <a href="http://www.youtube.com/watch?v=eKUh4nkmQbc">Part 2</a>, <a href="http://www.youtube.com/watch?v=iWr5kSZQ7jk&#038;feature=related">Part 3</a>. </p>
<p><img src="/media/turin2.jpg" /><br />
<i>Quilez also discovered this intimate <a href="http://www.fractalforums.com/3d-fractal-generation/true-3d-mandlebrot-type-fractal/msg8658/#msg8658">connection</a> between the Shroud of Turin and the Mandelbulb.</i></p>
<p>The <a href="http://frictionalgames.blogspot.com/2009/11/fractional-fun.html">MathFuncRenderer</a> also has a Mandelbulb implementation. I had a few quirks with this one &#8211; I had to install <a href="http://connect.creativelabs.com/openal/Downloads/Forms/AllItems.aspx">OpenAL</a>, and the UI was quite non-responsive, but this may be due to my graphics card.</p>
<p>Another very interesting implementation is the <a href="http://www.icare3d.org/blog_techno/gpu/gigabroccoli_the_mandelbulb_into_gigavoxels.html">GigaVoxels Mandelbulb</a>: Whereas most implementations cast rays and use a distance estimator to speed up the ray marching, GigaVoxels use voxels stored into an Octree, which is populated on-the-fly. </p>
<p>For other implementations keep an eye on Fractal Forums <a href="http://www.fractalforums.com/mandelbulb-implementation/">Mandelbulb Implementation</a> category.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.hvidtfeldts.net/index.php/2009/12/mandelbulb-implementations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
