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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2010-09-05T06:44:14+00:00</updated>

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

		<entry>
		<author><name><![CDATA[Flix]]></name></author>
		<updated>2010-09-05T06:44:14+00:00</updated>

		<published>2010-09-05T06:44:14+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=20038#p20038</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=20038#p20038"/>
		<title type="html"><![CDATA[Ortho raytracer demo (with source code)]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=20038#p20038"><![CDATA[
I've modified the code of the <strong class="text-strong">appRaytracer demo</strong> included in the Bullet (2.76) distribution, and I've made this new raytracer demo.<br><br><strong class="text-strong"><span style="color:#600000">WHAT'S IN THE ZIP FILE</span></strong><br>The .exe included in the zipped archive has been built with the VC++ 2008 compiler, using the /MD option, and so needs the VC++ 2008 runtime to be installed on your system in order to run.<br>Compiling the code is very easy, since all the files and project options can be copied from the original appRaytracer demo: the only difference is that the (two) .cpp files are in the folder inside the .zip archive.<br><br><strong class="text-strong"><span style="color:#600000">USAGE:</span></strong><br>You might find a similiar raytracer useful if you need to build some kind of collision shape that's not correctly displayed (with enough approximation) by the Bullet default openGL renderer (or by other renderers as well); that's why I thought it was worth sharing it with the Bullet community.<br><br><strong class="text-strong"><span style="color:#600000">KEYS:</span></strong><br>-&gt; camera can be moved using the usual camera keys.<br><br><strong class="text-strong"><span style="color:#600000">IMPLEMENTATION NOTES:</span></strong><br>-&gt; the raytracer uses a <strong class="text-strong">parallel projection</strong>: it's not as good as a <strong class="text-strong">perspective projection</strong>, but in this way:<br>a) the ray direction is the same for all rays and can be calculated once.<br>b) the rays don't diverge, so even at low resolutions, a lot of them hit the target.<br>-&gt; the openGL texture is a <strong class="text-strong">GL_LUMINANCE texture</strong>, so that the texture buffer is 2/3 smaller.<br>The code hasn't been written with speed in mind and there are plenty of further optimizations that can be done (like using multiple cores/threads, etc.).<br><br><strong class="text-strong"><span style="color:#600000">SCREENSHOT:</span></strong><div class="inline-attachment"><dl class="file"><dt class="attach-image"><img src="https://pybullet.org/Bullet/phpBB3/download/file.php?id=543" class="postimage" alt="ortho_raytracer_demo.jpg" onclick="viewableArea(this);" /></dt></dl></div><strong class="text-strong"><span style="color:#600000">DOWNLOAD:</span></strong><div class="inline-attachment"><dl class="file"><dt><span class="imageset icon_topic_attach"></span> <a class="postlink" href="https://pybullet.org/Bullet/phpBB3/download/file.php?id=544">RaytracerOrtho.zip</a></dt></dl></div>Hope you like it.<br>Flix<br><br>P.S. I've included an experimental <strong class="text-strong">btCollisionShapeGarbageCollector class</strong>, but please don't rely too much on it. I made it in ten minutes and so it lacks testing/fixing and must contain several errors for sure.<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2180">Flix</a> — Sun Sep 05, 2010 6:44 am</p><hr />
]]></content>
	</entry>
	</feed>
