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

	<title>Real-Time Physics Simulation Forum</title>
	
	<link href="https://pybullet.org/Bullet/phpBB3/index.php" />
	<updated>2008-08-20T07:34:12+00:00</updated>

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

		<entry>
		<author><name><![CDATA[z8000]]></name></author>
		<updated>2008-08-20T07:34:12+00:00</updated>

		<published>2008-08-20T07:34:12+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9874#p9874</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9874#p9874"/>
		<title type="html"><![CDATA[Re: We love Katamari Damacy_remake (question: relative orienta..]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9874#p9874"><![CDATA[
cool, thanks.. No, I'm on a Mac but I was just being lazy <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2649">z8000</a> — Wed Aug 20, 2008 7:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abaraba]]></name></author>
		<updated>2008-08-20T03:04:16+00:00</updated>

		<published>2008-08-20T03:04:16+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9870#p9870</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9870#p9870"/>
		<title type="html"><![CDATA[Re: We love Katamari Damacy_remake (question: relative orienta..]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9870#p9870"><![CDATA[
added few screenshots,<br>suppose you're running Windows, since Linux binary didnt do it for you, but all the same this is very simple GLUT/OpenGL application and should compile easily on any system as it is... as long as there is Bullet library installed<br><br>is there any problem preventing it to compile from the sources?<br><br><br>edit:<br>ok, heres EXE, windows binary:<br><a href="http://www.geocities.com/ze_aks/Katamari-v0-01-windows.zip" class="postlink">http://www.geocities.com/ze_aks/Katamar ... indows.zip</a><br><br>to compile it with VC6 i had to #define M_PI 3.14159265, remove word "int" from "for(int i=.." and do something about main() returning or not some value, thats it... tho on my winXP, for some strange reason, it runs quite slow<p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2526">abaraba</a> — Wed Aug 20, 2008 3:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[z8000]]></name></author>
		<updated>2008-08-19T20:29:28+00:00</updated>

		<published>2008-08-19T20:29:28+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9857#p9857</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9857#p9857"/>
		<title type="html"><![CDATA[Re: We love Katamari Damacy_remake (question: relative orienta..]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9857#p9857"><![CDATA[
screenshot and/or movie would be great ... <br><br>thanks for sharing the code though <img class="smilies" src="https://pybullet.org/Bullet/phpBB3/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2649">z8000</a> — Tue Aug 19, 2008 8:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[abaraba]]></name></author>
		<updated>2008-08-20T06:44:19+00:00</updated>

		<published>2008-08-19T14:46:28+00:00</published>
		<id>https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9845#p9845</id>
		<link href="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9845#p9845"/>
		<title type="html"><![CDATA[We love Katamari Damacy_remake (question: relative orienta..]]></title>

		
		<content type="html" xml:base="https://pybullet.org/Bullet/phpBB3/viewtopic.php?p=9845#p9845"><![CDATA[
hi,<br><br>i just discovered this fantastic game called "Katamari Damacy" for PS2, and its already on the top on my list, right next to MetalGear and ShadowOfTheColossus... it is that good, so if you dont know about it - go play! <br><br>alternatively you may try this little remake...<br><br>DOWNLOAD (glut source code &amp; Linux binary):<br><a href="http://www.geocities.com/ze_aks/Katamari-v0.01.tar.bz2" class="postlink">http://www.geocities.com/ze_aks/Katamari-v0.01.tar.bz2</a><br>(this should compile easily on Windows as well... unpack archive to "../bullet*/Demos" folder, so  structure looks like this: "../bullet*/Demos/Katamari-v0.01/main.cpp")<br><br>Windows binary:<br><a href="http://www.geocities.com/ze_aks/Katamari-v0-01-windows.zip" class="postlink">http://www.geocities.com/ze_aks/Katamar ... indows.zip</a><br><br><br>i was mostly inspired with "gingerbread house" stage where you roll Katamari through chocolate walls and other sweet, sweet parts of the house until it gets big enough to demolish larger parts, then roof falls down and you roll up the whole house eventually... what a great game!<br><br>apparently,<br>its very easy to remake Katamary "game engine" with BulletPhysics by writing minimal amount of code...  basically i only had to collect funky, but interestingly handled on PS2 user input and translate that to some Linear/Angular velocities and and let Bullet handle the rest... of course, heavily utilizing 'KatamariShape' aka btCompundShape<br><br>this is very simple piece of code built on top of my 3rd BoiledDown Demo, so even absolute beginners should be able to figure out what this program does, and here are the links to previous BoiledDown demos, so you can see/follow how this game came to be out of simple "HelloWorld":<br><br>*beginners* - Boiled Down 'HelloWorld' demo with OpenGL<br><a href="http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=17&amp;t=2277" class="postlink">http://www.bulletphysics.com/Bullet/php ... =17&amp;t=2277</a><br>'Simplified BulletDinoDemo and how to compile it on Linux'<br><a href="http://www.bulletphysics.com/Bullet/phpBB3/viewtopic.php?f=9&amp;t=2274" class="postlink">http://www.bulletphysics.com/Bullet/php ... f=9&amp;t=2274</a><br><br><br><br>..i hope everyone here loves Katamari too, <br>and would like to invite all to spend some time with this simple source code, maybe make some improvements... i hope you will have have fun playing the game, collecting chocolate cubes... enough fun actually that you would want to add something new to this game... roll something of your own, thats what katamari is all about<br><br><br><br>QUESTIONS:<br>1.)<br>relative orientations, relative angles and positions.. how to rewrite parts of code using Bullet's transformations, matrices and/or quaternions rather than ...whatever is that i did, so can this bit of code be rewritten better using some Bullet functionality?<div class="codebox"><p>Code: </p><pre><code>float angle = HEADING;  float dx = sin((angle - 90)*M_PI/180) * SPEED_LINEAR;  float dy = cos((angle - 90)*M_PI/180) * SPEED_LINEAR;  float rx = sin((angle)*M_PI/180) * SPEED_ANGULAR;  float ry = cos((angle)*M_PI/180) * SPEED_ANGULAR;float freeFall=  box2-&gt;getLinearVelocity().z();    box2-&gt;setLinearVelocity( btVector3(dx, dy, freeFall) );    box2-&gt;setAngularVelocity( btVector3(-rx, -ry, 0) ); </code></pre></div>(btw, thats the half of the whole "game engine" right there in these few lines, as i mentioned earlier)<br><br>2.)<br>- is this little remake fun to play.. or is it just me? <br>- if you played the game on PS2, do you think controls translate well on keyboard?<br>- if you didnt play the game, what you think about controls? <br>(btw, two players can play it, just as on PS2 co-op mode)<br><br>- worth making it into further game?  <br>(not commercial, just for fun - free game for Linux/Open Source... basically i'd like to add destruction aspect as in 'gingerbread house' stage and more sweets, lots of little gummyBears to roll on, similar to rubberyBunny in Bullet demos, but more ...edible)<br><br>3.) <br>how to go about building stages, stage editor... Blender and Collada? <br><br>4.) <br>when adding to compound shape new shape does not seem to be "recognized" until after some time or something happens, so i used ugly way to sort that out: <div class="codebox"><p>Code: </p><pre><code>cmpd_shape-&gt;addChildShape(coll_t[i], shape);  dynamicsWorld-&gt;removeRigidBody(box2);  &lt;-- need to throw it out and get it back for change to take effect?  dynamicsWorld-&gt;addRigidBody(box2);   &lt;-- need to throw it out and get it back for change to take effect?</code></pre></div>..same when translating, looks like im missing some update/refresh function or some better place to call this<div class="codebox"><p>Code: </p><pre><code>dynamicsWorld-&gt;removeRigidBody(world_mesh);  &lt;-- need to throw it out and get it back for change to take effect?world_mesh-&gt;translate(btVector3(0,0, -45)); dynamicsWorld-&gt;addRigidBody(world_mesh);  &lt;-- need to throw it out and get it back for change to take effect?</code></pre></div><br>thanks for your time,<br><a href="http://www.geocities.com/ze_aks/myos.html" class="postlink">http://www.geocities.com/ze_aks/myos.html</a><br><br><img src="http://www.geocities.com/ze_aks/img/katamari1.jpg" class="postimage" alt="Image"><br><img src="http://www.geocities.com/ze_aks/img/katamari2.jpg" class="postimage" alt="Image"><p>Statistics: Posted by <a href="https://pybullet.org/Bullet/phpBB3/memberlist.php?mode=viewprofile&amp;u=2526">abaraba</a> — Tue Aug 19, 2008 2:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
