<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Maratis forum - how deform a mesh?]]></title>
		<link>http://forum.maratis3d.com/viewtopic.php?id=484</link>
		<description><![CDATA[The most recent posts in how deform a mesh?.]]></description>
		<lastBuildDate>Sat, 01 Dec 2012 01:55:52 +0000</lastBuildDate>
		<generator>PunBB</generator>
		<item>
			<title><![CDATA[Re: how deform a mesh?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2987#p2987</link>
			<description><![CDATA[<p>i want change a terrain in realtime, i will be try this code, thankyou very much.</p>]]></description>
			<author><![CDATA[dummy@example.com (3dcat)]]></author>
			<pubDate>Sat, 01 Dec 2012 01:55:52 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2987#p2987</guid>
		</item>
		<item>
			<title><![CDATA[Re: how deform a mesh?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2986#p2986</link>
			<description><![CDATA[<p>Also, depending on what you want to do, you can just use a vertex shader.</p>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 30 Nov 2012 22:48:23 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2986#p2986</guid>
		</item>
		<item>
			<title><![CDATA[Re: how deform a mesh?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2985#p2985</link>
			<description><![CDATA[<p>In c++, you can access the mesh of an entity (or the meshs of a scene).<br />From an entity :</p><div class="codebox"><pre><code>        // mesh
        MMesh * mesh = entity-&gt;getMesh();
        if(! mesh)
                return;

        // sub-meshs
        unsigned int s, sSize = mesh-&gt;getSubMeshsNumber();
        for(s=0; s&lt;sSize; s++)
        {
                MSubMesh * subMesh = &amp;mesh-&gt;getSubMeshs()[s];

                // vertices
                MVector3 * vertices = subMesh-&gt;getVertices();
                if(! vertices)
                        continue;

                unsigned int v, vSize = subMesh-&gt;getVerticesSize();
                for(v=0; v&lt;vSize; v++)
                        vertices[v] += MVector3(1, 0, 0); // ex : translate
        }

        mesh-&gt;updateBoundingBox();</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (anael)]]></author>
			<pubDate>Fri, 30 Nov 2012 22:42:56 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2985#p2985</guid>
		</item>
		<item>
			<title><![CDATA[how deform a mesh?]]></title>
			<link>http://forum.maratis3d.com/viewtopic.php?pid=2984#p2984</link>
			<description><![CDATA[<p>hello, i see the documentation but not found how make this, i need deform a mesh (vertex) in runtime, thanks.</p>]]></description>
			<author><![CDATA[dummy@example.com (3dcat)]]></author>
			<pubDate>Fri, 30 Nov 2012 20:44:19 +0000</pubDate>
			<guid>http://forum.maratis3d.com/viewtopic.php?pid=2984#p2984</guid>
		</item>
	</channel>
</rss>
