<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
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/"
> <channel><title>Comments on: 3. Terrain Rendering</title> <atom:link href="http://www.swiftless.com/tutorials/terrain/3_rendering.html/feed" rel="self" type="application/rss+xml" /><link>http://www.swiftless.com/tutorials/terrain/3_rendering.html</link> <description>Game Programming and Computer Graphics Tutorials</description> <lastBuildDate>Thu, 09 Sep 2010 21:03:34 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.0.1</generator> <item><title>By: Swiftless</title><link>http://www.swiftless.com/tutorials/terrain/3_rendering.html/comment-page-1#comment-767</link> <dc:creator>Swiftless</dc:creator> <pubDate>Tue, 01 Jun 2010 09:46:37 +0000</pubDate> <guid isPermaLink="false">http://swiftless.com/wordpress/?p=252#comment-767</guid> <description>Hey Kagulos,Each pixel in the height file, in this case the .raw file, is an integer value between 0 and 254 (inclusive). In this case, my .raw file is made up of R values, each ranging from 0 to 254. Where 254 is white and 0 is black. Effectively a grayscale image. Therefore a value of 0 is a height of 0 and a value of 254 is a height of 254.So at pixel (x,y) in the file, we get a value from 0 to 254 according to the grayscale value.This does have the limitation that the landscape be of the same dimensions of the image file. But you can also branch out and use R, G and B values independently.For example, you could store all the height values in just the R portion of the colour. And then use G and B to store extra information, such as object placement or water table or plant data.I hope this clears it up a little bit.Cheers,
Swiftless</description> <content:encoded><![CDATA[<p>Hey Kagulos,</p><p>Each pixel in the height file, in this case the .raw file, is an integer value between 0 and 254 (inclusive). In this case, my .raw file is made up of R values, each ranging from 0 to 254. Where 254 is white and 0 is black. Effectively a grayscale image. Therefore a value of 0 is a height of 0 and a value of 254 is a height of 254.</p><p>So at pixel (x,y) in the file, we get a value from 0 to 254 according to the grayscale value.</p><p>This does have the limitation that the landscape be of the same dimensions of the image file. But you can also branch out and use R, G and B values independently.</p><p>For example, you could store all the height values in just the R portion of the colour. And then use G and B to store extra information, such as object placement or water table or plant data.</p><p>I hope this clears it up a little bit.</p><p>Cheers,<br /> Swiftless</p> ]]></content:encoded> </item> <item><title>By: Kagulos</title><link>http://www.swiftless.com/tutorials/terrain/3_rendering.html/comment-page-1#comment-766</link> <dc:creator>Kagulos</dc:creator> <pubDate>Tue, 01 Jun 2010 09:14:32 +0000</pubDate> <guid isPermaLink="false">http://swiftless.com/wordpress/?p=252#comment-766</guid> <description>Okay,
this stuff is a little bit harder then the other tutorials :)I&#039;ve got a question:
How do we create the points?You&#039;ve wrote:
&quot;I am placing a loop that will create a vertex at every point along the X and the Z axis at their respective Y positions&quot;i&#039;ve understood that we get the positions of the vertex from the .raw-file.Now i&#039;m not quite sure how the .raw-file saved the hight&#039;s.Can you explain it, please?</description> <content:encoded><![CDATA[<p>Okay,<br /> this stuff is a little bit harder then the other tutorials <img src='http://www.swiftless.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /></p><p>I&#8217;ve got a question:<br /> How do we create the points?</p><p>You&#8217;ve wrote:<br /> &#8220;I am placing a loop that will create a vertex at every point along the X and the Z axis at their respective Y positions&#8221;</p><p>i&#8217;ve understood that we get the positions of the vertex from the .raw-file.</p><p>Now i&#8217;m not quite sure how the .raw-file saved the hight&#8217;s.</p><p>Can you explain it, please?</p> ]]></content:encoded> </item> </channel> </rss>