<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Yet another development blog</title>
	<atom:link href="http://plasmaschneidmaschine.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://plasmaschneidmaschine.wordpress.com</link>
	<description></description>
	<lastBuildDate>Sun, 22 Aug 2010 23:19:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='plasmaschneidmaschine.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Yet another development blog</title>
		<link>http://plasmaschneidmaschine.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://plasmaschneidmaschine.wordpress.com/osd.xml" title="Yet another development blog" />
	<atom:link rel='hub' href='http://plasmaschneidmaschine.wordpress.com/?pushpress=hub'/>
		<item>
		<title>One beautiful ball</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2010/08/22/one-beautiful-ball/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2010/08/22/one-beautiful-ball/#comments</comments>
		<pubDate>Sun, 22 Aug 2010 23:19:34 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://plasmaschneidmaschine.wordpress.com/?p=82</guid>
		<description><![CDATA[My last blog post wasn&#8217;t particularly well-timed because the day after I wrote it, I took off for two weeks to get married and spend time with my wife&#8217;s family (wow, I guess it&#8217;s now my family too!) in their mountain cabin with no internet access. It was tremendously awesome, but not in the bloggy [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=82&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My last blog post wasn&#8217;t particularly well-timed because the day after I wrote it, I took off for two weeks to get married and spend time with my wife&#8217;s family (wow, I guess it&#8217;s now my family too!) in their mountain cabin with no internet access. It was tremendously awesome, but not in the bloggy sort of way.</p>
<p>However, I may have been gone, but I haven&#8217;t been inactive. In addition to the whole, you know, getting married thing, I spent some time working on the planet&#8217;s appearance. It was actually my new nephews and nieces who really spurred me on; the moment they saw my work, they planted their hindquarters on the couch with me to offer suggestions and observe my progress. Here&#8217;s what I was able to show them by the end of the trip:</p>
<div style="text-align:center;"><img src="http://plasmaschneidmaschine.files.wordpress.com/2010/08/smooth_beach_globe.png?w=500&#038;h=491" alt="smooth_beach_globe.png" border="0" width="500" height="491" /></div>
<p>You&#8217;ll notice a number of enhancements:</p>
<ul>
<li>The shoreline blends into the ocean</li>
<li>There are polar ice caps</li>
<li>The ocean has a subtle texture (alas, not animated yet)</li>
</ul>
<p>Of course, all these enhancements have bitten into the generation time since I haven&#8217;t optimized them yet, so each new globe takes about 16 seconds to create. That&#8217;ll be fixed in due time.</p>
<p>Next up: rivers!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/82/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/82/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/82/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=82&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2010/08/22/one-beautiful-ball/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>

		<media:content url="http://plasmaschneidmaschine.files.wordpress.com/2010/08/smooth_beach_globe.png" medium="image">
			<media:title type="html">smooth_beach_globe.png</media:title>
		</media:content>
	</item>
		<item>
		<title>Wait, what?</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2010/08/03/wait-what/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2010/08/03/wait-what/#comments</comments>
		<pubDate>Tue, 03 Aug 2010 17:21:41 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">https://plasmaschneidmaschine.wordpress.com/?p=79</guid>
		<description><![CDATA[Soooo. Yeah. I&#8217;m here. Still here. I know that I haven&#8217;t provided a real update in months, and I&#8217;m sorry for that. I would say something like, &#8220;a number of life-related events took over and I haven&#8217;t been left with much time to work on side projects,&#8221; but I know that&#8217;s a cop-out. I&#8217;ve always [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=79&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Soooo. Yeah. I&#8217;m here. Still here. I know that I haven&#8217;t provided a real update in months, and I&#8217;m sorry for that. I would say something like, &#8220;a number of life-related events took over and I haven&#8217;t been left with much time to work on side projects,&#8221; but I know that&#8217;s a cop-out. I&#8217;ve always believed that you make time for the things that are important to you, and the truth is that I&#8217;ve been making a lot of time activities other than working on this game. I&#8217;ve painted 40K models, built an AR-15 rifle, completely overhauled my financial infrastructure, played Mass Effect 2, StarCraft 2, and S.T.A.L.K.E.R.: Call of Pripyat (awesome games, BTW), and got a hunting license and a driver&#8217;s license (finally). So I&#8217;ve had the time, I just chose to spend it elsewhere.</p>
<p>The reason I&#8217;ve been avoiding this project is because I became demoralized by the lack of progress and the challenge of learning multiple new toolsets at once. But that&#8217;s stupid, and games don&#8217;t create themselves. I&#8217;ve resolved to push forward and aggressively learn the tools to gain confidence. You can&#8217;t become any better at a programming language that you&#8217;re afraid of using!</p>
<p>I&#8217;ve done a couple of things recently:</p>
<ol>
<li>Added a method to randomly determine a land pixel</li>
<li>Used that to seed the planet with preliminary artwork for goody huts and initial bases</li>
<li>Implemented gravity that pulls affected objects toward the center of the planet</li>
<li>Added a setting to determine the mountainousness of the land area</li>
</ol>
<p>So here&#8217;s what the globe looks like now:</p>
<p><a href="http://www.flickr.com/photos/18245812@N00/4857486118/" title="planet_seeded"><img src="http://farm5.static.flickr.com/4140/4857486118_8f15e5eeff.jpg" width="497" height="500" alt="planet_seeded" /></a></p>
<p>The little pointy thingies are placeholder models for the goody huts. What do I mean by &#8220;goody huts&#8221;? Well, it&#8217;s <a href="http://www.experts123.com/q/what-are-goody-huts.html">sort of a longstanding Civilization tradition</a> to scatter the map with areas that yield a one-time bonus of some sort when conquered by a military unit. <em>Civilization</em> has actual huts; <em>Call To Power</em> has stonehenges and Easter Island heads; <em>Alpha Centauri</em> has pods.</p>
<p>This game will have ruined cities left over from whatever apocalypse you choose to believe happened. Unlike goody huts that disappear once grabbed, the ruined cities will be semi-permanent fixtures. They represent an excellent source of resources for your nearby settlements, but they can be directly exploited by military units for a large one-time bonus and smaller long-term bonuses.</p>
<p>For example, a ruined city that contains a hospital can be used once to totally heal an army in an emergency, or it can be left intact and provide small medical bonuses for nearby settlements.</p>
<p>But this is all a bit far-off; right now the goody huts don&#8217;t actually do anything. My next big priority is creating a rudimentary unit movement framework. Gravity was the first big step; with that in place, I&#8217;ll be able to say simple things like &#8220;move forward for 3 seconds&#8221; rather than having to use calculus to precisely determine a unit&#8217;s movement path. This is good, because I don&#8217;t know calculus. <img src='http://s1.wp.com/wp-includes/images/smilies/icon_surprised.gif' alt=':o' class='wp-smiley' /> </p>
<p>I&#8217;m also investigating deleting the parts of the land mesh that are below the ocean sphere for a performance boost, but that&#8217;s turning out to be surprisingly challenging.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/79/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/79/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/79/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=79&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2010/08/03/wait-what/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>

		<media:content url="http://farm5.static.flickr.com/4140/4857486118_8f15e5eeff.jpg" medium="image">
			<media:title type="html">planet_seeded</media:title>
		</media:content>
	</item>
		<item>
		<title>To the two people who found this blog by searching for &#8220;god given right to take all of the land&#8221;</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2009/12/09/to-the-two-people-who-found-this-blog-by-searching-for-god-given-right-to-take-all-of-the-land/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2009/12/09/to-the-two-people-who-found-this-blog-by-searching-for-god-given-right-to-take-all-of-the-land/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 19:21:06 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plasmaschneidmaschine.wordpress.com/?p=75</guid>
		<description><![CDATA[Sorry, I don&#8217;t think this was what you were looking for!<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=75&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sorry, I don&#8217;t think this was what you were looking for!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/75/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/75/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/75/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=75&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2009/12/09/to-the-two-people-who-found-this-blog-by-searching-for-god-given-right-to-take-all-of-the-land/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>
	</item>
		<item>
		<title>It exists!</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2009/12/07/it-exists/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2009/12/07/it-exists/#comments</comments>
		<pubDate>Tue, 08 Dec 2009 05:26:30 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plasmaschneidmaschine.wordpress.com/?p=73</guid>
		<description><![CDATA[I&#8217;ve put what I have so far online so go try it out! I&#8217;m going to keep the game at that URL for the indefinite future so you can check it out anytime you want to see the progress. I&#8217;d embed the game right here into this post, but what is this, nursery school? If [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=73&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve put what I have so far online so <a href="http://techpaladin.com/planet.html">go try it out!</a>  I&#8217;m going to keep the game at that URL for the indefinite future so you can check it out anytime you want to see the progress.  I&#8217;d embed the game right here into this post, but <a href="http://techpaladin.com/2009/12/07/what-is-this-nursery-school/">what is this, nursery school?</a>  If you haven&#8217;t already done so, you&#8217;ll need to <a href="http://unity3d.com/webplayer/">download and install the Unity Web Player</a> to see it.</p>
<p>There are a few caveats:</p>
<ol>
<li><strong>This is a work-in-progress!</strong>  Things will be broken, ugly, and generally crappy.</li>
<li><strong>There&#8217;s no GUI,</strong> so the planet creates itself as soon as the game loads.  This means&#8230;</li>
<li><strong>It&#8217;s going hang while it loads.</strong>  Because this process takes about 10-13 seconds, so there&#8217;s a 10-13 second lag before you can interact with it.  Be patient when you click on that link because it may hang for a little bit.</li>
</ol>
<p>Once the planet loads, you can orbit around it by control-clicking and dragging.  You can right-click and drag too, but the Unity Player will instead pop up a menu if you&#8217;re not full screen.  Hopefully I can fix this soon.  To zoom in on the planet, use your scroll wheel or the two-finger-scroll feature of your laptop.  You can make another planet by reloading the page.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/73/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/73/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/73/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=73&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2009/12/07/it-exists/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>
	</item>
		<item>
		<title>No more Waterworlds!</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2009/12/07/no-more-waterworlds/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2009/12/07/no-more-waterworlds/#comments</comments>
		<pubDate>Mon, 07 Dec 2009 17:24:21 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plasmaschneidmaschine.wordpress.com/?p=70</guid>
		<description><![CDATA[…At least, not unless you really want one, because I&#8217;ve added a mechanism for you to determine how much land you want. All you have to do is specify a target percentage, basically. Under the hood, what it does is it first deforms the globe like it always does and then checks to see what [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=70&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>…At least, not unless you really want one, because I&#8217;ve added a mechanism for you to determine how much land you want.  All you have to do is specify a target percentage, basically.  Under the hood, what it does is it first deforms the globe like it always does and then checks to see what the actual land coverage percentage is.  It then compares this to your specified target.  If it&#8217;s more than 5% higher or lower then the target, it&#8217;ll scale the resulting mesh up or down (depending on whether there&#8217;s too much or too little land) a teensy bit at a time and then calculates the percentage again until it winds up with a value that&#8217;s within 5% of your target.  It&#8217;s pretty neat and it doesn&#8217;t add anything to the total generation time either!  Also, unlike Alpha Centauri, when you tell my algorithm to generate a planet with about 30% land, it makes one that has a few big continents rather than 500,000 tiny islands.  Booya!</p>
<p>I hope to have a playable tech demo uploaded sometime tonight or tomorrow.  I use the word &#8220;playable&#8221; in the loosest possible sense of the word here, since all you&#8217;ll be able to do at this point is generate a globe.  But hey, at least it&#8217;ll exist in a place where the entire internet can make fun of it!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/70/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/70/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/70/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=70&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2009/12/07/no-more-waterworlds/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>
	</item>
		<item>
		<title>Yes, I&#8217;m still alive!</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2009/12/06/yes-im-still-alive/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2009/12/06/yes-im-still-alive/#comments</comments>
		<pubDate>Sun, 06 Dec 2009 08:58:33 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plasmaschneidmaschine.wordpress.com/?p=62</guid>
		<description><![CDATA[What happened? Work happened. Basically, it got more demanding and I had to cut out development time. But I&#8217;ve normalized my schedule a bit and gotten a nice routine going and I&#8217;ve been able to squeeze the time back in. I&#8217;ll be realistic here: expect sporadic posts from now on. Some weeks I&#8217;ll have plenty [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=62&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>What happened?  Work happened.  Basically, it got more demanding and I had to cut out development time.  But I&#8217;ve normalized my schedule a bit and gotten a nice routine going and I&#8217;ve been able to squeeze the time back in.</p>
<p>I&#8217;ll be realistic here: expect sporadic posts from now on.  Some weeks I&#8217;ll have plenty of development time; others I&#8217;ll have none.  It&#8217;s just the nature of the beast, I&#8217;m afraid.</p>
<p>Anyway, when we left off, I had a dynamic globe that took 45 seconds to generate.  Well now I have a dynamic globe that takes 12 seconds to generate.</p>
<p>I know, not very impressive, right?  But I had to do some major re-architecting under the hood.  Before, I was taking up valuable time by generating the blended texture myself based on the heightmap and using an extremely inefficient algorithm to create both of them; now, I&#8217;m generating the heightmap using better math, then using it to create a four-color blending map before finally feeding that to a custom shader that does all the work of smooshing textures together based on the colors in the blending map.</p>
<p>Did any of that make any sense?  I don&#8217;t think so.  But the important part is that it&#8217;s more efficient and faster.  A lot faster!  From hitting &#8220;play&#8221; to looking at the end result, it typically takes 10-13 seconds on my computer, which is 3 years old now.</p>
<p>Oh yeah, and I also did some prettifying:</p>
<div style="text-align:center;"><img src="http://plasmaschneidmaschine.files.wordpress.com/2009/12/12-second-globe.jpg?w=480&#038;h=466" alt="12-second-globe.jpg" border="0" width="480" height="466" /></div>
<p>It still has the ugly seam (it&#8217;s actually worse now) and it still sometimes creates Waterworlds and Tatooines.  But I&#8217;m making progress again and I have some good ideas to fix the latter issue.  And one of these days, I&#8217;m going to upload a playable tech demo — one of the awesome things about Unity is that you can compile your game to a web-playable format, no matter how graphically complex it is!  You&#8217;ll have to grab their web player plug-in though, so you might want to <a href="http://unity3d.com/webplayer/">do so now</a>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/62/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/62/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/62/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=62&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2009/12/06/yes-im-still-alive/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>

		<media:content url="http://plasmaschneidmaschine.files.wordpress.com/2009/12/12-second-globe.jpg" medium="image">
			<media:title type="html">12-second-globe.jpg</media:title>
		</media:content>
	</item>
		<item>
		<title>Hackin&#8217; along</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2009/07/30/hackin-along/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2009/07/30/hackin-along/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 21:28:04 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plasmaschneidmaschine.wordpress.com/?p=59</guid>
		<description><![CDATA[Sorry for the lack of updates recently, but my life has been a bit of a whirlwind. I&#8217;m coding away, but haven&#8217;t had nearly as much time left over after other obligations as I would have liked. Nevertheless, I&#8217;m making progress. It&#8217;s sort of difficult to visually demonstrate efficiency, but I&#8217;ve managed to get the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=59&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Sorry for the lack of updates recently, but my life has been a bit of a whirlwind.  I&#8217;m coding away, but  haven&#8217;t had nearly as much time left over after other obligations as I would have liked.</p>
<p>Nevertheless, I&#8217;m making progress.  It&#8217;s sort of difficult to visually demonstrate efficiency, but I&#8217;ve managed to get the generation time for a globe like the one in the previous post down from four minutes to about 45 seconds.  Even better, about 30 of those seconds can be spent watching the terrain morph, so at least there&#8217;s something to look at while it happens.  15 seconds of nothing is still too long for me, and I&#8217;m convinced that I can make the texture generation process take under eight seconds.  If I can get it down to that, then it&#8217;s nothing to just toss in a progress bar and call it a day.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=59&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2009/07/30/hackin-along/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>
	</item>
		<item>
		<title>A texture jackpot</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2009/07/20/a-texture-jackpot/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2009/07/20/a-texture-jackpot/#comments</comments>
		<pubDate>Tue, 21 Jul 2009 06:08:05 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plasmaschneidmaschine.wordpress.com/?p=57</guid>
		<description><![CDATA[This update is sort of like two-in-one because I fixed two problems in the past few days: The texture is now made up of a series of smaller textures rather than flat pixel values. The texture generation algorithm now blends the different layers into each other. I think the results speak for themselves: Next up: [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=57&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This update is sort of like two-in-one because I fixed two problems in the past few days:</p>
<ol>
<li>The texture is now made up of a series of smaller textures rather than flat pixel values.</li>
<li>The texture generation algorithm now blends the different layers into each other.</li>
</ol>
<p>I think the results speak for themselves:</p>
<div style="text-align:center;"><img src="http://plasmaschneidmaschine.files.wordpress.com/2009/07/globe-textured-beautiful.png?w=486&#038;h=494" alt="globe-textured-beautiful.png" border="0" width="486" height="494" /></div>
<p>Next up: boring old <a href="http://www.google.com/search?hl=en&amp;q=premature+optimization+is+the+root+of+all+evil&amp;aq=f&amp;oq=&amp;aqi=g2">optimizations and efficiency fixes</a>.  This globe took a full four minutes to generate, about 3.5 of which were eaten up by my super-slow heightmap generation algorithm.  That&#8217;s the first target, and I think I can dramatically improve its speed.</p>
<p>My problem is that right now I read and write one pixel per calculation, which is horribly inefficient, as any techie can tell you that disk reads and writes are some of the slowest operations out there; it&#8217;s orders of magnitude faster to write a 1-gigabyte file than to write 1,000 1-megabtye files.</p>
<p>With this in mind, I think I&#8217;ll do the reads upfront, load the written values into an array and then apply the final pixel values all at once when the calculations are finished, rather than one at a time.  This approach will be tricky, as I&#8217;ll have to figure a fast method of converting from 2D (a plane) to 1D (an array) because my heightmap algorithm right now works by calculating 2D distance, which sort of doesn&#8217;t work if you happen to be working with fewer than two dimensions.  Ultimately, though, it&#8217;s the only way, as performance is pretty horrific right now due to this bottleneck.</p>
<p>Oh, and I&#8217;d also like to increase the resolution of the textures, but the efficiency fixes come first unless I&#8217;d like to wait until I&#8217;m an old man for a high-res globe to complete.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/57/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/57/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/57/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=57&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2009/07/20/a-texture-jackpot/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>

		<media:content url="http://plasmaschneidmaschine.files.wordpress.com/2009/07/globe-textured-beautiful.png" medium="image">
			<media:title type="html">globe-textured-beautiful.png</media:title>
		</media:content>
	</item>
		<item>
		<title>DAS TEXTURE IST HIER</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2009/07/17/das-texture-ist-hier/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2009/07/17/das-texture-ist-hier/#comments</comments>
		<pubDate>Fri, 17 Jul 2009 07:56:41 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plasmaschneidmaschine.wordpress.com/?p=52</guid>
		<description><![CDATA[Days of slaving over my algorithms has finally paid off! I have successfully managed to generate a texture from a heightmap and apply it to my random globe. As usual, this is a rough attempt and the visual quality isn&#8217;t where I&#8217;d like it to be yet, but there are a squillion tweaks that I [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=52&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Days of slaving over my algorithms has finally paid off!  I have successfully managed to generate a texture from a heightmap and apply it to my random globe.  As usual, this is a rough attempt and the visual quality isn&#8217;t where I&#8217;d like it to be yet, but there are a squillion tweaks that I can do now that I&#8217;ve finally cleared the hurdle of randomly generating a texture pixel-by-pixel to begin with.</p>
<div style="text-align:center;"><img src="http://plasmaschneidmaschine.files.wordpress.com/2009/07/3-globes-textured.png?w=500&#038;h=494" border="0" alt="3-globes-textured.png" width="500" height="494" /></div>
<p>This graphic is similar to the last one, only with the addition of the texture.  At the top is the finished globe; beneath it is the texture that has been applied to it; and beneath that is the extrapolated heightmap that was used to generate the texture.</p>
<p>More Updates will follow shortly.  The approach I think I&#8217;ll try next is documented <a href="http://www.cprogramming.com/discussionarticles/texture_generation.html">here</a> (scroll to the bottom for the ultimate goal), and I think it won&#8217;t be long at all until my globes are looking as nice as the terrains there!</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/52/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/52/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/52/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=52&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2009/07/17/das-texture-ist-hier/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>

		<media:content url="http://plasmaschneidmaschine.files.wordpress.com/2009/07/3-globes-textured.png" medium="image">
			<media:title type="html">3-globes-textured.png</media:title>
		</media:content>
	</item>
		<item>
		<title>An idea…</title>
		<link>http://plasmaschneidmaschine.wordpress.com/2009/07/14/an-idea%e2%80%a6/</link>
		<comments>http://plasmaschneidmaschine.wordpress.com/2009/07/14/an-idea%e2%80%a6/#comments</comments>
		<pubDate>Wed, 15 Jul 2009 03:50:44 +0000</pubDate>
		<dc:creator>Nate</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://plasmaschneidmaschine.wordpress.com/?p=49</guid>
		<description><![CDATA[I&#8217;ve found no less than a treasure trove of resources on how to create terrains and textures from heightmaps, but this hasn&#8217;t helped me, because I&#8217;m bypassing the heightmap entirely by creating the terrain myself rather than creating a heightmap and generating the terrain from it. But I&#8217;ve been really banging my head against the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=49&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve found no less than a treasure trove of resources on how to create terrains and textures from heightmaps, but this hasn&#8217;t helped me, because I&#8217;m bypassing the heightmap entirely by creating the terrain myself rather than creating a heightmap and generating the terrain from it.</p>
<p>But I&#8217;ve been really banging my head against the wall about this texture issue.  And then it hit me (the wall, maybe!): if I can super-easily generate a texture from a heightmap, how hard would it be to create a heightmap from a terrain?  If I could just do that, then I could make a terrain from it with no problem.</p>
<p>It intrigued me.  The biggest problem I was running into was that there weren&#8217;t enough vertices to paint one pixel per vertex; I would up with unpainted black areas.  I had contemplated drawing circles or even fancy radial gradients, but I had NO IDEA how I would get the colors to mix properly given how colors are stored in Unity.</p>
<p>But it would actually be very easy do draw circles or gradients if I didn&#8217;t have to worry about complicated color mixing.  And I wouldn&#8217;t have to worry about complicated color mixing if there were only one color.  And there&#8217;s only one color in a heightmap&#8230;</p>
<p>Everything seemed to be pushing me in the direction of generating a heightmap from my terrain mesh.  Which is funny, since heightmaps are almost always used to generate meshes themselves, not the reverse!  Still, it had some promise.</p>
<p>Having decided to do it, I had to figure out how to draw radial gradients pixel-by-pixel.  Summoning up all my high school math knowledge, I actually managed to do it!  Basically, I had each pixel calculate its distance from the center and dampen its color value accordingly: a pixel right in between the center and the edge would be 50% as bright as the center pixel; one 90% to the edge would be 10% as bright as the center one and so on.  Then I just had these pixels add their color values to the color values of the pixels they were about to replace.  In other words, a bright pixel that gets a bright pixel painted on top of it becomes twice as bright.</p>
<p>Here are three random globes and the heightmaps they generated.  I stuck the heightmaps themselves onto the globes in lieu of textures because I couldn&#8217;t stand those beastly squares any more.</p>
<div style="text-align:center;"><img src="http://plasmaschneidmaschine.files.wordpress.com/2009/07/3-globes-heightmaps.png?w=500&#038;h=324" alt="3-globes-heightmaps.png" border="0" width="500" height="324" /></div>
<p>The next step is basically to loop through the heightmap and determine for each pixel what color to apply to the pixel in that same spot on the texture.  It seems easy, but I&#8217;m still working on it.  And there&#8217;s an obvious performance hit to adding this intermediate heightmap generation step, but I think it&#8217;s worth it if it gets me farther to my goal.  And once I reach it, maybe I&#8217;ll figure out how to create the texture without a heightmap.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/plasmaschneidmaschine.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/plasmaschneidmaschine.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/plasmaschneidmaschine.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/plasmaschneidmaschine.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/plasmaschneidmaschine.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/plasmaschneidmaschine.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/plasmaschneidmaschine.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/plasmaschneidmaschine.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/plasmaschneidmaschine.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/plasmaschneidmaschine.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/plasmaschneidmaschine.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/plasmaschneidmaschine.wordpress.com/49/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/plasmaschneidmaschine.wordpress.com/49/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/plasmaschneidmaschine.wordpress.com/49/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=plasmaschneidmaschine.wordpress.com&amp;blog=8467695&amp;post=49&amp;subd=plasmaschneidmaschine&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://plasmaschneidmaschine.wordpress.com/2009/07/14/an-idea%e2%80%a6/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e498b71e8c9dff0dd909547f3fa94e15?s=96&#38;d=identicon&#38;r=R" medium="image">
			<media:title type="html">Nate</media:title>
		</media:content>

		<media:content url="http://plasmaschneidmaschine.files.wordpress.com/2009/07/3-globes-heightmaps.png" medium="image">
			<media:title type="html">3-globes-heightmaps.png</media:title>
		</media:content>
	</item>
	</channel>
</rss>
