<?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: Heightmap Terrain Rendering</title>
	<atom:link href="http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.catalinzima.com</link>
	<description>XNA Tutorials, Samples and Thoughts</description>
	<lastBuildDate>Wed, 01 Feb 2012 17:36:08 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
	<item>
		<title>By: XullrippeR</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-58426</link>
		<dc:creator>XullrippeR</dc:creator>
		<pubDate>Wed, 16 Nov 2011 15:16:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-58426</guid>
		<description>Great tutorial!
Now I actually understand how a terrain works :-)

Based on your terrain, I implemented my own terrain and now I&#039;m coding a triangle picker, that can see on which triangle of the terrain the mouse if going over.

But I&#039;m stuck with this:
Is it possible to get the new positions of the vertices, that have been moved by the shader/effect?
My &quot;triangle picker&quot; works, but only with the old positions of the vertices.

Thanks in advance!</description>
		<content:encoded><![CDATA[<p>Great tutorial!<br />
Now I actually understand how a terrain works <img src='http://www.catalinzima.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Based on your terrain, I implemented my own terrain and now I&#8217;m coding a triangle picker, that can see on which triangle of the terrain the mouse if going over.</p>
<p>But I&#8217;m stuck with this:<br />
Is it possible to get the new positions of the vertices, that have been moved by the shader/effect?<br />
My &#8220;triangle picker&#8221; works, but only with the old positions of the vertices.</p>
<p>Thanks in advance!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: XullrippeR</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-58424</link>
		<dc:creator>XullrippeR</dc:creator>
		<pubDate>Wed, 16 Nov 2011 15:13:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-58424</guid>
		<description>.</description>
		<content:encoded><![CDATA[<p>.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alex</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-37358</link>
		<dc:creator>Alex</dc:creator>
		<pubDate>Sat, 16 Jul 2011 22:53:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-37358</guid>
		<description>Just thought I&#039;d share this with you guys:

http://www.megaupload.com/?d=9IUCNV4V

It&#039;s a XNA 4.0 version of this sample. Hope you guys can use it. Catalin, feel free to add this to your blog if you want, after all the code was yours to begin with :).

Alex</description>
		<content:encoded><![CDATA[<p>Just thought I&#8217;d share this with you guys:</p>
<p><a href="http://www.megaupload.com/?d=9IUCNV4V" rel="nofollow">http://www.megaupload.com/?d=9IUCNV4V</a></p>
<p>It&#8217;s a XNA 4.0 version of this sample. Hope you guys can use it. Catalin, feel free to add this to your blog if you want, after all the code was yours to begin with <img src='http://www.catalinzima.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Alex</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barret MacIntosh</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-37155</link>
		<dc:creator>Barret MacIntosh</dc:creator>
		<pubDate>Thu, 14 Jul 2011 08:30:04 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-37155</guid>
		<description>@AsemaKhan and the next person that needs to know...

in the grid.cs class replace:
draw()
{
  Game.GraphicsDevice.SetVertexBuffer( vb );
  Game.GraphicsDevice.Indices = ib;
  Game.GraphicsDevice.DrawIndexedPrimitives( PrimitiveType.TriangleList, 0, 0, ( Dimension + 1 ) * ( Dimension + 1 ), 0, 2 * Dimension * Dimension );
}

and the:
public void LoadGraphicsContent()
{
  vb = new VertexBuffer( Game.GraphicsDevice, VertexPositionNormalTexture.VertexDeclaration, ( Dimension + 1 ) * ( Dimension + 1 ), BufferUsage.None );
  ib = new IndexBuffer( Game.GraphicsDevice, typeof(int),  6 * Dimension * Dimension, BufferUsage.None );
  vb.SetData( vertices );
  ib.SetData( indices );
}

And you should be good to go!

I could probably do a whole port, but I have no where to post it...</description>
		<content:encoded><![CDATA[<p>@AsemaKhan and the next person that needs to know&#8230;</p>
<p>in the grid.cs class replace:<br />
draw()<br />
{<br />
  Game.GraphicsDevice.SetVertexBuffer( vb );<br />
  Game.GraphicsDevice.Indices = ib;<br />
  Game.GraphicsDevice.DrawIndexedPrimitives( PrimitiveType.TriangleList, 0, 0, ( Dimension + 1 ) * ( Dimension + 1 ), 0, 2 * Dimension * Dimension );<br />
}</p>
<p>and the:<br />
public void LoadGraphicsContent()<br />
{<br />
  vb = new VertexBuffer( Game.GraphicsDevice, VertexPositionNormalTexture.VertexDeclaration, ( Dimension + 1 ) * ( Dimension + 1 ), BufferUsage.None );<br />
  ib = new IndexBuffer( Game.GraphicsDevice, typeof(int),  6 * Dimension * Dimension, BufferUsage.None );<br />
  vb.SetData( vertices );<br />
  ib.SetData( indices );<br />
}</p>
<p>And you should be good to go!</p>
<p>I could probably do a whole port, but I have no where to post it&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Barret MacIntosh</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-37154</link>
		<dc:creator>Barret MacIntosh</dc:creator>
		<pubDate>Thu, 14 Jul 2011 08:03:24 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-37154</guid>
		<description>Converting to xna 4.0:

error 1: error X3000: syntax error: unexpected token &#039;PixelShader&#039;	

solution : change the name of it to something else (and make sure to update the technique)

error 2 : XNA Framework HiDef profile does not support vertex texture format Color.

if you try to use Reach you will get this error: XNA Framework Reach profile does not support vertex shader model 3.0.	

solution: right click height1.dds in the solution and select properties.  Under &#039;content processor&#039; change  &#039;Texture Format&#039; to NoChange.  This is easier than Paul C&#039;s solution.  

To be honest, I only used the textures, grid.cs and .fx files in my code.  So there could be other errors.</description>
		<content:encoded><![CDATA[<p>Converting to xna 4.0:</p>
<p>error 1: error X3000: syntax error: unexpected token &#8216;PixelShader&#8217;	</p>
<p>solution : change the name of it to something else (and make sure to update the technique)</p>
<p>error 2 : XNA Framework HiDef profile does not support vertex texture format Color.</p>
<p>if you try to use Reach you will get this error: XNA Framework Reach profile does not support vertex shader model 3.0.	</p>
<p>solution: right click height1.dds in the solution and select properties.  Under &#8216;content processor&#8217; change  &#8216;Texture Format&#8217; to NoChange.  This is easier than Paul C&#8217;s solution.  </p>
<p>To be honest, I only used the textures, grid.cs and .fx files in my code.  So there could be other errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul C</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-34132</link>
		<dc:creator>Paul C</dc:creator>
		<pubDate>Sun, 01 May 2011 09:46:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-34132</guid>
		<description>For those looking to use this in XNA 4, you just have to convert the height map to a valid format, like Vector4.

I made a quick method to do this, and it seems to work: 
 
var OutTex =  new Texture2D(GraphicsDevice, InTex.Width, InTex.Height, false, SurfaceFormat.Vector4);

            Color[] In = new Color[InTex.Width * InTex.Height];
            Vector4[] Out = new Vector4[InTex.Width * InTex.Height];
            InTex.GetData(In);
            for (int i = 0; i &lt; InTex.Width * InTex.Height; i++)
                Out[i] = new Vector4(In[i].R / 255f, In[i].G / 255f, In[i].B / 255f, In[i].A / 255f);
            OutTex.SetData(Out);

            return OutTex;

Thanks again Catalin for another great article, I&#039;ve learn a ton from your site.</description>
		<content:encoded><![CDATA[<p>For those looking to use this in XNA 4, you just have to convert the height map to a valid format, like Vector4.</p>
<p>I made a quick method to do this, and it seems to work: </p>
<p>var OutTex =  new Texture2D(GraphicsDevice, InTex.Width, InTex.Height, false, SurfaceFormat.Vector4);</p>
<p>            Color[] In = new Color[InTex.Width * InTex.Height];<br />
            Vector4[] Out = new Vector4[InTex.Width * InTex.Height];<br />
            InTex.GetData(In);<br />
            for (int i = 0; i &lt; InTex.Width * InTex.Height; i++)<br />
                Out[i] = new Vector4(In[i].R / 255f, In[i].G / 255f, In[i].B / 255f, In[i].A / 255f);<br />
            OutTex.SetData(Out);</p>
<p>            return OutTex;</p>
<p>Thanks again Catalin for another great article, I&#039;ve learn a ton from your site.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Catalin Zima</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-31342</link>
		<dc:creator>Catalin Zima</dc:creator>
		<pubDate>Tue, 05 Oct 2010 12:56:38 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-31342</guid>
		<description>The tutorial was written for a much older version of XNA (I believe it was 2.0 at that time), and there have been some breaking changes in the new version of XNA</description>
		<content:encoded><![CDATA[<p>The tutorial was written for a much older version of XNA (I believe it was 2.0 at that time), and there have been some breaking changes in the new version of XNA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: AsemaKhan</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-31341</link>
		<dc:creator>AsemaKhan</dc:creator>
		<pubDate>Tue, 05 Oct 2010 12:54:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-31341</guid>
		<description>Hi !
I am trying to load your code but its not working and I am getting these errors.



Warning	1	Member &#039;Heightmap.Game1.LoadGraphicsContent(bool)&#039; overrides obsolete member &#039;Microsoft.Xna.Framework.Game.LoadGraphicsContent(bool)&#039;. Add the Obsolete attribute to &#039;Heightmap.Game1.LoadGraphicsContent(bool)&#039;.	



Warning	2	Member &#039;Heightmap.Game1.UnloadGraphicsContent(bool)&#039; overrides obsolete member &#039;Microsoft.Xna.Framework.Game.UnloadGraphicsContent(bool)&#039;. Add the Obsolete attribute to &#039;Heightmap.Game1.UnloadGraphicsContent(bool)&#039;.	

Error	3	The name &#039;ResourceUsage&#039; does not exist in the current context	

Error	4	The name &#039;ResourceManagementMode&#039; does not exist in the current context	

Error	5	The name &#039;ResourceUsage&#039; does not exist in the current context	

Error	6	The name &#039;ResourceManagementMode&#039; does not exist in the current context

Can you please tell me what I am missing ?</description>
		<content:encoded><![CDATA[<p>Hi !<br />
I am trying to load your code but its not working and I am getting these errors.</p>
<p>Warning	1	Member &#8216;Heightmap.Game1.LoadGraphicsContent(bool)&#8217; overrides obsolete member &#8216;Microsoft.Xna.Framework.Game.LoadGraphicsContent(bool)&#8217;. Add the Obsolete attribute to &#8216;Heightmap.Game1.LoadGraphicsContent(bool)&#8217;.	</p>
<p>Warning	2	Member &#8216;Heightmap.Game1.UnloadGraphicsContent(bool)&#8217; overrides obsolete member &#8216;Microsoft.Xna.Framework.Game.UnloadGraphicsContent(bool)&#8217;. Add the Obsolete attribute to &#8216;Heightmap.Game1.UnloadGraphicsContent(bool)&#8217;.	</p>
<p>Error	3	The name &#8216;ResourceUsage&#8217; does not exist in the current context	</p>
<p>Error	4	The name &#8216;ResourceManagementMode&#8217; does not exist in the current context	</p>
<p>Error	5	The name &#8216;ResourceUsage&#8217; does not exist in the current context	</p>
<p>Error	6	The name &#8216;ResourceManagementMode&#8217; does not exist in the current context</p>
<p>Can you please tell me what I am missing ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bracher</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-31284</link>
		<dc:creator>Bracher</dc:creator>
		<pubDate>Tue, 28 Sep 2010 20:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-31284</guid>
		<description>Awesome stuff thanks man!</description>
		<content:encoded><![CDATA[<p>Awesome stuff thanks man!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: hinrustjum</title>
		<link>http://www.catalinzima.com/tutorials/4-uses-of-vtf/terrain-rendering-using-heightmaps/comment-page-1/#comment-29729</link>
		<dc:creator>hinrustjum</dc:creator>
		<pubDate>Fri, 18 Jun 2010 15:22:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.catalinzima.com/?page_id=85#comment-29729</guid>
		<description>Девушки джинсыкредо mp3 бесплатно пикантное видео - порно нудизм бесплатные миди учебная бесплатная библиотека.   порно тв бесплатноНа мой взгляд данную проблему можно разрешить так.   Тест психологический пройти, а также красивые порно фотки небритые девушки порно фото большие попки бляди щигры стриптиз красивых девушек бесплатные nokia s60 последнее поздравление драйвера видео sis650 740 3d видео бесплатно скачать бесплатные обои samsungвидео о сексе.   Система работает со всеми популярными системами платежей и СМС.</description>
		<content:encoded><![CDATA[<p>Девушки джинсыкредо mp3 бесплатно пикантное видео &#8211; порно нудизм бесплатные миди учебная бесплатная библиотека.   порно тв бесплатноНа мой взгляд данную проблему можно разрешить так.   Тест психологический пройти, а также красивые порно фотки небритые девушки порно фото большие попки бляди щигры стриптиз красивых девушек бесплатные nokia s60 последнее поздравление драйвера видео sis650 740 3d видео бесплатно скачать бесплатные обои samsungвидео о сексе.   Система работает со всеми популярными системами платежей и СМС.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

