<?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>Hazel McKendrick &#187; Lighting</title>
	<atom:link href="http://hazelmckendrick.com/journal/tag/lighting/feed" rel="self" type="application/rss+xml" />
	<link>http://hazelmckendrick.com</link>
	<description>Programming and Games Technology Portfolio</description>
	<lastBuildDate>Mon, 20 Jun 2011 17:44:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>Into The Deep Dark Woods: Lighting and Shading</title>
		<link>http://hazelmckendrick.com/journal/getting-a-little-dark-and-scary</link>
		<comments>http://hazelmckendrick.com/journal/getting-a-little-dark-and-scary#comments</comments>
		<pubDate>Mon, 20 Jul 2009 21:19:38 +0000</pubDate>
		<dc:creator>Hazel</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[C++]]></category>
		<category><![CDATA[Dare To Be Digital]]></category>
		<category><![CDATA[digital colony]]></category>
		<category><![CDATA[Graphics programming]]></category>
		<category><![CDATA[Lighting]]></category>
		<category><![CDATA[pollen]]></category>
		<category><![CDATA[XNA]]></category>

		<guid isPermaLink="false">http://killercodingninjabunny.com/?p=1191</guid>
		<description><![CDATA[Although I&#8217;ve really only been sharing bright and shiny screenshots of our game, it actually progresses from a sunny farm through to a dark and creepy forest. Naturally, this meant it was time to focus on implementing a coherent lighting model for the level. At the moment we&#8217;re working with ambient lighting, two directional lights [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/07/DarkArea.png"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/07/DarkArea-1024x624.png" alt="DarkArea" title="DarkArea" width="650" height="400" class="aligncenter size-large wp-image-1198" /></a></p>
<p>Although I&#8217;ve really only been sharing bright and shiny screenshots of our game, it actually progresses from a sunny farm through to a dark and creepy forest.  Naturally, this meant it was time to focus on implementing a coherent lighting model for the level. At the moment we&#8217;re working with ambient lighting, two directional lights and two spot lights per short section of our game.</p>
<p>In addition, I&#8217;ve been looking at methods for shadowing and shading.  Each bee is an intricate model, but scaled down it would be easy to lose a lot of the detail.  As you can hopefully see in the following images, shading adds some depth and makes the bees appear far more three dimensional.  <span id="more-1191"></span></p>
<div id="attachment_1194" class="wp-caption alignleft" style="width: 160px"><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/07/ColourByHeight.png"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/07/ColourByHeight-150x150.png" alt="Colouring by distance from ground." title="ColourByHeight" width="150" height="150" class="size-thumbnail wp-image-1194" /></a><p class="wp-caption-text">Shade by distance from ground.</p></div> <div id="attachment_1195" class="wp-caption alignleft" style="width: 160px"><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/07/ColourByNormals.png"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/07/ColourByNormals-150x150.png" alt="Colour By Normals" title="ColourByNormals" width="150" height="150" class="size-thumbnail wp-image-1195" /></a><p class="wp-caption-text">Shade when normals point down.</p></div> <div id="attachment_1196" class="wp-caption alignleft" style="width: 160px"><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/07/Combined4.png"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/07/Combined4-150x150.png" alt="Combined Shading Techniques." title="Combined4" width="150" height="150" class="size-thumbnail wp-image-1196" /></a><p class="wp-caption-text">Combined Shading Techniques.</p></div> <div id="attachment_1197" class="wp-caption alignleft" style="width: 160px"><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/07/CombinedLit4.png"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/07/CombinedLit4-150x150.png" alt="Combined With Lighting." title="CombinedLit4" width="150" height="150" class="size-thumbnail wp-image-1197" /></a><p class="wp-caption-text">Combined With Lighting.</p></div>
<p style="clear: both">&nbsp;<br />&nbsp;Similar techniques applied across the entire scene also improves the overall appearance, with and without lighting:</p>
<p><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/07/HeightAndAO.png"><img style="clear: both" src="http://killercodingninjabunny.com/wp-content/uploads/2009/07/HeightAndAO-300x191.png" alt="HeightAndAO" title="HeightAndAO" width="300" height="191" class="alignleft size-medium wp-image-1199" /></a> <a href="http://killercodingninjabunny.com/wp-content/uploads/2009/07/HeightAndLighting.png"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/07/HeightAndLighting-300x188.png" alt="HeightAndLighting" title="HeightAndLighting" width="300" height="188" class="alignleft size-medium wp-image-1192" /></a></p>
<p style="clear: both">&nbsp;<br />&nbsp;Finally, here&#8217;s an additional happier version of the shot above, just to show the difference a change in lighting can make:</p>
<p><a href="http://killercodingninjabunny.com/wp-content/uploads/2009/07/BrighterArea.png"><img src="http://killercodingninjabunny.com/wp-content/uploads/2009/07/BrighterArea-1024x660.png" alt="BrighterArea" title="BrighterArea" width="650" height="400" class="alignleft size-large wp-image-1193" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://hazelmckendrick.com/journal/getting-a-little-dark-and-scary/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

