<?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>Independent Developer &#187; POV-Ray</title>
	<atom:link href="http://www.independentdeveloper.com/archive/tag/pov-ray/feed" rel="self" type="application/rss+xml" />
	<link>http://www.independentdeveloper.com</link>
	<description>Code, Art and Everything In-Between</description>
	<lastBuildDate>Tue, 11 Aug 2009 21:32:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>AC3D Plugin: Displacement Mapper</title>
		<link>http://www.independentdeveloper.com/archive/2008/05/13/ac3d-plugin-displacement-mapper</link>
		<comments>http://www.independentdeveloper.com/archive/2008/05/13/ac3d-plugin-displacement-mapper#comments</comments>
		<pubDate>Tue, 13 May 2008 17:12:15 +0000</pubDate>
		<dc:creator>Lisa</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Tools and Plugins]]></category>
		<category><![CDATA[ac3d]]></category>
		<category><![CDATA[bump map]]></category>
		<category><![CDATA[cg]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[computer graphics]]></category>
		<category><![CDATA[displacement map]]></category>
		<category><![CDATA[height field]]></category>
		<category><![CDATA[heightfield]]></category>
		<category><![CDATA[Mudbox]]></category>
		<category><![CDATA[normal map]]></category>
		<category><![CDATA[POV-Ray]]></category>
		<category><![CDATA[ZBrush]]></category>

		<guid isPermaLink="false">http://www.independentdeveloper.com/?p=96</guid>
		<description><![CDATA[This plugin adds displacement map support to AC3D. Displacement mapping is a technique that deforms the current geometry, displacing the vertices in accordance with elevation values stored in a texture map. This technique is useful for &#8220;painting on&#8221; details onto a very high resolution mesh. Displacement maps can be painted with 2D art tools such [...]]]></description>
			<content:encoded><![CDATA[<p>This plugin adds displacement map support to AC3D. <a href="http://en.wikipedia.org/wiki/Displacement_mapping" target="external">Displacement mapping</a> is a technique that deforms the current geometry, displacing the vertices in accordance with elevation values stored in a texture map. This technique is useful for &#8220;painting on&#8221; details onto a very high resolution mesh.</p>
<p>Displacement maps can be painted with 2D art tools such as Corel, Photoshop or Gimp; or, they can be exported from 3D sculpting programs such as ZBrush or Mudbox. The AC3D displacement map plugin supports 8-bit grayscale and 16-bit red-green (POV-Ray format) displacement maps.</p>
<p>If you are new to displacement mapping, <a href="http://www.mossor.org/Desktop/Tutorials/garbagecan.htm" target="_external">this tutorial</a> explains the process in more detail.</p>
<p><strong><a href="/files/displacementmapper.zip" title="Download">Download the plugin. (Requires Windows XP, AC3D 6.2 or above.)</a></strong>
<p align="center"><a href="/images/displacement2.jpg" rel="lightbox" title="Displacement Mapper"><img src="/images/displacement2_thumb.jpg" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.independentdeveloper.com/archive/2008/05/13/ac3d-plugin-displacement-mapper/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Plasma HD Render</title>
		<link>http://www.independentdeveloper.com/archive/2008/01/30/plasma-hd-render</link>
		<comments>http://www.independentdeveloper.com/archive/2008/01/30/plasma-hd-render#comments</comments>
		<pubDate>Thu, 31 Jan 2008 05:42:54 +0000</pubDate>
		<dc:creator>Lisa</dc:creator>
				<category><![CDATA[3D Tutorials]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[1080p]]></category>
		<category><![CDATA[cg]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[computer graphics]]></category>
		<category><![CDATA[explosion]]></category>
		<category><![CDATA[hd]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[plasma]]></category>
		<category><![CDATA[POV-Ray]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://www.independentdeveloper.com/archive/2008/01/30/plasma-hd-render</guid>
		<description><![CDATA[The tiny little 320&#215;240 render of the plasma for the POV-Ray tutorial was a bit hard to see, so I did a render in 1920 x 1080 resolution for those of you interested in seeing the details. It&#8217;s still a bit compressed, but the image is a lot clearer. You&#8217;ll find it here: download the [...]]]></description>
			<content:encoded><![CDATA[<p>The tiny little 320&#215;240 render of the plasma for the <a href="http://www.independentdeveloper.com/archive/2008/01/25/rendering-plasma-in-pov-ray">POV-Ray tutorial</a> was a bit hard to see, so I did a render in 1920 x 1080 resolution for those of you interested in seeing the details. It&#8217;s still a bit compressed, but the image is a lot clearer. <strong>You&#8217;ll find it here: <a href="/files/pov_explosion.wmv">download the video</a>.</strong></p>
<p>Enjoy!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.independentdeveloper.com/archive/2008/01/30/plasma-hd-render/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rendering Plasma in POV-Ray</title>
		<link>http://www.independentdeveloper.com/archive/2008/01/25/rendering-plasma-in-pov-ray</link>
		<comments>http://www.independentdeveloper.com/archive/2008/01/25/rendering-plasma-in-pov-ray#comments</comments>
		<pubDate>Fri, 25 Jan 2008 12:56:25 +0000</pubDate>
		<dc:creator>Lisa</dc:creator>
				<category><![CDATA[3D Tutorials]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[cg]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[clouds]]></category>
		<category><![CDATA[computer graphics]]></category>
		<category><![CDATA[explosions]]></category>
		<category><![CDATA[fog]]></category>
		<category><![CDATA[media]]></category>
		<category><![CDATA[particles]]></category>
		<category><![CDATA[plasma]]></category>
		<category><![CDATA[POV-Ray]]></category>
		<category><![CDATA[render]]></category>
		<category><![CDATA[rendering]]></category>

		<guid isPermaLink="false">http://www.independentdeveloper.com/archive/2008/01/25/rendering-plasma-in-pov-ray</guid>
		<description><![CDATA[POV-Ray has some very powerful commands for rendering realistic plasmas and explosions, but not very many people know how to use them well. This tutorial will show you how. [youtube:http://www.youtube.com/watch?v=CbxqIwk8-e0 350 292]An turntable of a plasma cloud rendered in POV-Ray UPDATE: download the high-res version To render plasmas, there are two basic commands you need [...]]]></description>
			<content:encoded><![CDATA[<p>POV-Ray has some very powerful commands for rendering realistic plasmas and explosions, but not very many people know how to use them well. This tutorial will show you how.</p>
<div class="photocaption" align="center">[youtube:http://www.youtube.com/watch?v=CbxqIwk8-e0 350 292]<br/>An turntable of a plasma cloud rendered in POV-Ray<br/><br />
UPDATE: <a href="http://www.independentdeveloper.com/files/pov_explosion.wmv">download the high-res version</a></p>
</div>
<p><span id="more-70"></span></p>
<p><strong>To render plasmas, there are two basic commands you need to know:</strong></p>
<p>- Media<br />
- Turbulence</p>
<p><strong>Media</strong> is a material parameter in POV-Ray designed to mimic the way the <em>interior</em> of a substance reacts to light. You could think of it as similar to a volumetric texture&#8211;but a more visceral way to describe media would be to visualize it as a gelatin or poured acrylic. You can tint it, swirl it, and pour it into a container of any shape you like.</p>
<p>Media works essentially the same way as other textures and materials in POV-Ray: you can assign colors to it, you can apply patterns to it, you can warp it or bend it, and you can even use it in layers. However, unlike textures, media has <em>volume</em>. The amount of light that is transmitted through media is dependent on the thickness of the media you are viewing it through. It is this property that allows media to be used to simulate fog, deep water, clouds, plasmas and a variety of other effects.</p>
<p>You can read a tutorial on the media command here: <a href="http://www.povray.org/documentation/view/3.6.1/94/" target="_blank">Simple Media Tutorial</a></p>
<p><strong>Turbulence</strong> is a &#8220;pattern modifier&#8221;. Pattern modifiers alter the appearance of your texture or material by deforming them it various ways. POV-Ray had several different types of pattern modifiers. The turbulence modifier adds &#8220;noise&#8221; or chaos to your texture. Typically it has a soft, cloud-like shape; although with various settings it can also take on the appearance of marble, rocky soil or aluminum foil.</p>
<p>You can read a tutorial on the turbulence command here: <a href="http://www.povray.org/documentation/view/3.6.1/77/" target="_blank">Advanced Texture Options</a></p>
<p><strong>By combining media and turbulence, you can create clouds, fog, plasmas and many other effects.</strong> When turbulence is combined with media, it alters the density of the media in a random way. This causes the media to appear as if there were something suspended inside it. By changing the turbulence settings, you can choose the way the media clumps and flows.</p>
<p>In general, the trick to getting great results with media is to use several density layers. Nature tends to be very fractal-like, with lots of interesting things going on both at the macro and the micro level. You want to emulate that in your renders. You can accomplish this by creating layers that simulate the large things that are going on, and then additional layers rendered on top of that that simulate the tiny details. This does slow down your render, but good things come to those who wait. <img src='http://www.independentdeveloper.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><strong>Let&#8217;s walk through an example:</strong></p>
<pre>
<code>// global settings: here, we specify which version of
// POV-Ray this file was designed for, as well as our
// default gamma settings for the scene
#version 3.6;
global_settings {
  assumed_gamma 1.0
  max_trace_level 5
}

// camera: this simple camera looks at the origin from
// a slight angle. it is the same camera as used in the
// default POV-Ray scene template
camera {                        

  // this line allows us to create an animation. by
  // changing the camera angle around the y axis based
  // on the clock, the camera will orbit the origin
  rotate &lt;0.0, 360*clock, 0.0&gt;             

  location  &lt;0.0, 0.5, -4.0&gt;
  direction 1.5*z
  right     x*image_width/image_height
  look_at   &lt;0.0, 0.0, 0.0&gt;
}

// a simple, completely black sky sphere
sky_sphere {
  pigment {
    rgb &lt;0.0, 0.0, 0.0&gt;
  }
}

// fireball: let's simulate an explosion. to do this, we're
// going to use the media and turbulence commands to create
// a plasma effect inside of an ordinary sphere.
sphere {
    0, 2.0

    // it's important to make the outer shell of your
    // object transparent... if you can't see through the
    // outside of the object, you won't be able
    // to see the media inside it
    pigment { color rgbt &lt;1, 1, 1, 1&gt; }      

    // media is held within the interior of the object
    interior {

        // we're going to create a single media object, with
        // several different density maps inside it. this works
        // similar to building a layered texture. "density"
        // controls the thickness of the media at a particular
        // point. density can be controlled independently on
        // each color channel, allowing you to have colored
        // media by emitting or blocking certain colors of light.
        // density maps multiply--not add--the density of the
        // layers together. this means that if a point has a zero
        // value on any layer, that the total density for that
        // point will also be zero. this is extremely
        // useful for creating complex patterns and effects
        media {         

         // POV-Ray supports three types of media: emissive,
         // absorbing, and scattering. "emission" is self-illuminated
         // media. it will not cast light on other objects, but it
         // has the appearance of glowing. "absorption" blocks light
         // instead of emits light. absorbing media casts shadows on
         // other objects. "scattering" media is lit by other
         // light sources, and can scatter light. it is substantially
         // slower to render than the other two types, however, it
         // can be used with photons to create effects like
         // visible sunbeams
         emission 1.0
         absorption .2   

         //
         // LAYER 1
         //
         // for our first layer, we'll blend the edge of the sphere
         // to transparent. this will make edges less obvious and help
         // hide the fact that the media is contained inside a sphere.
         // we want it to look free-floating, so it's important to
         // disguise the edges
         density {
            spherical
            density_map {
                [0.0 rgb &lt;0.0, 0.0, 0.0&gt;]
                [1.0 rgb &lt;1.0, 1.0, 1.0&gt;]
            }
         }

         //
         // LAYER 2
         //
         // explosions usually have bright centers. for our second layer,
         // we'll give the explosion a "hot" core by multiplying past
         // the 1.0 range in the center... POV-Ray doesn't support HDRI
         // (the MegaPOV build does) but this trick works nonetheless
         density {
            spherical
            density_map {
                [0.7 rgb &lt;1.0, 1.0, 1.0&gt;]
                [1.0 rgb &lt;8.0, 8.0, 8.0&gt;]
            }
          }              

         //
         // LAYER 3
         //
         // now that we've blocked out the general shape of our media,
         // for our third layer we want to get it looking more cloud-like
         // and less like a ball. we'll do that by adding some soft, low
         // frequency turbulence
         density {
            spherical
            density_map {
                [0.0 rgb &lt;0.0, 0.0, 0.0&gt;]
                [0.2 rgb &lt;0.5, 0.0, 0.0&gt;]
                [0.4 rgb &lt;0.8, 0.4, 0.0&gt;]
                [0.9 rgb &lt;1.0, 1.0, 1.0&gt;]
            }      

            // here's where the magic happens... a low turbulence setting
            // causes our media to take on a soft, cloud-like shape
            warp {
                turbulence .6
                lambda 1.5  

                // low omega values create soft, blurry results;
                // higher values are crisp and wrinkly
                omega 0.25
            }

            // this warp causes the explosion to look like the particulate
            // is ejecting from the center by pulling in all of the color
            // toward the center... I haven't tried it, but I bet you
            // could do some nifty animations by adding a clock term to
            // one of these values
            warp {
                black_hole &lt;0.0, 0.0, 0.0&gt;, 2.0
                strength .95
                falloff 2.5
            }
          }

          //
          // LAYER 4
          //
          // explosions have lots of detail, with many fine swirls and
          // eddies. we can simulate this by using a high-frequency
          // turbulence value. again, we'll multiply past 1.0 to keep
          // the explosion "hot"
          density {
            spherical
            density_map {
                [0.0 rgb &lt;0.0, 0.0, 0.0&gt;]
                [0.1 rgb &lt;1.0, 0.0, 0.0&gt; * .75]
                [0.2 rgb &lt;1.0, 0.5, 0.0&gt; * .75]
                [0.8 rgb &lt;1.0, 1.0, 1.0&gt; * 2.5]
            }           

            warp {
                turbulence 1.5
                lambda 2.5
                omega 0.55
                octaves 7
            }
            scale .75

            warp {
                black_hole &lt;0.0, 0.0, 0.0&gt;, 2.0
                strength .8
                falloff 2.0
             }
          }

          // if you find that you have glitches or black spots in
          // your media, try turning up the number of samples.
          // more samples will cause it to render slower, so don't
          // turn it up more than you need to
          samples 20
          scale 1.25
        }
    }

    // THIS LINE IS VERY IMPORTANT! in order to hold the media, the object
    // needs to be hollow... if the object is solid, the default, then the
    // media won't show correctly. don't forget to include this command!
    hollow
}
</code>
</pre>
<p>As you can see, media is a very powerful tool that will let you create a variety of amazing effects! It does take some practice to get a feel for how it works, but the results are well-worth the time spent learning.</p>
<p><strong>More POV-Ray media examples to explore:<br /></strong>- <a href="http://www.travelnotes.de/rays/media/media.htm" target="_blank">Kurt Bangert and Carola Blaesing-Bangert, Media Examples</a><br />
- <a href="http://www.willamette.edu/~gorr/classes/GeneralGraphics/Media/index.htm" target="_blank">Media and Particle Systems</a> by Jenny Orr<br />
- <a href="http://povray.tashcorp.net/tutorials/ww_media/" target="_blank">Web Walking: Media</a> by Mike Kost</p>
<p>Questions? Ideas? Amazing scenes you&#8217;ve created? Leave a comment!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.independentdeveloper.com/archive/2008/01/25/rendering-plasma-in-pov-ray/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
<enclosure url="http://www.independentdeveloper.com/files/pov_explosion.wmv" length="8901280" type="video/x-ms-wmv" />
		</item>
	</channel>
</rss>
