<?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/11155" />

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2016-05-18T17:53:01+00:00</updated>

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

		<entry>
		<author><name><![CDATA[irlanrobson]]></name></author>
		<updated>2016-05-18T17:53:01+00:00</updated>

		<published>2016-05-18T17:53:01+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37581#p37581</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37581#p37581"/>
		<title type="html"><![CDATA[Re: Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37581#p37581"><![CDATA[
Yeah, same thing here. Thanks.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11211">irlanrobson</a> — Wed May 18, 2016 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dirk Gregorius]]></name></author>
		<updated>2016-05-18T17:30:05+00:00</updated>

		<published>2016-05-18T17:30:05+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37580#p37580</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37580#p37580"/>
		<title type="html"><![CDATA[Re: Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37580#p37580"><![CDATA[
I am not sure if I would consider this a bug and spend time trying to fix this.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14">Dirk Gregorius</a> — Wed May 18, 2016 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irlanrobson]]></name></author>
		<updated>2016-05-18T16:06:18+00:00</updated>

		<published>2016-05-18T16:06:18+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37579#p37579</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37579#p37579"/>
		<title type="html"><![CDATA[Re: Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37579#p37579"><![CDATA[
Yeah. Obviously if the contact point doesn't align with the center of mass of Sphere 1 because of rouding errors being accumulated when projecting its center on the triangle, and if Sphere 2 does, then the latter will start sliding after some significant amount of time has passed.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11211">irlanrobson</a> — Wed May 18, 2016 4:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dirk Gregorius]]></name></author>
		<updated>2016-05-18T15:38:09+00:00</updated>

		<published>2016-05-18T15:38:09+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37578#p37578</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37578#p37578"/>
		<title type="html"><![CDATA[Re: Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37578#p37578"><![CDATA[
I am not sure I understand what the problem is. Are you saying that the closest point returned from GJK is not *exactly* projecting under the lowest sphere center and that the tiny offset due to numerical imprecision is making your sphere stack fall over?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14">Dirk Gregorius</a> — Wed May 18, 2016 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irlanrobson]]></name></author>
		<updated>2016-05-18T01:05:40+00:00</updated>

		<published>2016-05-18T01:05:40+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37574#p37574</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37574#p37574"/>
		<title type="html"><![CDATA[Re: Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37574#p37574"><![CDATA[
Okay, I tested the stack on a hull and now with the sphere stack starting from a different location, and looks like a numerical problem due to GJK barycentrics. If anyone is able to reproduce this same setup and post back the results I'd greatly appreciate and set this thread as solved. <br><br>Box (Hull)<br><br>Position = (0.0, 0.0, 0.0)<br>Density = 0.0 kg m^3<br>Friction = 1.0<br>Dimensions = 100 x 1 x 100 m^3 / Scale = (50, 1, 50)<br><br>Sphere 1<br><br>Position = (-30.0, 2.05, 10.0)<br>Density = 1 kg m^3<br>Friction = 1.0<br>Radius = 1.0 m<br><br>Sphere 2<br><br>Position = (-30.0, 4.55, 10.0)<br>Density = 1 kg m^3<br>Friction = 1.0<br>Radius = 1.0 m<br><br>Frequency = 60 Hz<br>Sleeping = 0<br>Warm Starting = 1<br>Vel. Iters = 8<br>Pos. Iters. = 2<br>Gravity = 9.8 m/s^2<br><br>After ~20 s Sphere 2 should start sliding along the z axis and the stack fall.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11211">irlanrobson</a> — Wed May 18, 2016 1:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dirk Gregorius]]></name></author>
		<updated>2016-05-17T21:31:02+00:00</updated>

		<published>2016-05-17T21:31:02+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37572#p37572</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37572#p37572"/>
		<title type="html"><![CDATA[Re: Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37572#p37572"><![CDATA[
Looks like a bug to me. I have no numerical issues at that scale.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14">Dirk Gregorius</a> — Tue May 17, 2016 9:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irlanrobson]]></name></author>
		<updated>2016-05-17T21:22:18+00:00</updated>

		<published>2016-05-17T21:22:18+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37571#p37571</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37571#p37571"/>
		<title type="html"><![CDATA[Re: Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37571#p37571"><![CDATA[
The support point is just the sphere center. <br><br>I'm pretty sure the implementation is correct as it is has been working very well since implemented. I just need to know if this is a common numerical problem for GJK (large shape sizes). I've read about this in the forums some weeks ago but can't remember exaclty where. <br><br>If I replace the triangle mesh with a hull of the same size (but the face being a quad now) this problem doesn't occurs.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11211">irlanrobson</a> — Tue May 17, 2016 9:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Dirk Gregorius]]></name></author>
		<updated>2016-05-17T20:57:24+00:00</updated>

		<published>2016-05-17T20:57:24+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37570#p37570</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37570#p37570"/>
		<title type="html"><![CDATA[Re: Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37570#p37570"><![CDATA[
How does the support function of sphere looks like?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=14">Dirk Gregorius</a> — Tue May 17, 2016 8:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[irlanrobson]]></name></author>
		<updated>2016-05-16T00:58:09+00:00</updated>

		<published>2016-05-16T00:58:09+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37563#p37563</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37563#p37563"/>
		<title type="html"><![CDATA[Numerical issues with GJK for large triangle areas]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=37563#p37563"><![CDATA[
I've noticed that my GJK implementation is suffering from numerical issues for a 3-simplex early out (e.g. the closest point is on a triangle), where the shapes involved are a sphere and a triangle.<br><br>What made me notice this was a vertical stack of 10 spheres falling over the following static triangle: v1 = (-50.0, 1.0, -50.0), v2 = (0.0, 1.0, 50.0), v3 = (50.0, 1.0, -50.0).<br><br>So, I tested a sphere of radius = 1 located at c = (-5.0, 2.0..n, 0.0) over the same triangle, and noticed the solver was fuzzy in the z-axis canonical direction. Then shifted the spheres to c = (0.0, 2.0, 0.0) and the stack became stable. This was expected of course, because the barycentric for this c does not suffer much from precision issues. The same problem is reduced as long as the sphere over the triangle is close to the triangle centroid.<br><br>Is there currently any work around for this problem or we still do need to limit the size of triangles (of course coming from meshes) in our games?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=11211">irlanrobson</a> — Mon May 16, 2016 12:58 am</p><hr />
]]></content>
	</entry>
	</feed>
