<?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; tipstriks</title>
	<atom:link href="http://3djegrad.net/blog/tag/tipstriks/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>
		<item>
		<title>Subversion error</title>
		<link>http://3djegrad.net/blog/2009/03/subversion-error/</link>
		<comments>http://3djegrad.net/blog/2009/03/subversion-error/#comments</comments>
		<pubDate>Thu, 19 Mar 2009 17:39:28 +0000</pubDate>
		<dc:creator>chrleon</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[design]]></category>
		<category><![CDATA[dev]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[subversion]]></category>
		<category><![CDATA[tipstriks]]></category>

		<guid isPermaLink="false">http://3djegrad.net/blog/?p=157</guid>
		<description><![CDATA[This post is mostly for reminding myself as I dive into SubVersion (.svn) for development Dette er mest for min egen del, i tilfelle jeg støter på det når jeg skal sette opp Subversion for utvikling. godkjent av kilde/approved by source: agit8 - &#8211; - Cut from agit8 &#8211; - - While developping our (AGIT8) [...]]]></description>
			<content:encoded><![CDATA[<p>This post is mostly for reminding myself as I dive into SubVersion (.svn) for development<br />
Dette er mest for min egen del, i tilfelle jeg støter på det når jeg skal sette opp Subversion for utvikling.</p>

<p>godkjent av kilde/approved by source: <a href="http://agit8.turbulent.ca/bwp/2008/05/01/flash-cs3-bug-on-mac-os-x-and-subversion-svn-files/">agit8</a></p>

<p style="text-align: center;">- &#8211; - Cut from agit8 &#8211; - -</p>

<p><img class="size-full wp-image-158" title="macosx_flash_error" src="http://3djegrad.net/blog/wp-content/uploads/2009/03/macosx_flash_error.png" alt="macosx_flash_error" width="554" height="234" /></p>

<p>While developping our (AGIT8) latest project we encountered a bug in the Flash IDE that caused us many headaches and woes. Our project was setup in the Flash IDE with assets and files located in subdirectories, nothing fancy. Right on the last day of production, suddenly after a particular commit , our project would no longer compile. Flash would return the standard compiler error: “A definition for the document class could not be found in the classpath, so one will be automatically generated in the SWF file upon export.” The document class is in the same directory as the FLA! What in god’s name is going on!</p>

<p>It turns out Flash is not able find any classes in the project’s directory. Even when creating a new FLA file with a classpath entry to the project’s directory ; the compiler would just refuse to find ANY classes in that particular directory.</p>

<p>After about a day of investigation, we isolated the problem to OSX, as PC checked out working copies of the project would function properly. We also found out that by doing a subversion “EXPORT” of the project (basically removing the .svn files from the project dir) the project would magically start working again.</p>

<p>After another day of headaches and stress we finally figured it out. It seems that under OSX <em>ONLY</em>, if you have a directory in your classpath that is under subversion control (has .svn files) and that any one single directory has over 128 files subversionned, it will make the flash compiler class lookup fail silently and stop. You’ll get the usual compiler error messages for unfound classes.</p>

<p>The solution?</p>

<p>Make sure that no single directory in your project has over 128 files in it under subversion control. If you have one, simply segment it into sub directories and commit.</p>

<p style="text-align: center;">- &#8211; - end blatant copy &#8211; - -</p>
]]></content:encoded>
			<wfw:commentRss>http://3djegrad.net/blog/2009/03/subversion-error/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Send filer med Bluetooth</title>
		<link>http://3djegrad.net/blog/2009/03/send-me-bluetooth/</link>
		<comments>http://3djegrad.net/blog/2009/03/send-me-bluetooth/#comments</comments>
		<pubDate>Tue, 03 Mar 2009 10:49:08 +0000</pubDate>
		<dc:creator>chrleon</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[tipstriks]]></category>

		<guid isPermaLink="false">http://3djegrad.net/blog/?p=134</guid>
		<description><![CDATA[Kjapt tips. Har slitt en stund med å sende filer fra telefonen min (nei ikke iPhone) til min MacBookPro via Bluetooth. Dette virker perfekt på jobb hvor jeg kjører Tiger, men i Leopard har jeg (tydeligvis!) ikke slått på Bluetooth-fildeling. Når det er gjort, funker det som juling!]]></description>
			<content:encoded><![CDATA[<p>Kjapt tips. Har slitt en stund med å sende filer fra telefonen min (nei ikke iPhone) til min MacBookPro via Bluetooth. Dette virker perfekt på jobb hvor jeg kjører Tiger, men i Leopard har jeg (tydeligvis!) ikke slått på Bluetooth-fildeling. Når det er gjort, funker det som juling!</p>

<p><img src="http://3djegrad.net/blog/wp-content/uploads/2009/03/bilde-7.png" alt="bluetooth-deling" title="bluetooth-deling" width="600" height="502" class="alignleft size-full wp-image-135" /></p>
]]></content:encoded>
			<wfw:commentRss>http://3djegrad.net/blog/2009/03/send-me-bluetooth/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache og VirtualHosts</title>
		<link>http://3djegrad.net/blog/2009/02/apache-virtualhosts/</link>
		<comments>http://3djegrad.net/blog/2009/02/apache-virtualhosts/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 15:40:10 +0000</pubDate>
		<dc:creator>chrleon</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[tipstriks]]></category>

		<guid isPermaLink="false">http://3djegrad.net/blog/?p=102</guid>
		<description><![CDATA[Portbasert virtual hosts ved utvikling av nettsider har en fordel. Du kan da sette opp f.eks localhost:3000 for et nettsted og localhost:3002 for et helt annet. Problemer du kan støte på underveis: ./apachectl -S gir en bus error Kan ikke koble til localhost Error i syntax 1. Bus error Dette kan være mye. Det jeg [...]]]></description>
			<content:encoded><![CDATA[<p>Portbasert virtual hosts ved utvikling av nettsider har en fordel.
Du kan da sette opp f.eks localhost:3000 for et nettsted og localhost:3002 for et helt annet.</p>

<p>Problemer du kan støte på underveis:</p>

<ol>
    <li>./apachectl -S gir en bus error</li>
    <li>Kan ikke koble til localhost</li>
    <li>Error i syntax</li>
</ol>

<h3>1. Bus error</h3>

<p>Dette kan være mye. Det jeg har erfart er at det noen ganger mangler en innstilling i httpd.conf filen som sier hvilken fil serveren skal lete etter som startfil (index.htm/index.php/index.html)</p>

<h3>2. kan ikke koble til localhost:</h3>

<p>Dette betyr at serveren ikke klarer å koble seg til den adressen du har oppgitt.
Bruk porter over 1024 i OS X. Jeg bruker fra 3000 og oppover.
Du kan også på Mac gå til Verktøy &gt; Nettverksverktøy og klikke på Port Scan for å se om noen programmer på maskinen bruker portene du velger. Da velger su 127.0.0.1 i feltet &#8216;Oppgi en Internett- eller IP-adresse for å søke etter åpne utganger&#8217; og haker av &#8216;Test kun utganger mellom&#8217; og skriver inn 3000, 3100 i de to feltene. Du vil da få opp alle programmer som bruker port 3000 &#8211; 3100. Mest sannsynlig ingen.
<img src="http://3djegrad.net/blog/wp-content/uploads/2009/02/portscan-384x231.png" alt="Portscanning" title="Portscanning" width="384" height="231" class="size-medium wp-image-103" /></p>

<h3>3. Error i syntax</h3>

<p>Her er det viktig at filer faktisk finnes
At du fører DocumentRoot-banen inn i anførselstegn.
DocumentRoot &#8220;/Bane/til/fil&#8221;
Du trenger ikke / etter siste mappenavn.</p>

<p>Husk at httpd.conf filen er case-sensitiv, dvs at den skiller mellom små og store bokstaver.</p>

<h3>4. Siste tips</h3>

<p>Legg alle Virtual Hosts i egen fil, eksempelvis conf/vhosts.conf,
og legg inn en ekstra linje i httpd.conf som henter inn denne filen
Include conf/vhosts.conf</p>
]]></content:encoded>
			<wfw:commentRss>http://3djegrad.net/blog/2009/02/apache-virtualhosts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>En spiss i reserve</title>
		<link>http://3djegrad.net/blog/2009/02/en-spiss-i-reserve/</link>
		<comments>http://3djegrad.net/blog/2009/02/en-spiss-i-reserve/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 15:22:30 +0000</pubDate>
		<dc:creator>chrleon</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[tipstriks]]></category>

		<guid isPermaLink="false">http://3djegrad.net/blog/?p=90</guid>
		<description><![CDATA[I viskelæret på wacom-pennen min ligger det en extra spiss, som selvfølgelig brukes til å lese av hvilken styrke man bruker til å tegne med, men dersom du har en ødelagt wacom penn, så er det greit å vite at du har TO reserve spisser i den ødelagte pennen, ikke bare en.]]></description>
			<content:encoded><![CDATA[<div id="attachment_94" class="wp-caption alignleft" style="width: 630px"><a href="http://3djegrad.net/blog/wp-content/uploads/2009/02/reservespiss.jpg"><img src="http://3djegrad.net/blog/wp-content/uploads/2009/02/reservespiss.jpg" alt="Reserve spiss for Wacom-penner" title="reservespiss-wacom.jpg" width="620" height="147" class="size-full wp-image-94" /></a><p class="wp-caption-text">Reserve spiss for Wacom-penner</p></div>

<p>I viskelæret på wacom-pennen min ligger det en extra spiss, som selvfølgelig brukes til å lese av hvilken styrke man bruker til å tegne med, men dersom du har en ødelagt wacom penn, så er det greit å vite at du har TO reserve spisser i den ødelagte pennen, ikke bare en.</p>
]]></content:encoded>
			<wfw:commentRss>http://3djegrad.net/blog/2009/02/en-spiss-i-reserve/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tekstkoding i Leopard / TextWrangler</title>
		<link>http://3djegrad.net/blog/2009/02/tekstkoding-i-leopard-textwrangler/</link>
		<comments>http://3djegrad.net/blog/2009/02/tekstkoding-i-leopard-textwrangler/#comments</comments>
		<pubDate>Mon, 09 Feb 2009 15:02:46 +0000</pubDate>
		<dc:creator>chrleon</dc:creator>
				<category><![CDATA[development]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[tipstriks]]></category>
		<category><![CDATA[txt]]></category>

		<guid isPermaLink="false">http://3djegrad.net/blog/?p=68</guid>
		<description><![CDATA[For å få korrekt visning av æøå med QuickLook i Leopard (Mac OS X 10.5.x) bør filkoding være satt til Unicode UTF-8. Ikke bruk Unicode UTF-8 NO-BOM, då blir det noen feil med æøå. Bildet viser innstillingene i TextWrangler fra BareBones Software.]]></description>
			<content:encoded><![CDATA[<p>For å få korrekt visning av æøå med QuickLook i Leopard (Mac OS X 10.5.x) bør filkoding være satt til Unicode UTF-8.</p>

<p>Ikke bruk Unicode UTF-8 NO-BOM, då blir det noen feil med æøå. Bildet viser innstillingene i <a title="Gratis teksteditor fra BBSoft" href="http://www.barebones.com/products/textwrangler/" target="_blank">TextWrangler</a> fra BareBones Software.</p>

<div id="attachment_71" class="wp-caption alignnone" style="width: 274px"><a rel="attachment wp-att-71" href="http://3djegrad.net/blog/2009/02/tekstkoding-i-leopard-textwrangler/utf8-tw/"><img class="size-medium wp-image-71" title="utf8-tw" src="http://3djegrad.net/blog/wp-content/uploads/2009/02/utf8-tw.png" alt="Her er det satt i TextWrangler" width="264" height="320" /></a><p class="wp-caption-text">Her er det satt i TextWrangler</p></div>
]]></content:encoded>
			<wfw:commentRss>http://3djegrad.net/blog/2009/02/tekstkoding-i-leopard-textwrangler/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Åpne Winmail.dat filer i OSX</title>
		<link>http://3djegrad.net/blog/2009/01/apne-winmaildat-filer-i-osx/</link>
		<comments>http://3djegrad.net/blog/2009/01/apne-winmaildat-filer-i-osx/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 22:01:07 +0000</pubDate>
		<dc:creator>chrleon</dc:creator>
				<category><![CDATA[misc]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[tipstriks]]></category>

		<guid isPermaLink="false">http://3djegrad.net/wordpress/?p=29</guid>
		<description><![CDATA[I dataverden er det jo haugevis av formater, og noenganger blir det litt krøll. Winmail.dat er en filtype jeg ofte mottar på epost.]]></description>
			<content:encoded><![CDATA[<p>I dataverden er det jo haugevis av formater, og noenganger blir det litt krøll. Winmail.dat er en filtype jeg ofte mottar på epost. Dette er e-post sendt fra <a href="http://facstaff.gpc.edu/~jbenson/resource/winmail.htm">Windows / Outlook</a>.</p>

<p>På mac blir dette litt trøblete, så da kan du bruke <a href="http://www.joshjacob.com/macdev/tnef/">TNEfs Enough fra JoshJacob.com</a> eller en <a href="http://tud.at/php/tnef/">webutgave</a> av programmet. Ikke bruk webutgaven om du forventer at det er sensitive filer i eposten!</p>
]]></content:encoded>
			<wfw:commentRss>http://3djegrad.net/blog/2009/01/apne-winmaildat-filer-i-osx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

