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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2008-11-01T19:35:40+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Tomat]]></name></author>
		<updated>2008-11-01T19:35:40+00:00</updated>

		<published>2008-11-01T19:35:40+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11097#p11097</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11097#p11097"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=11097#p11097"><![CDATA[
Excuse me, but can you make demo - there a chracter walks on bumpy terrain or steps up on a slope?<br>or post sources, if you drop off this project and don't mind about?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1040">Tomat</a> — Sat Nov 01, 2008 7:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Blairvoyant]]></name></author>
		<updated>2008-09-25T12:30:05+00:00</updated>

		<published>2008-09-25T12:30:05+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10637#p10637</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10637#p10637"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10637#p10637"><![CDATA[
Yup. Just press the 'bone' button in the lower-right-hand corner of the window (see attached image.) The red dots in the middle of the platform show the 'target' bone positions, while the blue dots show the points from each convex hull rigidbody (independent of the graphical mesh.)<br><br>But hmm.. sorry, the comments were a little bit on-the-fly. The first argument (corebonetransform.getIdentity()) is just an identity transform ([1 0 0][0 1 0] [0 0 1] [0 0 0]) because the constraint is located <em class="text-italics">at</em> the origin of the child bone. The second argument (parenttransform.inverse() * corebonetransform) should in theory be the offset of the child bone's origin from the parent bone's origin; they are both defined in absolute terms, so the product should be a relative term. Maybe I messed up the math?<dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=190" class="postimage" alt="button.PNG" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2072">Blairvoyant</a> — Thu Sep 25, 2008 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eddybox]]></name></author>
		<updated>2008-09-23T15:34:37+00:00</updated>

		<published>2008-09-23T15:34:37+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10604#p10604</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10604#p10604"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10604#p10604"><![CDATA[
Hmmmm.... that corebonetransform in the constructor looks fishy. (Based on the comment "the default transform of the bone according to cal3D".) What you want here  is the transform to the constraint from the bone's origin (in the bone's space).<br><br>However, the first thing I would check is what's really happening to the rigid bodies to make sure you don't have a skinning problem. Can you show these without the mesh?<br><br>Cheers,<br>Eddy<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2140">eddybox</a> — Tue Sep 23, 2008 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Blairvoyant]]></name></author>
		<updated>2008-09-21T05:14:13+00:00</updated>

		<published>2008-09-21T05:14:13+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10517#p10517</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10517#p10517"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10517#p10517"><![CDATA[
