<?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>blogg nr. 176 671 167 &#187; cc</title>
	<atom:link href="http://3djegrad.net/blog/tag/cc/feed/" rel="self" type="application/rss+xml" />
	<link>http://3djegrad.net/blog</link>
	<description>verden sett fra mine snarveier</description>
	<lastBuildDate>Tue, 09 Nov 2010 13:58:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>You are here</title>
		<link>http://3djegrad.net/blog/2009/06/you-are-here/</link>
		<comments>http://3djegrad.net/blog/2009/06/you-are-here/#comments</comments>
		<pubDate>Tue, 16 Jun 2009 20:20:32 +0000</pubDate>
		<dc:creator>chrleon</dc:creator>
				<category><![CDATA[design]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[BY-SA-NC]]></category>
		<category><![CDATA[cc]]></category>
		<category><![CDATA[modelling]]></category>
		<category><![CDATA[tipstriks]]></category>

		<guid isPermaLink="false">http://3djegrad.net/blog/?p=238</guid>
		<description><![CDATA[A friend,@BrokenPoly challenged me to create a realistic render of Earth. The first thing I did was to got to NASA, and their Earth Observatory and get real high resolution textures. I downloaded textures for day and nighttime, since I wanted to create a partialy lit planet, and a set of clouds to make it [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://3djegrad.net/blog/2009/06/you-are-here/">
<img src="http://3djegrad.net/blog/wp-content/uploads/klode-final-720x405.jpg" alt="klode-final" title="klode-final" width="720" height="405" class="alignnone size-large wp-image-242" /></a></p>

<p>A friend,<a href="http://www.twitter.com/brokenpoly">@BrokenPoly</a> challenged me to create a realistic render of Earth.</p>

<p><span id="more-238"></span></p>

<p>The first thing I did was to got to NASA, and their <a href="http://earthobservatory.nasa.gov">Earth Observatory </a>and get real high resolution textures.</p>

<p>I downloaded textures for day and nighttime, since I wanted to create a partialy lit planet, and a set of clouds to make it more interesting.</p>

<p>I knew that the first thing I had to figure out, was a way to get the texture for the nightside to show up, when there was no light. Luckily Cinema 4D has a shader called &#8216;Proximal&#8217;, that creates a gradient-ramp whenever a selected object is within a certain range of the shader.<br />
The globe had two shaders.
1. The earth texture &#8211; standard diffuse / color
2. The nighttime lights &#8211; alpha channel with just the lights</p>

<p>For the effect to work, I needed a way to control the Proximal shader, and so I added a Null Object to the scene and set the Proximal-shader to react to it. Then I placed the Null Object over the globe and eyeballed where the nighttime was supposed to be.</p>

<p>This gave me nighttime texture, with overlayed lights. This is clearly wrong. :)<br />
<img src="http://3djegrad.net/blog/wp-content/uploads/bilde-4-720x511.png" alt="Proximal" title="Proximal" width="720" height="511" class="alignnone size-large wp-image-250" /></p>

<p>I had to use the proximal shader as the alpha channel for the daytime texture, and thereby showing the nighttime texture, where the sun didn&#8217;t shine ;)</p>

<div id="attachment_252" class="wp-caption alignnone" style="width: 593px"><img src="http://3djegrad.net/blog/wp-content/uploads/bilde-6.png" alt="Fusion Shader with proximal" title="fusion" width="583" height="590" class="size-full wp-image-252" /><p class="wp-caption-text">Fusion Shader with proximal</p></div>

<p>This resulted in a much better image :)</p>

<p><img src="http://3djegrad.net/blog/wp-content/uploads/klode-final-720x405.jpg" alt="klode-final" title="klode-final" width="720" height="405" class="alignnone size-large wp-image-242" /></p>

<p>But seeing as the null objects and the lights are codependant, I thought: 
&#8220;Why not make it so that I can rotate these things, and simulate a day?&#8221;</p>

<p>I grouped the Null Object that affected the Proximal-shader, the Sun light and the Moon-light to a Null and voila, I could now rotate the scene around, and the daytime and nighttime lights would align perfectly. Magic!</p>

<p><object width="640" height="368"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5123548&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5123548&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="368"></embed></object></p>

<p><a href="http://vimeo.com/5123548">Earth rotation</a> from <a href="http://vimeo.com/chrleon">chrleon</a> on <a href="http://vimeo.com">Vimeo</a>.</p>

<p>This looks great, I think, but there was something missing :) 
Space is not empty. The final video is below. With audio and downloadable from Vimeo.</p>

<p><object width="640" height="360"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="movie" value="http://vimeo.com/moogaloop.swf?clip_id=5188942&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" /><embed src="http://vimeo.com/moogaloop.swf?clip_id=5188942&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=0&amp;show_portrait=0&amp;color=00ADEF&amp;fullscreen=1" type="application/x-shockwave-flash" allowfullscreen="true" allowscriptaccess="always" width="640" height="360"></embed></object></p>

<p><a href="http://vimeo.com/5188942">Rotating Earth &#8211; v2</a> from <a href="http://vimeo.com/chrleon">chrleon</a> on <a href="http://vimeo.com">Vimeo</a>.</p>

<p>Leave your feedback down below and enjoy it :)</p>

<p>Licensed with Creative Commons: By &#8211; Share-Alike &#8211; Non-Commercial</p>

<p>Other credits:<br />
Textures for Earth, Clouds and Nightlights from NASA &#8216;Blue Marble&#8217;
<a href="http://earthobservatory.nasa.gov">earthobservatory.nasa.gov</a></p>

<p>Audio from <a href="http://www.freesound.org">freesound.org</a><br />
<a href="http://www.freesound.org/samplesViewSingle.php?id=17470">Radio Interference</a><br />
by cognito perceptu</p>

<p><a href="http://www.freesound.org/samplesViewSingle.php?id=8132">Brown Noise</a><br />
by Bliss</p>

<p>Russian National Hymn from Wikipedia &#8211; http://en.wikipedia.org/wiki/National_Anthem_of_Russia -</p>
]]></content:encoded>
			<wfw:commentRss>http://3djegrad.net/blog/2009/06/you-are-here/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

