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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2007-11-28T09:50:29+00:00</updated>

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

		<entry>
		<author><name><![CDATA[topcomer]]></name></author>
		<updated>2007-11-28T09:50:29+00:00</updated>

		<published>2007-11-28T09:50:29+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6503#p6503</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6503#p6503"/>
		<title type="html"><![CDATA[Re: Bullet 2.64 released: all-in-one demos, memory allocators]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6503#p6503"><![CDATA[
Just in case one has the same problem, the solution is to change line 44 in btGImpactShape.h from:<br><br>typedef btGImpactQuantizedBvh btGImpactBoxSet;<br><br>to:<br><br>typedef btGImpactBvh btGImpactBoxSet;<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=890">topcomer</a> — Wed Nov 28, 2007 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[topcomer]]></name></author>
		<updated>2007-11-16T09:35:26+00:00</updated>

		<published>2007-11-16T09:35:26+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6389#p6389</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6389#p6389"/>
		<title type="html"><![CDATA[Re: Bullet 2.64 released: all-in-one demos, memory allocators]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6389#p6389"><![CDATA[
I have a small test case in which collisions cease to work after a while. If you take a virgin version of Bullet (2.63 or later), inside movingConcaveDemo replace the functions shootTrimesh() and clientMoveAndDisplay()<br>with:<br><br>void ConcaveDemo::shootTrimesh(const btVector3&amp; destination)<br>{<br>if (m_dynamicsWorld)<br>{<br>float mass = 0.f;<br>btTransform startTransform;<br>startTransform.setIdentity();<br>btVector3 camPos = getCameraPosition();<br>startTransform.setOrigin(camPos);<br><br>btRigidBody* body = this-&gt;localCreateRigidBody(mass, startTransform,m_trimeshShape);<br><br>// Make it kinematic<br>body-&gt;setCollisionFlags( body-&gt;getCollisionFlags() |<br>btCollisionObject::CF_KINEMATIC_OBJECT );<br>body-&gt;setActivationState(DISABLE_DEACTIVATION);<br><br>btVector3<br>linVel(destination[0]-camPos[0],destination[1]-camPos[1],destination[2]-camPos[2]);<br>linVel.normalize();<br>linVel*=m_ShootBoxInitialSpeed*0.25;<br><br>body-&gt;getWorldTransform().setOrigin(camPos);<br>body-&gt;getWorldTransform().setRotation(btQuaternion(0,0,0,1));<br>body-&gt;setLinearVelocity(linVel);<br>body-&gt;setAngularVelocity(btVector3(0,0,0));<br>}<br>}<br><br>void ConcaveDemo::clientMoveAndDisplay()<br>{<br>glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);<br><br>float dt = float(m_clock.getTimeMicroseconds()) * 0.000001f;<br>m_clock.reset();<br>m_dynamicsWorld-&gt;stepSimulation(dt);<br><br>// Update geometry<br>for( int i = 0; i &lt; NUM_VERTICES; i++ )<br>gVertices[3*i + 0] += .001;<br><br>// Input updated geometry<br>if( m_trimeshShape != NULL )<br>{<br>m_trimeshShape-&gt;postUpdate();<br>m_trimeshShape-&gt;updateBound();<br>}<br><br>renderme();<br><br>glFlush();<br>glutSwapBuffers();<br>}<br><br><br>you'll also need to declare m_trimeshShape as btGImpactMeshShape inside ConcaveDemo.h and<br>include:<br><br>#include "GIMPACT/Bullet/btGImpactShape.h"<br>#include "GIMPACT/Bullet/btGImpactCollisionAlgorithm.h"<br><br><br>Now use . to shoot 1 bunny and then right click to hit it, you'll see that collisions<br>work for a short time then the bunny is penetrated by blocks. Am I doing something wrong?<br><br>Thanks,<br>Alessio<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=890">topcomer</a> — Fri Nov 16, 2007 9:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erin Catto]]></name></author>
		<updated>2007-11-02T03:24:41+00:00</updated>

		<published>2007-11-02T03:24:41+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6182#p6182</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6182#p6182"/>
		<title type="html"><![CDATA[Re: Bullet 2.64 released: all-in-one demos, memory allocators]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6182#p6182"><![CDATA[
Looking good!<br><br>Here's a revision for Main.cpp to help with the aspect ratio:<br><div class="codebox"><p>Code: </p><pre><code>void Resize(int w, int h){width = w;height = h;GLUI_Master.get_viewport_area( &amp;tx, &amp;ty, &amp;tw, &amp;th );glMatrixMode(GL_PROJECTION);glLoadIdentity();double ratio = (double)tw / (double)th;gluPerspective( 45.0, ratio, 10.0, 10000.0 );glViewport( tx, ty, tw, th );if (demo)demo-&gt;reshape(tw, th);}</code></pre></div><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=12">Erin Catto</a> — Fri Nov 02, 2007 3:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2007-11-02T03:03:30+00:00</updated>

		<published>2007-11-02T03:03:30+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6180#p6180</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6180#p6180"/>
		<title type="html"><![CDATA[Bullet 2.64 released: all-in-one demos, memory allocators]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=6180#p6180"><![CDATA[
Bullet 2.64 is released.<br><br>Main improvements are:<br><br>- added all-in-one demo framework using glui, allowing all demos to run within one executable (thanks Erin Catto) <br>- Allow user to pass in their own memory (stack and pool) allocators, through collisionConfiguration <br>- All memory allocations go through btAlignedAlloc/btAlignedFree. User can override this to verify memory leaks <br>- Fixed various memory leaks in SDK. Some demos still need memory cleanup (next versions)<br>- fix for one of the constructors of btHingeConstraint Thanks Marcus Hennix<br><br>Download: <a href="http://sourceforge.net/project/showfiles.php?group_id=147573" class="postlink">http://sourceforge.net/project/showfile ... _id=147573</a><br><br>Enjoy,<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Fri Nov 02, 2007 3:03 am</p><hr />
]]></content>
	</entry>
	</feed>
