<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Maratis forum - Changing mesh origin via code]]></title>
	<link rel="self" href="http://forum.maratis3d.com/extern.php?action=feed&amp;tid=814&amp;type=atom"/>
	<updated>2013-10-21T20:35:12Z</updated>
	<generator>PunBB</generator>
	<id>http://forum.maratis3d.com/viewtopic.php?id=814</id>
		<entry>
			<title type="html"><![CDATA[Re: Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5661#p5661"/>
			<content type="html"><![CDATA[<p><img src="http://forum.maratis3d.com/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-10-21T20:35:12Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5661#p5661</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5655#p5655"/>
			<content type="html"><![CDATA[<p>That&#039;s it, thank you <img src="http://forum.maratis3d.com/img/smilies/big_smile.png" width="15" height="15" alt="big_smile" /></p>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2013-10-21T19:37:54Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5655#p5655</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5649#p5649"/>
			<content type="html"><![CDATA[<p>so maybe your entity bounding box is not up to date :<br />*entity-&gt;getBoundingBox() = *mesh-&gt;getBoundingBox();</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-10-21T17:51:20Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5649#p5649</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5646#p5646"/>
			<content type="html"><![CDATA[<p>Nope, it doesn&#039;t solve it.</p>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2013-10-21T16:12:03Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5646#p5646</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5643#p5643"/>
			<content type="html"><![CDATA[<p>try to use :</p><p>// for each sub mesh you modify :<br />subMesh-&gt;getBoundingBox()-&gt;initFromPoints(subMesh-&gt;getVertices(), subMesh-&gt;getVerticesSize());</p><p>// then update the mesh :<br />mesh-&gt;updateBoundingBox();</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-10-21T14:48:04Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5643#p5643</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5633#p5633"/>
			<content type="html"><![CDATA[<p>I bring up this again because while changing the bounding box does work, I noticed that the entity is not immediately visible until the camera exits and re-enter the new bounding box. I&#039;m wondering what I need to update to avoid this little glitch.</p>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2013-10-20T20:23:59Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5633#p5633</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5404#p5404"/>
			<content type="html"><![CDATA[<p>Oh I had thought that! But then I just confused the bounding box for a collision thing and said &quot;no it doesn&#039;t matter&quot; eheh.<br />For collision it&#039;s the collision shape, not the bounding box.</p><p>Solved.</p>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2013-10-08T17:02:30Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5404#p5404</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Re: Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5402#p5402"/>
			<content type="html"><![CDATA[<p>you need to recompute the bounding box<br />if it&#039;s just a translation of vertices, translate the bounding box too.</p>]]></content>
			<author>
				<name><![CDATA[anael]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2</uri>
			</author>
			<updated>2013-10-08T16:41:19Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5402#p5402</id>
		</entry>
		<entry>
			<title type="html"><![CDATA[Changing mesh origin via code]]></title>
			<link rel="alternate" href="http://forum.maratis3d.com/viewtopic.php?pid=5398#p5398"/>
			<content type="html"><![CDATA[<p>I&#039;ve tried moving all the vertices by the amount that I need. It works but basing on the camera angle sometimes the mesh disappears. I guess it has something to do with normals or text coords?<br />Any help?</p>]]></content>
			<author>
				<name><![CDATA[255]]></name>
				<uri>http://forum.maratis3d.com/profile.php?id=2540</uri>
			</author>
			<updated>2013-10-08T12:18:00Z</updated>
			<id>http://forum.maratis3d.com/viewtopic.php?pid=5398#p5398</id>
		</entry>
</feed>
