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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2012-06-27T17:15:39+00:00</updated>

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

		<entry>
		<author><name><![CDATA[bone]]></name></author>
		<updated>2012-06-27T17:15:39+00:00</updated>

		<published>2012-06-27T17:15:39+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28183#p28183</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28183#p28183"/>
		<title type="html"><![CDATA[Re: using fixed-point floating point to represent position]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28183#p28183"><![CDATA[
... or you can basically have the best of all worlds and just use doubles.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=1626">bone</a> — Wed Jun 27, 2012 5:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raigan2]]></name></author>
		<updated>2012-06-25T20:31:12+00:00</updated>

		<published>2012-06-25T20:31:12+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28172#p28172</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28172#p28172"/>
		<title type="html"><![CDATA[Re: using fixed-point floating point to represent position]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28172#p28172"><![CDATA[
I've come across this idea a couple times; here's a blog post that mentions the same concept (using 32bit or 64bit ints to store position): <a href="http://home.comcast.net/~tom_forsyth/blog.wiki.html" class="postlink">http://home.comcast.net/~tom_forsyth/blog.wiki.html</a>#[[A%20matter%20of%20precision]]<br><br>(sorry about the lack of proper link, the formatting of the URL seems to be breaking this forums' embedding code)<br><br>In that article, the author suggests that implementing this would be straightforward -- position is stored in fixed-point, and all calculations happen in a local space with floating-point. I suspect that it's not as simple/easy as that (or, maybe it is and I'm not understanding the idea well enough), so if you have any experience to share, I'd be interested in hearing about it.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=748">raigan2</a> — Mon Jun 25, 2012 8:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kkimlabs]]></name></author>
		<updated>2012-06-24T21:07:01+00:00</updated>

		<published>2012-06-24T21:07:01+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28165#p28165</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28165#p28165"/>
		<title type="html"><![CDATA[using fixed-point floating point to represent position]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=28165#p28165"><![CDATA[
I think it makes more sense to use fixed-point to represent position. please correct me if I'm wrong.<br><br><br>reason: precision of floating-point depends on the location, and it is highly clustered around 0.<br>consequence: you can't expect position-invariant precision.<br>1. people should avoid positions too far from the origin.<br>2. precision at (0,0,1000000) depends on the axis direction<br><br>using fixed-point<br>pro: guarantees position-invariant precision.<br>con: max value is fixed, and you should use proper scale.<br><br><br>But I would say the fixed-point's con is not actually that bad, since too high value is discouraged even with the floating point. It only makes the bad practice explicitly impossible.<br><br>The attached imgs are <br><br>1. fixed point resolution with 7-bit integer.<br>2. floating point resolution with sign bit, 3-bit exponent and 3-bit mantissa<br>both are scaled to have the same max.<dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=952" class="postimage" alt="fixed_point.png" onclick="viewableArea(this);" /></dt></dl><br /><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=951" class="postimage" alt="floating_point.png" onclick="viewableArea(this);" /></dt></dl><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=8876">kkimlabs</a> — Sun Jun 24, 2012 9:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
