<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title><![CDATA[GMan's Mods & Stuff — How to manipulate a Terrain in real time?]]></title>
		<link>https://gprogs.com/viewtopic.php?id=429</link>
		<atom:link href="https://gprogs.com/extern.php?action=feed&amp;tid=429&amp;type=rss" rel="self" type="application/rss+xml" />
		<description><![CDATA[The most recent posts in How to manipulate a Terrain in real time?.]]></description>
		<lastBuildDate>Sun, 19 Dec 2010 10:58:40 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: How to manipulate a Terrain in real time?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1648#p1648</link>
			<description><![CDATA[<p>Thank you for your answer, but I don&#039;t want to use a heighmap-file because I want to manage the terraindata myself (ITerrainSceneNode seems not to support this).<br />The way it works now:<br />1.) I generate me random terrain data to have something nice to show (thanks to the diamond square thing...) which I save into a type created for them<br />2.) I use sceneManager.addHillPlaneMesh:IAnimatedMesh(...) to create a suitable mesh for my terrain in the right size<br />3.) I maniplulate this IAnimatedMesh of step 2 to get my terrain mesh using the terraindata<br />4.) To make the whole thing a little bit faster I create a OctreeSceneNode of the AnimatedMesh using sceneManager.addOctreeSceneNode:IMeshSceneNode(...) which will be the final, shown terrain mesh</p><br /><p>To manipulate the terrain-octree I make my manipulations on the AnimatedMesh and repeat step 4. The problem is, that the rendering of the created terrain like this, also in sizes like 32*32, is very slow (never higher than 30 FPS) while the terrain sample (size 256*256) is running with 300 FPS.<br />So the general question: How to be able to use the ITerrainSceneNode-Mesh optimizations on an manipulatable IMesh or IAnimatedMesh?</p><br /><p>I hope you can help me, if needed I will also public the source here so that you can test it yourself.</p>]]></description>
			<author><![CDATA[null@example.com (Lobby)]]></author>
			<pubDate>Sun, 19 Dec 2010 10:58:40 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1648#p1648</guid>
		</item>
		<item>
			<title><![CDATA[Re: How to manipulate a Terrain in real time?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1641#p1641</link>
			<description><![CDATA[<p>greetings <img src="https://gprogs.com/img/smilies/smile.png" width="15" height="15" alt="smile" />&nbsp; i have never done this before, but here&#039;s the concept:</p><p>1) use ISceneManager.addTerrainMesh() to add your mesh</p><p>2) use getMesh(0) on the returned animated mesh to get a mesh you can modify.&nbsp; keep a reference to this.</p><p>3) use ISceneManager.addMeshSceneNode() passing in result of #2 to create a scene node for your terrain.</p><p>you should be able to get the buffer from #2 and edit it.</p>]]></description>
			<author><![CDATA[null@example.com (gman)]]></author>
			<pubDate>Tue, 14 Dec 2010 12:28:00 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1641#p1641</guid>
		</item>
		<item>
			<title><![CDATA[How to manipulate a Terrain in real time?]]></title>
			<link>https://gprogs.com/viewtopic.php?pid=1637#p1637</link>
			<description><![CDATA[<p>At first, thumbs up for the new version <img src="https://gprogs.com/img/smilies/wink.png" width="15" height="15" alt="wink" /> .</p><p>Now the problem:<br />I want to manipulate a loaded terrain (from an image for example), but how can I do this? It would be nice if there would be such a simple thing as the terrain modify-comand in blitz3d (ModifyTerrain(terrain,x,y,height#)). But I can&#039;t find something like this and to work using the vertex-comands seems to be very difficult <img src="https://gprogs.com/img/smilies/sad.png" width="15" height="15" alt="sad" /> .<br />Any ideas? Is it an issue of Irrlicht or of your wonderful wrapper?</p><p>Hope you can help me,<br />lobby</p>]]></description>
			<author><![CDATA[null@example.com (Lobby)]]></author>
			<pubDate>Thu, 09 Dec 2010 20:07:35 +0000</pubDate>
			<guid>https://gprogs.com/viewtopic.php?pid=1637#p1637</guid>
		</item>
	</channel>
</rss>
