<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[GMan's Mods & Stuff — How to manipulate a Terrain in real time?]]></title>
	<link rel="self" href="https://gprogs.com/extern.php?action=feed&amp;tid=429&amp;type=atom" />
	<updated>2010-12-19T10:58:40Z</updated>
	<generator>PunBB</generator>
	<id>https://gprogs.com/viewtopic.php?id=429</id>
		<entry>
			<title type="html"><![CDATA[Re: How to manipulate a Terrain in real time?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1648#p1648" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Lobby]]></name>
				<uri>https://gprogs.com/profile.php?id=298</uri>
			</author>
			<updated>2010-12-19T10:58:40Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1648#p1648</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: How to manipulate a Terrain in real time?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1641#p1641" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[gman]]></name>
				<uri>https://gprogs.com/profile.php?id=2</uri>
			</author>
			<updated>2010-12-14T12:28:00Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1641#p1641</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[How to manipulate a Terrain in real time?]]></title>
			<link rel="alternate" href="https://gprogs.com/viewtopic.php?pid=1637#p1637" />
			<content type="html"><![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>]]></content>
			<author>
				<name><![CDATA[Lobby]]></name>
				<uri>https://gprogs.com/profile.php?id=298</uri>
			</author>
			<updated>2010-12-09T20:07:35Z</updated>
			<id>https://gprogs.com/viewtopic.php?pid=1637#p1637</id>
		</entry>
</feed>
