<?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; earth</title>
	<atom:link href="http://dan.lecocq.us/wordpress/tag/earth/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>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>
	</channel>
</rss>

