<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/1098" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2007-04-22T20:14:54+00:00</updated>

	<author><name><![CDATA[Real-Time Physics Simulation Forum]]></name></author>
	<id>https://pybullet.org/Bullet/phpBB3/app.php/feed/topic/1098</id>

		<entry>
		<author><name><![CDATA[madMAx4]]></name></author>
		<updated>2007-04-22T11:02:55+00:00</updated>

		<published>2007-04-22T11:02:55+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4046#p4046</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4046#p4046"/>
		<title type="html"><![CDATA[[solved] how to set face normals?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4046#p4046"><![CDATA[
GIMPACT collision works great.<br>i simplified the whole thing by using a box for the terrain too.<br><br>now, when the box falls down it collides not with the hull of the terrain box, but with the inner sides of the faces of the terrain box.<br>so i flipped all the face normals in blender and actually the box collides  with the hull of the terrain now. <br><br>but the other side is that my grahpics engine (irrlicht) uses the same mesh file and therefore displays it wrong, with the face normals vice-versa.<br><br>then i compared the 2 different obj files, one with the original face normals and one with the flipped normals and the difference is the order in which the vertex indices of the faces are defined:<br><br>original face:<div class="codebox"><p>Code: </p><pre><code>f 1 2 3 4</code></pre></div>and with flipped normals:<div class="codebox"><p>Code: </p><pre><code>f 1 4 3 2</code></pre></div>so i have to flip the normals when importing the obj into bullet.<br>i think GLModel can do that for me, lets see.<br><br>thx so far<br><br>EDIT: GLMmodel::glmReverseWinding() does it <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1706">madMAx4</a> — Sun Apr 22, 2007 11:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2007-04-22T09:11:03+00:00</updated>

		<published>2007-04-22T09:11:03+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4044#p4044</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4044#p4044"/>
		<title type="html"><![CDATA[[solved] how to set face normals?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4044#p4044"><![CDATA[
You don't need to set facenormals using Bullet.<br><br>Please check the MovingConcaveDemo, for an example of GIMPACT.<br>For most cases, it is recommended to approximate moving concave objects with a convex or a grounp of convexes inside a compound shape.<br><br>The GIMPACT contribution is not well tested against latest Bullet mesh improvemens. This needs to be tested properly, but for a start, you might want to try if disabling 'quantization' helps.<br><br>Hope this helps,<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Sun Apr 22, 2007 9:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[madMAx4]]></name></author>
		<updated>2007-04-22T20:14:54+00:00</updated>

		<published>2007-04-21T18:43:37+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4042#p4042</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4042#p4042"/>
		<title type="html"><![CDATA[[solved] how to set face normals?]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=4042#p4042"><![CDATA[
Hi,<br><br>I got GIMPACT collision to work properly.<br>but now i have a terrain mesh that lets objects fall through. so i turned the gravity vector from -10 to 10 an put a box below the terrain and everything works great.<br><br>now, how can i turn the terrain mesh that objects falling down don't fall through?<br>normally there are face normals defined, but i can't find such an attribute in btTriangleMesh and the others?<br><br>so how do you define them?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1706">madMAx4</a> — Sat Apr 21, 2007 6:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
