<?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>A Party to the World &#187; ray tracer</title>
	<atom:link href="http://dan.lecocq.us/wordpress/tag/ray-tracer/feed/" rel="self" type="application/rss+xml" />
	<link>http://dan.lecocq.us/wordpress</link>
	<description>Life, love, and computer science</description>
	<lastBuildDate>Fri, 06 Jan 2012 17:21:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Stanford Bunny</title>
		<link>http://dan.lecocq.us/wordpress/2009/05/03/stanford-bunny/</link>
		<comments>http://dan.lecocq.us/wordpress/2009/05/03/stanford-bunny/#comments</comments>
		<pubDate>Mon, 04 May 2009 06:16:52 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[computer science]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[models]]></category>
		<category><![CDATA[ray tracer]]></category>
		<category><![CDATA[ray tracing]]></category>
		<category><![CDATA[scan]]></category>
		<category><![CDATA[stanford bunny]]></category>

		<guid isPermaLink="false">http://dan.lecocq.us/wordpress/?p=534</guid>
		<description><![CDATA[The Stanford Bunny is a graphics benchmark of sorts. It was a high-resolution scan that the imaging lab there did of a ceramic bunny, and the triangulation is a popular model to test systems on. It contains a little under 70,000 triangles which makes brute-force ray tracing intractable. I mentioned octtrees earlier, and so having [...]]]></description>
			<content:encoded><![CDATA[<p>The Stanford Bunny is a graphics benchmark of sorts.  It was a high-resolution scan that the imaging lab there did of a ceramic bunny, and the triangulation is a popular model to test systems on.</p>
<p>It contains a little under 70,000 triangles which makes brute-force ray tracing intractable.  I mentioned octtrees earlier, and so having built octtrees into my ray tracer, I was able to render the Stanford Bunny in about 40 minutes on one core.  Granted, that&#8217;s with only 1-pass anti-aliasing, but I feel pretty good about this.  I don&#8217;t think I&#8217;ll have a chance to implement Gouraud shading (or normal interpolation for that matter), but as soon as I do, it will look a lot less blocky.</p>
<div id="attachment_535" class="wp-caption aligncenter" style="width: 310px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/05/bunny.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/05/bunny-300x168.png" alt="The Stanford Bunny rendered with my ray tracer." title="bunny" width="300" height="168" class="size-medium wp-image-535" /></a><p class="wp-caption-text">The Stanford Bunny rendered with my ray tracer.</p></div>
]]></content:encoded>
			<wfw:commentRss>http://dan.lecocq.us/wordpress/2009/05/03/stanford-bunny/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Orbits</title>
		<link>http://dan.lecocq.us/wordpress/2009/04/30/orbits/</link>
		<comments>http://dan.lecocq.us/wordpress/2009/04/30/orbits/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 21:29:31 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[computer science]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[planets]]></category>
		<category><![CDATA[ray tracer]]></category>
		<category><![CDATA[ray tracing]]></category>

		<guid isPermaLink="false">http://dan.lecocq.us/wordpress/?p=523</guid>
		<description><![CDATA[Orbiting planets. The days are about twice as along as they normally are relative to each planet&#8217;s year, but that&#8217;s an aesthetic preference. Enjoy.]]></description>
			<content:encoded><![CDATA[<p>Orbiting planets.  The days are about twice as along as they normally are relative to each planet&#8217;s year, but that&#8217;s an aesthetic preference.  Enjoy.</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/w3F_1HiCYs8&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x2b405b&#038;color2=0x6b8ab6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/w3F_1HiCYs8&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x2b405b&#038;color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://dan.lecocq.us/wordpress/2009/04/30/orbits/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New Render</title>
		<link>http://dan.lecocq.us/wordpress/2009/04/26/new-render/</link>
		<comments>http://dan.lecocq.us/wordpress/2009/04/26/new-render/#comments</comments>
		<pubDate>Mon, 27 Apr 2009 04:56:54 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[computer science]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[clips]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[planets]]></category>
		<category><![CDATA[ray tracer]]></category>
		<category><![CDATA[ray tracing]]></category>
		<category><![CDATA[texturing]]></category>

		<guid isPermaLink="false">http://dan.lecocq.us/wordpress/?p=508</guid>
		<description><![CDATA[I got a new render up from my ray tracer that applies planetary textures to spheres and makes them spin on their respective axes (none of the planets in our solar system spin on a &#8220;vertical&#8221; axis). I hope to do one with their orbits, but I haven&#8217;t had a chance to get to it; [...]]]></description>
			<content:encoded><![CDATA[<p>I got a new render up from my ray tracer that applies planetary textures to spheres and makes them spin on their respective axes (none of the planets in our solar system spin on a &#8220;vertical&#8221; axis).  I hope to do one with their orbits, but I haven&#8217;t had a chance to get to it; though, the nice thing is, I just have to define their paths and rotations as a function of time, and where I want the viewpoint to be.  It took about 15 minutes to render in full HD 1080&#215;1920 on 18 processors:</p>
<p><object width="480" height="295"><param name="movie" value="http://www.youtube.com/v/z56qL2bHqNo&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x2b405b&#038;color2=0x6b8ab6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/z56qL2bHqNo&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x2b405b&#038;color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="295"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://dan.lecocq.us/wordpress/2009/04/26/new-render/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ray Tracer &#8211; Texturing Support</title>
		<link>http://dan.lecocq.us/wordpress/2009/04/24/ray-tracer-texturing-support/</link>
		<comments>http://dan.lecocq.us/wordpress/2009/04/24/ray-tracer-texturing-support/#comments</comments>
		<pubDate>Fri, 24 Apr 2009 18:26:51 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[computer science]]></category>
		<category><![CDATA[earth]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[ray tracer]]></category>
		<category><![CDATA[raytracing]]></category>
		<category><![CDATA[texturing]]></category>

		<guid isPermaLink="false">http://dan.lecocq.us/wordpress/?p=501</guid>
		<description><![CDATA[It&#8217;s all well and good to be able to render shapes in space in a photorealistic way, but at some point you&#8217;d like to draw something that doesn&#8217;t have just one surface color. After all, a billboard isn&#8217;t just a bunch of shapes each of which has one color &#8211; it&#8217;s one object with paint [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s all well and good to be able to render shapes in space in a photorealistic way, but at some point you&#8217;d like to draw something that doesn&#8217;t have just one surface color.  After all, a billboard isn&#8217;t just a bunch of shapes each of which has one color &#8211; it&#8217;s one object with paint / ink placed on it in an ordered way.</p>
<p>Texturing accomplishes by taking a primitive shape (like a sphere, triangle, surface of revolution, etc.) and wrapping an image onto and over it.  Let&#8217;s consider a sphere in space:<br />
<div id="attachment_502" class="wp-caption aligncenter" style="width: 310px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/04/output4.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/04/output4-300x168.png" alt="A white sphere in space." title="sphere" width="300" height="168" class="size-medium wp-image-502" /></a><p class="wp-caption-text">A white sphere in space.</p></div></p>
<p>Now let&#8217;s say we mean it to be Earth.  Then we can take a picture of Earth that&#8217;s flat:<br />
<div id="attachment_503" class="wp-caption aligncenter" style="width: 310px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/04/texturesmall.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/04/texturesmall-300x150.png" alt="Flattened map of Earth" title="texturesmall" width="300" height="150" class="size-medium wp-image-503" /></a><p class="wp-caption-text">Flattened map of Earth</p></div></p>
<p>and then map it onto a sphere to get a picture of what we all know Earth to look like:<br />
<div id="attachment_504" class="wp-caption aligncenter" style="width: 310px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/04/earth.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/04/earth-300x168.png" alt="Behold!" title="Planet Earth" width="300" height="168" class="size-medium wp-image-504" /></a><p class="wp-caption-text">Behold!</p></div><br />
<div id="attachment_506" class="wp-caption aligncenter" style="width: 310px"><a href="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/04/mars-twin.png"><img src="http://dan.lecocq.us/wordpress/wp-content/uploads/2009/04/mars-twin-300x168.png" alt="Two Mars globes where the left is what is seen with the eye, and the right is a topographic map." title="mars" width="300" height="168" class="size-medium wp-image-506" /></a><p class="wp-caption-text">Two Mars globes where the left is what is seen with the eye, and the right is a topographic map.</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://dan.lecocq.us/wordpress/2009/04/24/ray-tracer-texturing-support/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ray Tracer &#8211; Now With Animation</title>
		<link>http://dan.lecocq.us/wordpress/2009/04/06/ray-tracer-now-with-animation/</link>
		<comments>http://dan.lecocq.us/wordpress/2009/04/06/ray-tracer-now-with-animation/#comments</comments>
		<pubDate>Tue, 07 Apr 2009 03:16:04 +0000</pubDate>
		<dc:creator>Dan</dc:creator>
				<category><![CDATA[projects]]></category>
		<category><![CDATA[school]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[ray tracer]]></category>
		<category><![CDATA[render]]></category>

		<guid isPermaLink="false">http://dan.lecocq.us/wordpress/?p=495</guid>
		<description><![CDATA[It occurred to me today that I could render a scene several times with slight perturbations and then mesh them together into a movie. It took about 15 minutes to render on a cluster at Mines, and then about a minute to stitch together with Mencoder. At 18 frames per second, here is the result. [...]]]></description>
			<content:encoded><![CDATA[<p>It occurred to me today that I could render a scene several times with slight perturbations and then mesh them together into a movie.  It took about 15 minutes to render on a cluster at Mines, and then about a minute to stitch together with Mencoder.  At 18 frames per second, here is the result.  Enjoy!</p>
<p><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/mWT0UOBTT5Y&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x006699&#038;color2=0x54abd6"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/mWT0UOBTT5Y&#038;hl=en&#038;fs=1&#038;rel=0&#038;color1=0x006699&#038;color2=0x54abd6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="425" height="344"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://dan.lecocq.us/wordpress/2009/04/06/ray-tracer-now-with-animation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

