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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2012-10-17T18:40:55+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Erwin Coumans]]></name></author>
		<updated>2012-10-17T18:40:55+00:00</updated>

		<published>2012-10-17T18:40:55+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=29001#p29001</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=29001#p29001"/>
		<title type="html"><![CDATA[Re: btBvhTriangleMeshShape and btTriangleInfoMap serializati]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=29001#p29001"><![CDATA[
The latest trunk, and Bullet 2.81 release enables the import/deserialization of the BVH, see<br><a href="http://code.google.com/p/bullet/source/browse/trunk/Extras/Serialize/BulletWorldImporter/btWorldImporter.cpp" class="postlink">http://code.google.com/p/bullet/source/ ... porter.cpp</a><br><br>We still need to fix the btTriangleInfoMap /btHashMap serialization indeed.<br>If you have a fix, can you contribute it to this issue?<br><a href="https://code.google.com/p/bullet/issues/detail?id=353" class="postlink">https://code.google.com/p/bullet/issues/detail?id=353</a><br><br>Thanks,<br>Erwin<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2">Erwin Coumans</a> — Wed Oct 17, 2012 6:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[VicariousEnt]]></name></author>
		<updated>2012-10-17T16:36:21+00:00</updated>

		<published>2012-10-17T16:36:21+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28996#p28996</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28996#p28996"/>
		<title type="html"><![CDATA[Re: btBvhTriangleMeshShape and btTriangleInfoMap serializati]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28996#p28996"><![CDATA[
I re-enabled that code as well and have had no problems with it thus far. Not sure why it was removed either. I still need to add the InternalEdgeInfo, good to know about that problem.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=7272">VicariousEnt</a> — Wed Oct 17, 2012 4:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DavidM]]></name></author>
		<updated>2012-07-26T10:13:37+00:00</updated>

		<published>2012-07-26T10:13:37+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28393#p28393</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28393#p28393"/>
		<title type="html"><![CDATA[btBvhTriangleMeshShape and btTriangleInfoMap serialization]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28393#p28393"><![CDATA[
We've just started using Bullet recently and as part of our build process we create a single btBvhTriangleMeshShape to represent the static part of our 'world'.  At this point we also create a btTriangleInfoMap and use btGenerateInternalEdgeInfo() to generate the data for the internal edge utility to prevent collision with internal triangle edges at runtime.<br><br>These are then serialized out and loaded at runtime using the btBulletWorldImporter.<br><br>I've found a couple of problems with this, firstly btTriangleInfoMap doesn't serialize properly.  It's derived from btHashMap and the hash map implementation uses the capacity of one of it's members.  This capacity gets changed when you serialize it out (it gets trimmed to the size of the array) and so none of the hashes match up anymore.  I've fixed this locally by adding a trim function to the hashmap and calling that before serializing it in the btTriangleInfoMap, but it's a problem with any btHashMap serialization.<br><br>The second issue is that in btBulletWorldImporter the code that deserializes btOptimizedBVH is #if 0'ed out, so instead of using the bvh that's been stored a new one is generated at runtime.  I've put it back in and not had any obvious issues, but I guess there was a reason for removing it - does anyone know why?<br><br>We're using Bullet 2.80-rev2531<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=9470">DavidM</a> — Thu Jul 26, 2012 10:13 am</p><hr />
]]></content>
	</entry>
	</feed>
