<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rss [<!ENTITY % HTMLlat1 PUBLIC "-//W3C//ENTITIES Latin 1 for XHTML//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">]>
<rss version="2.0" xml:base="http://www.connectedpixel.com/blog">
<channel>
 <title>connectedpixel.com - Tutorials</title>
 <link>http://www.connectedpixel.com/blog/taxonomy/term/8/0</link>
 <description></description>
 <language>en</language>
<item>
 <title>Flash8 Perlin Marble Texture</title>
 <link>http://www.connectedpixel.com/blog/texture/marble</link>
 <description>&lt;p&gt;Last week, I wrote an article about using Flash 8 Perlin noise to generate a &lt;a href=&quot;http://www.connectedpixel.com/blog/texture/wood&quot;&gt;wood texture&lt;/a&gt;.  Today, it&#039;s marble.&lt;/p&gt;
&lt;p&gt;According to this &lt;a href=&quot;http://freespace.virgin.net/hugo.elias/models/m_perlin.htm&quot; target=&quot;newwin&quot;&gt;link&lt;/a&gt;, the Perlin formula for marble is:&lt;/p&gt;
&lt;code class=&quot;mathEq&quot; &gt;texture = cosine( x + perlin(x,y,z) )&lt;/code&gt;
&lt;p&gt;Again, we don&#039;t want to do math on every pixel -- too slow.  So, how do we do this with the existing Flash 8 API?  First, let&#039;s pretend that the perlin term in the above equation is not there.  Here&#039;s what our image would look like (this image is arbitrarily blue monochrome):&lt;br /&gt;&lt;/p&gt;</description>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/4">Graphics</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/8">Tutorials</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/21">ActionScript</category>
 <pubDate>Fri, 11 Apr 2008 18:46:51 -0700</pubDate>
</item>
<item>
 <title>Flash8 Perlin Wood Texture</title>
 <link>http://www.connectedpixel.com/blog/texture/wood</link>
 <description>&lt;p&gt;The Flash 8 documentation for perlinNoise() has this intriguing statement:&lt;/p&gt;  
&lt;blockquote style=&quot;font-style: normal&quot;&gt;&lt;p&gt;
You can use Perlin noise functions to simulate natural phenomena and landscapes, such as wood grain, clouds, and mountain ranges.&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;OK. That sounds like fun.  But how is this done?  It&#039;s not immediately obvious, at least not to me.  So I googled .&lt;/p&gt;  
&lt;p&gt;
According to these links (&lt;a href=&quot;http://freespace.virgin.net/hugo.elias/models/m_perlin.htm&quot; target=&quot;newwin&quot; &gt;here&lt;/a&gt; and &lt;a href=&quot;http://www.soe.ucsc.edu/classes/cmps260/Spring02/submit/weishen/html/&quot; target=&quot;newwin&quot;&gt;here&lt;/a&gt;), the formula for wood is:&lt;/p&gt;
&lt;code class=&quot;mathEq&quot; &gt;g = perlin(x,y) * 20;&lt;br /&gt;
grain = g - int(g);&lt;/code&gt;</description>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/20">Flash</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/4">Graphics</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/8">Tutorials</category>
 <category domain="http://www.connectedpixel.com/blog/taxonomy/term/21">ActionScript</category>
 <pubDate>Fri, 11 Apr 2008 18:47:10 -0700</pubDate>
</item>
</channel>
</rss>
