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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2013-12-18T11:14:41+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Flix]]></name></author>
		<updated>2013-12-18T11:14:41+00:00</updated>

		<published>2013-12-18T11:14:41+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=32427#p32427</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=32427#p32427"/>
		<title type="html"><![CDATA[Re: Toy vehicles (again)]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=32427#p32427"><![CDATA[
I've made a small video based on the code I posted here, although I've added some extra features:<br><a href="http://www.youtube.com/watch?v=kA1W_KXHWGA" class="postlink"><img src="http://img.youtube.com/vi/kA1W_KXHWGA/1.jpg" class="postimage" alt="Image"></a><br><br>[Edit] I've added another video to show a different railway-circuit (with a bridge) that can be created using the same railway generator included in the source code:<br><a href="http://www.youtube.com/watch?v=9cRzmJy2p9Q" class="postlink"><img src="http://img.youtube.com/vi/9cRzmJy2p9Q/1.jpg" class="postimage" alt="Image"></a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2180">Flix</a> — Wed Dec 18, 2013 11:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[c6burns]]></name></author>
		<updated>2013-10-21T21:34:24+00:00</updated>

		<published>2013-10-21T21:34:24+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31982#p31982</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31982#p31982"/>
		<title type="html"><![CDATA[Re: Toy vehicles (again)]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31982#p31982"><![CDATA[
<blockquote class="uncited"><div>Tricky trucks physics are more sofisticated then your's and i still cant get in mind that i can't play ur game which seems less CPU hunger. well thanks anyway keep selling CPUs lol</div></blockquote>Your attitude is as bad as your CPU  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> (mostly kidding)<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=10242">c6burns</a> — Mon Oct 21, 2013 9:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CHAOS-THEORY]]></name></author>
		<updated>2013-10-21T13:36:03+00:00</updated>

		<published>2013-10-21T13:36:03+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31978#p31978</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31978#p31978"/>
		<title type="html"><![CDATA[Re: Toy vehicles (again)]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31978#p31978"><![CDATA[
Tricky trucks physics are more sofisticated then your's and i still cant get in mind that i can't play ur game which seems less CPU hunger. well thanks anyway keep selling CPUs lol<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9843">CHAOS-THEORY</a> — Mon Oct 21, 2013 1:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Flix]]></name></author>
		<updated>2013-09-08T08:22:42+00:00</updated>

		<published>2013-09-08T08:22:42+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31678#p31678</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31678#p31678"/>
		<title type="html"><![CDATA[Re: Toy vehicles (again)]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31678#p31678"><![CDATA[
<blockquote class="uncited"><div>are you kiddin me, CPU is not fast enought to bla bla...<br>Which means my CPU have a Special Core to handle TrickyTruck's physics? i didn't knew that lol</div></blockquote>If you look at the code:<div class="codebox"><p>Code: </p><pre><code>static btScalar bulletFixedTimeStep(btScalar(1.)/btScalar(60.));static unsigned long frame(0);// A simple frame counter++frame;float dt = (getDeltaTimeMicroseconds() * 0.000001);    if (dt&gt;6*bulletFixedTimeStep &amp;&amp; frame&gt;5){printf("Error. CPU is not fast enough to produce physic support at frame n.%d\n",frame);dt=0;}else m_dynamicsWorld-&gt;stepSimulation(dt,5,bulletFixedTimeStep);</code></pre></div>you should understand that that message appears only if the max number of physic substeps is reached in stepSimulation(...) in a particular frame. <br><br>That simply means that your CPU is too slow to run the demo if this message gets displayed continuously for multiple frames. This is important to detect when physic cycles are "eaten" and the physic simulation is not good due to the lack of CPU power. In the demo this message appears for sure when you take a raycast screenshot (but for a single frame).<br><br>In short: if you see that message for a specific frame do not worry, otherwise your PC is really too slow to run the demo.<br><br>But, above all, for your interest, I don't sell CPUs and I'm not kidding anyone. <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2180">Flix</a> — Sun Sep 08, 2013 8:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CHAOS-THEORY]]></name></author>
		<updated>2013-09-06T15:21:53+00:00</updated>

		<published>2013-09-06T15:21:53+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31674#p31674</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31674#p31674"/>
		<title type="html"><![CDATA[Re: Toy vehicles (again)]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31674#p31674"><![CDATA[
are you kiddin me, <strong class="text-strong">CPU is not fast enought to bla bla...</strong><br>Which means my CPU have a Special Core to handle TrickyTruck's physics? i didn't knew that lol<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9843">CHAOS-THEORY</a> — Fri Sep 06, 2013 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Flix]]></name></author>
		<updated>2013-06-29T09:21:08+00:00</updated>

		<published>2013-06-29T09:21:08+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31154#p31154</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31154#p31154"/>
		<title type="html"><![CDATA[Toy vehicles (again)]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=31154#p31154"><![CDATA[
<div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1068" class="postimage" alt="Hinge2VehicleDemo.jpg" onclick="viewableArea(this);" /></dt></dl></div>This is mostly a restyling of the Hinge2VehicleDemo I made several years ago (further details here: <a href="http://www.bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=17&amp;t=4660" class="postlink">http://www.bulletphysics.org/Bullet/php ... =17&amp;t=4660</a>).<br>I've just added a forklift and a generator of planar railway tracks (*).<br>For the restyling, I reused the libOpenGLSupport extension (in the OpenGLEx project subfolder), I introduced here: <a href="http://www.bulletphysics.org/Bullet/phpBB3/viewtopic.php?f=17&amp;t=7159" class="postlink">http://www.bulletphysics.org/Bullet/php ... =17&amp;t=7159</a>, and "btHACDCompoundShape.h" (same link) to perform convex decomposition of concave meshes at init time.<br>Hope you like it!  <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>(*) Actually I've recently discovered that simple bridges work quite well with it.<br><br>[Edit:] There is probably an error in the source code. In file OpenGLEx/GlutDemoApplicationEx.cpp, in method GlutDemoApplicationEx::localCreateCollisionObjectByUnwrappingCompoundShape(...), please replace:<div class="codebox"><p>Code: </p><pre><code>const short collisionFilterGroup = GetDefaultCollisionFilterGroup(collisionFilterGroup,false);const short collisionFilterMask = GetDefaultCollisionFilterMask(collisionFilterMask,false);m_dynamicsWorld-&gt;addCollisionObject(co,collisionFilterGroup,collisionFilterMask);</code></pre></div>With:<div class="codebox"><p>Code: </p><pre><code>const short collisionFilterGroup2 = GetDefaultCollisionFilterGroup(collisionFilterGroup,false);const short collisionFilterMask2 = GetDefaultCollisionFilterMask(collisionFilterMask,false);m_dynamicsWorld-&gt;addCollisionObject(co,collisionFilterGroup2,collisionFilterMask2);</code></pre></div>Sorry for the inconvenience <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> .<dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1081">appHinge2VehicleDemo-Win32-Release-Needs_Media_Folder.7z</a></dt></dl><br /><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://pybullet.org/Bullet/phpBB3/download/file.php?id=1080">Hinge2VehicleDemo-Source_Code_And_Media_Folder.7z</a></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2180">Flix</a> — Sat Jun 29, 2013 9:21 am</p><hr />
]]></content>
	</entry>
	</feed>