Well, my guess is that it's because I don't really understand how constraints work.<br><br>As it stands, it loads the model, and each vertex that has greater than a certain weight on a bone (50% at the moment) is added to a convex hull body. Then, a 6dof constraint is created at the joint in the bones, attaching the new body to its parent bone.<br><div class="codebox"><p>Code: </p><pre><code>btGeneric6DofConstraint* p2p = new btGeneric6DofConstraint(*(pBone-&gt;getbtbody()), // this bone's convex hull object*(pParent-&gt;getbtbody()), // the parent bone's convex hull objectcorebonetransform.getIdentity(), // the default transform of the bone according to cal3Dparenttransform.inverse()*corebonetransform,// the offset from the parenttrue); // don't process collisions between these two bones, otherwise the character will look like its joints are dislocatedp2p-&gt;setAngularLowerLimit(btVector3(-SIMD_PI*0.25f,-SIMD_PI*0.25f,-SIMD_PI*0.25f)); // prevent the joints from bending unnaturally farp2p-&gt;setAngularUpperLimit(btVector3(SIMD_PI*0.25f,SIMD_PI*0.25f,SIMD_PI*0.25f));p2p-&gt;setLinearLowerLimit(btVector3(0,0,0)); // prevent the joints from sliding out of placep2p-&gt;setLinearUpperLimit(btVector3(0,0,0));m_vectorjoints.push_back(p2p); // add the joint to the skeleton object, mostly for deletion purposesbtWorld-&gt;addConstraint(p2p, true); // add the joint to the bullet physics pipeline</code></pre></div>So... what exactly does bullet do to enforce these constraints? Does it just move them iteratively? Apply forces? Do I need to set more parameters?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2072">Blairvoyant</a> — Sun Sep 21, 2008 5:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eddybox]]></name></author>
		<updated>2008-09-19T21:40:00+00:00</updated>

		<published>2008-09-19T21:40:00+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10499#p10499</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10499#p10499"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10499#p10499"><![CDATA[
Hi Blairvoyant,<br><br>That did it, it's working on my machine now.<br>Cool demo!<br>As for what the problem is... it's hard to say just from the results. (Although, are you really representing individual fingers as bodies? If so, wow.)<br><br>Cheers,<br>Eddy<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2140">eddybox</a> — Fri Sep 19, 2008 9:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Blairvoyant]]></name></author>
		<updated>2008-09-19T15:27:09+00:00</updated>

		<published>2008-09-19T15:27:09+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10495#p10495</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10495#p10495"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10495#p10495"><![CDATA[
After some experimentation with a few other computers it seems that the solution is to install the visual C++ 2008 redistributable package. (it's just a few .dll's, 1.8mb)<br><br><a href="http://www.microsoft.com/downloads/details.aspx?FamilyID=9b2da534-3e03-4391-8a4d-074b9f2bc1bf&amp;displaylang=en" class="postlink">http://www.microsoft.com/downloads/deta ... laylang=en</a><br><br>Also, here is the new version (compiled with /MT and without unnecessary debugging info)<br><a href="http://www.mediafire.com/?sharekey=c0aa92bd8bf362eed2db6fb9a8902bda" class="postlink">http://www.mediafire.com/?sharekey=c0aa ... b9a8902bda</a><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2072">Blairvoyant</a> — Fri Sep 19, 2008 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DannyChapman]]></name></author>
		<updated>2008-09-19T08:55:00+00:00</updated>

		<published>2008-09-19T08:55:00+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10489#p10489</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10489#p10489"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10489#p10489"><![CDATA[
Same error as before...<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1517">DannyChapman</a> — Fri Sep 19, 2008 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Blairvoyant]]></name></author>
		<updated>2008-09-18T21:32:45+00:00</updated>

		<published>2008-09-18T21:32:45+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10487#p10487</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10487#p10487"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10487#p10487"><![CDATA[
Seems likely; I have uploaded another .rar with the GLUT32.dll that I use...<br><br>I was getting the same error when I first tried running the app on this computer, but after re-compiling everything it worked...<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2072">Blairvoyant</a> — Thu Sep 18, 2008 9:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[eddybox]]></name></author>
		<updated>2008-09-18T18:21:35+00:00</updated>

		<published>2008-09-18T18:21:35+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10486#p10486</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10486#p10486"/>
		<title type="html"><![CDATA[Re: Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10486#p10486"><![CDATA[
Hi Blairvoyant,<br><br>I tried downloading and running your app, but... "The application failed to initialize properly (0xc0150002)..."<br>Any ideas? Perhaps due to my glut version (3.7.6)?<br><br>Cheers,<br>Eddy<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2140">eddybox</a> — Thu Sep 18, 2008 6:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Blairvoyant]]></name></author>
		<updated>2008-09-18T13:28:16+00:00</updated>

		<published>2008-09-18T13:28:16+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10482#p10482</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10482#p10482"/>
		<title type="html"><![CDATA[Natural Motion]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=10482#p10482"><![CDATA[
Okay, a long time ago I was trying to make a way to integrate cal3d and bullet to make a sort of naturalmotion-style effect, where a character will act out its animations but also be affected by physics. I implemented it using an algorithm found here: <a href="http://graphics.cs.williams.edu/papers/DynamoVGS06/" class="postlink">http://graphics.cs.williams.edu/papers/DynamoVGS06/</a><br><br>At first it was barely workable; the character would wobble and fall down and generally fail to look like a competent human being. But on their suggestion I fiddled with damping values, restoring forces, and a few other things and now it looks somewhat better. Still far from ideal, but close enough that the smaller issues are pretty visible.<br><br>You can download a poorly-hacked demo here:<br><a href="http://www.mediafire.com/?sharekey=f273e313deec0614d2db6fb9a8902bda" class="postlink">http://www.mediafire.com/?sharekey=f273 ... b9a8902bda</a><br><br>Left-click to rotate the camera, right click to zoom in and out, and middle-click to 'grab' the model so you can move it around (like in the official bullet demos).<br><br>One problem is that the constraints on the fingertips don't seem to do much; you can see this if you try to move her around really fast. Her hands will look like they're being stretched to the floor. It's easy to see if you change to the physics view mode (click on the spanner-looking button in the bottom left) that it's as though her thumbs fell off. Why might this be?<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2072">Blairvoyant</a> — Thu Sep 18, 2008 1:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
