<?xml version="1.0" encoding="UTF-8"?>
	<rss version="2.0"
		xmlns:content="http://purl.org/rss/1.0/modules/content/"
		xmlns:wfw="http://wellformedweb.org/CommentAPI/"
		xmlns:dc="http://purl.org/dc/elements/1.1/"
		xmlns:atom="http://www.w3.org/2005/Atom"

			>

	<channel>
		<title>Cycling 74  &#187;  Topic: Physics Patch-a-Day Thread &#8211; Join the fun!!!</title>
		<atom:link href="http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/feed</link>
		<description></description>
		<pubDate>Thu, 20 Jun 2013 00:49:32 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-64393</guid>
					<title><![CDATA[Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-64393</link>
					<pubDate>Tue, 18 Sep 2012 01:56:11 +0000</pubDate>
					<dc:creator>Darwin Grosse</dc:creator>

					<description>
						<![CDATA[
						<p>Welcome to the physics patch-a-day, part of our spotlight on the Max physics engine and some of its capabilities. We are following the script of the previous patch-a-day series; we ask various members of our staff (and sometimes outside participants) to try their hand at a technology, then see where they take us. Some of the posters will be experts with OpenGL and/or the physics engine, but others may be from other disciplines, and work on matching the tech to their interests.</p>
<p>We hope that you will find something interesting in each of these posts, and that it opens your mind to some of the options provided by the physics system. If you have a comment, please feel free to post it here. If you find a way to improve a patch, post it and share. We want this to be a conversation, and that requires your input!</p>
<p>So enjoy the series (which will continue through September 28), and spend a little time with the physics engine &#8211; we think you&#8217;ll find it worthwhile.</p>
<p>[ddg]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232251</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232251</link>
					<pubDate>Tue, 18 Sep 2012 02:56:12 +0000</pubDate>
					<dc:creator>Gregory Taylor</dc:creator>

					<description>
						<![CDATA[
						<p>Today&#8217;s physics patch features a set of musical walls and three equally musical spheres that make noise whenever they collide. Each sphere has its own &#8220;collision&#8221; subpatch that calculates whether the sphere has collided with another sphere (which produces a low note), or one of the walls (each of the 6 walls that makes up the &#8220;world&#8221; is associated with a note in a pentatonic scale &#8211; hit the wall and the note sounds).</p>
<p>The patch demonstrates the use of jit.phys world dictionaries, which contain all the data necessary to detect collisions, and even to determine when objects collide for the first time (think of it as a sort of equivalent to &#8220;debouncing&#8221;).</p>
<p>The interesting twist on this patch is that it contains a set of 3d LFOs controlled using standard ITM objects. These x/y/z vectored LFOs run quietly in the background as the spheres drift and interact and let you &#8220;teleport&#8221; them &#8211; that is, move them immediately to the location specified by the 3d LFO at a time interval you choose. Whenever the spheres are teleported, they move immediately to their new location and continue with their original momentum for interesting results.</p>
<p>Of course, this patch can be modified to do all kinds of other things. It just felt like a pentotonic tune kind of day here. Beam me up/sideways, Scottie!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232252</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232252</link>
					<pubDate>Tue, 18 Sep 2012 03:19:54 +0000</pubDate>
					<dc:creator>Gregory Taylor</dc:creator>

					<description>
						<![CDATA[
						<p>Oh yeah. Try it with a softsynth. I recommend a Cimbalon (or Karplus-Strong version thereof) tuned to a nice 7-limit Just Scale&#8230;.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232253</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232253</link>
					<pubDate>Tue, 18 Sep 2012 06:32:12 +0000</pubDate>
					<dc:creator>Mark Durham</dc:creator>

					<description>
						<![CDATA[
						<p>Great idea, really excited about these.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232254</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232254</link>
					<pubDate>Tue, 18 Sep 2012 08:47:16 +0000</pubDate>
					<dc:creator>Mathieu Chamagne</dc:creator>

					<description>
						<![CDATA[
						<p>thanks for sharing !</p>
<p>the patch works fine, but &#8230; I have strange error messages in my max window :</p>
<p>freeobject: 892a058: bad object<br />
zgetfn (nextrecord): corrupt object<br />
zgetfn (clear): corrupt object<br />
zgetfn (nextrecord): corrupt object<br />
freeobject: 892a8a8: bad object<br />
freeobject: 8929290: bad object<br />
freeobject: 892a2d8: bad object<br />
freeobject: 8928138: bad object<br />
freeobject: 892aa70: bad object<br />
freeobject: 89262f0: bad object<br />
freeobject: 8928b38: bad object<br />
freeobject: 89289d0: bad object<br />
freeobject: 892a6e8: bad object<br />
freeobject: 8929f30: bad object<br />
freeobject: 8925170: bad object<br />
freeobject: 892a638: bad object<br />
&#8230;</p>
<p>(lattest max 6.0.7, macOs 10.7.4, macPro, &#8230;)</p>
<p>these errors apparently come from the second dict.iter  (the one after zl.slice) in color-collision patchers ;</p>
<p>..bug report ?</p>
<p>Mathieu</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232255</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232255</link>
					<pubDate>Tue, 18 Sep 2012 11:23:20 +0000</pubDate>
					<dc:creator>Stephane Morisse</dc:creator>

					<description>
						<![CDATA[
						<p>Get these error messages using max 6.05.</p>
<p> [attachment=204007,4418]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232256</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232256</link>
					<pubDate>Tue, 18 Sep 2012 13:22:09 +0000</pubDate>
					<dc:creator>Gregory Taylor</dc:creator>

					<description>
						<![CDATA[
						<p>Stephane, the usual standard information will help us avoid playing 20 questions: </p>
<p>1. Machine<br />
2. OS Version<br />
3. Version of Max you&#8217;re using</p>
<p>Thanks.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232257</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232257</link>
					<pubDate>Tue, 18 Sep 2012 13:44:41 +0000</pubDate>
					<dc:creator>Stephane Morisse</dc:creator>

					<description>
						<![CDATA[
						<p>&#8216;scuse me Sir. Goes like this :  mbp 2&#215;2,4 ghz 3 Go Ram osx 10.5.8<br />
Before you suggest that, I can&#8217;t installe 6.07 for now, because there seems to be an issue with the installer with 10.5.8 (in my case) and at least 10.6.4, as another user reported in the &#8216;max 6.07 released&#8217; topic on the forum. I tried to open the patch with 5.19 but max window indicated jit.gl.render couldn&#8217;t find destination named &#8220;&#8221;.<br />
The spheres worked but there was no midi sent, as I verified the routing to the IAC bus simply connecting a button to the makenote object.</p>
<p>Thank to you !</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232258</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232258</link>
					<pubDate>Tue, 18 Sep 2012 14:00:09 +0000</pubDate>
					<dc:creator>Gregory Taylor</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks, Stephane. I expect that it&#8217;s may well be a 6.0.7-related problem. Since I know my colleagues are working on the 10.5 OS install problem, the issue might fix itself, but I&#8217;ll take a look.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232259</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232259</link>
					<pubDate>Tue, 18 Sep 2012 14:34:56 +0000</pubDate>
					<dc:creator>Rob Ramirez</dc:creator>

					<description>
						<![CDATA[
						<p>hi stephane.<br />
yup, gregory&#8217;s patch uses some features that are only available in the 6.0.7 release.<br />
sorry about that, hopefully the 10.5.8 installer will be available soon!</p>
<p>mathieu, thanks for the report, and for narrowing down the offending objects.<br />
i can reproduce and will investigate.<br />
these should not keep the patch from functioning.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232260</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232260</link>
					<pubDate>Tue, 18 Sep 2012 20:02:23 +0000</pubDate>
					<dc:creator>Andrzej Kopeć</dc:creator>

					<description>
						<![CDATA[
						<p>[makenote 36 80 1000]<br />
vs<br />
[makenote <velocity> <duration> <channel>]</channel></duration></velocity></p>
<p>I see this from time to time. The pervert nature of Max.</p>
<p>nice piece staccatissimo pianissimo, molto generativo! bravo!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232261</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232261</link>
					<pubDate>Tue, 18 Sep 2012 20:44:22 +0000</pubDate>
					<dc:creator>Gregory Taylor</dc:creator>

					<description>
						<![CDATA[
						<p>Mille grazie, Andrzej. Il meglio deve ancora venire!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232262</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232262</link>
					<pubDate>Tue, 18 Sep 2012 21:52:20 +0000</pubDate>
					<dc:creator>Andrzej Kopeć</dc:creator>

					<description>
						<![CDATA[
						<p>Non vedo l&#8217;ora!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232263</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232263</link>
					<pubDate>Tue, 18 Sep 2012 23:34:01 +0000</pubDate>
					<dc:creator>Rob Ramirez</dc:creator>

					<description>
						<![CDATA[
						<p>hello fizz-fans!</p>
<p>for today&#8217;s patch-a-day, we&#8217;ve got a fun demonstration of constraints between rigid-bodies, and enabling motors on those constraints.</p>
<p>the patch creates a structure of 5 rigid-bodies, held together with hinge-constraints. i&#8217;m calling it a racer. </p>
<p>the racer has 1 main body shape and 4 &#8220;limbs&#8221;. each limb is constrained to the main body with a hinge constraint, and each hinge constraint is motorized, allowing the racer to travel across the ground. the limb objects are each stored in their own bpather, found on the right side of the patch.</p>
<p>the ground (contained inside the &#8220;ground&#8221; sub-patcher) is made up of some static bodies (bodies with @mass 0). jit.phys.multiple is used to give some random obstacles to the ground.</p>
<p>the camera view can be controlled (via jit.anim.drive) by dragging in the window with the mouse, and pressing the w,a,s,d,q,z keys.</p>
<p>when you first start the patch, the racer&#8217;s main-body has @kinematic mode enabled, causing it to remain in place (rather than fall to the ground from gravity). this allows you to adjust properties of the body, limbs, and hinges, without the racer bouncing around in the world. once you&#8217;ve adjusted those properties, you can disable kinematic mode to see your racer in action. the patch comes with two presets for different body, limb, and hinge properties. the first preset sets up the limbs more as legs, and the second preset sets them up as wheels.</p>
<p>you can now propel the racer forward (or backward) by enabling the limb-hinge-motors (motorvelocity and motorstrength). what tends to happen at this point is the racer tips over, so we want to add another constraint to the main-body, using the jit.phys.6dof, to prevent this. the 6dof constraint is adjusted so that there are no limitations on linear movement (the lowerlimit_lin values are greater than the upperlimit_lin), allowing the body to move anywhere in the world. the only thing we constrain is the angular orientation of the body, thereby preventing the tip-over. as a side-effect, we can now adjust the racer&#8217;s direction by adjusting the world-space y-rotation of this &#8220;up&#8221; constraint. the patch allows you to use the up and down arrow keys to adjust the motorvelocity and left and right arrow keys to adjust the constraint y-rotation, thereby driving the racer.</p>
<p>as a last bonus, a javascript file can create some opponent racers, using the same basic structure in the main patch, with some randomness applied to certain properties. this demonstrates how physics and gl objects can be managed via javascript. </p>
<p>if you are feeling mirthful, comment out the lines of code that add the &#8220;up&#8221; constraint, and watch hilarity ensue as the little guys struggle to cross the terrain.</p>
<p>happy racing!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232264</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232264</link>
					<pubDate>Wed, 19 Sep 2012 16:14:13 +0000</pubDate>
					<dc:creator>Darwin Grosse</dc:creator>

					<description>
						<![CDATA[
						<p>Hello, and time for another patch (or two) a day!</p>
<p>I&#8217;m exploring the jit.phys.multiple system, and particularly the use of constraints and impulses within the multiple set. My first patch &#8211; AngryHuddle &#8211; I pay homage to the complete anarchy that has become of the NFL (National Football League) with the use of replacement referees. Not only are players fighting their opponents, but they&#8217;ve begun fighting each other as well. I&#8217;ve created a simple &#8220;huddle&#8221; of 11 spheres, each constrained to an overhead 6dof that keeps them in place, with impulses that cause them to &#8220;knock heads&#8221; every once in a while.</p>
<p>Two important points in this patch: first, the use of the @name attribute to give names to the individual bodies that are then used by the jit.phys.6dof object. By giving the name &#8220;hangers&#8221; to the multiple set, I can access bodies with a &#8216;hangers_n&#8217; name, where n is the body number (starting at 0). If I was using a 2-dimensional array for multiple setup, I would use &#8216;hangers_x_y&#8217; to access the row and column of the multiple set. This gives me the ability to directly access the individual bodies by my constraints.</p>
<p>The second interesting feature is the use of a force matrix to impulse individual bodies. This is done by creating a matrix with a single force entity, then turning it off (by zeroing out the matrix) 100 ms later. In this way, I can have the random objects properly select and pulse one of the objects, rather than impulsing them all (which is what happens when we sent an impulse message to the jit.phys.multiple).</p>
<p>The jit.phys.multiple can also have an embedded constraint, where these constraints are automatically connected from body to body within the multiple set. With his permission, I am including a patch by forum user matmat (Mathieu Constans): the NurbsSheet patch, which shows a simple use of 6dof constraints within the multiple set, and using nurbs rendering to create a cool, smooth sheet-in-the-wind model that is mesmerizing to watch. You can see how using a multiple-constraint makes patching a lot simpler; as long as body-to-body constrains are what you want, you will find it much easier to accomplish using the built-in multiple mechanism.</p>
<p>Enjoy the patches, and enjoy the series!</p>
<p>[ddg]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232266</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232266</link>
					<pubDate>Thu, 20 Sep 2012 17:54:22 +0000</pubDate>
					<dc:creator>Andrew Benson</dc:creator>

					<description>
						<![CDATA[
						<p>Today&#8217;s patch combines a couple of things together to make a fun time-waster.  The important thing to note are the bodies using @kinematic 1.  This prevents the physics of other bodies from knocking those objects around.  This is useful for things where you want to control exactly where they are and move them around.  With @kinematic 1, the moving walls can actually kick things around a little when they move too.  I couldn&#8217;t help throwing in a little GL Camera feedback in the backdrop for good measure.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232267</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232267</link>
					<pubDate>Fri, 21 Sep 2012 07:36:37 +0000</pubDate>
					<dc:creator>kleine</dc:creator>

					<description>
						<![CDATA[
						<p>Wonderful stuff ^_^<br />
Thanks!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232268</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232268</link>
					<pubDate>Fri, 21 Sep 2012 16:51:09 +0000</pubDate>
					<dc:creator>dancerchris</dc:creator>

					<description>
						<![CDATA[
						<p>Very useful examples for the phys!<br />
Thanks! :-)</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232270</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232270</link>
					<pubDate>Fri, 21 Sep 2012 19:20:18 +0000</pubDate>
					<dc:creator>Ben Bracken</dc:creator>

					<description>
						<![CDATA[
						<p>A while back I was interested in creating a mini particle system that had points of force exerting themselves on the particles. After I got into it a bit, things became a little too complex to manage, and I abandoned it. Then along came Jitter Physics! Using jit.phys.multiple and jit.phys.ghost, was able to prototype this idea in about an hour, and I really love the results. Its endlessly tweakable, and as I have attempted to keep it simple, there is lots of room for expanding the idea. The patterns that emerge are really mesmerizing, and playing with various colors, materials, shapes, and positions of everything can provide some great visuals.</p>
<p>The set up for this patch is that there are four &#8220;force points&#8221; in a diamond shape. These are jit.phys.ghost objects. They can be attractors or repellers. Then, in the middle, there is a moveable force point, which is a combination of a jit.phys.body and a jit.phys.ghost. This gives the effect of having a body which also can attract or repel. The functionality is achieved by using the &#8216;kinematic&#8217; attribute of the jit.phys.body, and handling all of the positioning of the object (and force), by mouse tracking in the jit.window. A jit.gl.sketch object is used to visualize the center ghost/body position.</p>
<p>The &#8220;particles&#8221; are all handled by the combination of jit.phys.multiple and jit.gl.multiple. In this patch, there are 400 bodies generated, and their color, torque, scale and mass are all generated by a single jit.noise object. The random matrix is then scaled by the use of jit.expr objects. Another even easier way to do it is in jit.gen, where you have the &#8216;scale&#8217; operator. Depending on your computer, you may have to alter the amount of bodies to maintain smooth performance.</p>
<p>Try changing the central_force of all of the jit.phys.ghost objects. Positive repels and negative attracts. Setting the central_force to 0 effectively disables the ghost force. Sending central_impulse messages to the ghost objects create single shockwave-like forces through the physics world. Move the central &#8220;Moveable Force&#8221; around by click-dragging in the jit.window. See how the spheres are colliding with it, but also attracted or repelled.</p>
<p>This is just the tip of the jit.phys iceberg, so experiment and enjoy!</p>
<p> [attachment=204297,4433]</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232271</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232271</link>
					<pubDate>Sat, 22 Sep 2012 09:41:49 +0000</pubDate>
					<dc:creator>deligut</dc:creator>

					<description>
						<![CDATA[
						<p>Hmm, no particles on my screen. I can see them if I turn jit.gl.physdraw on but otherwise not. Any reason for this? I don&#8217;t get any error messages.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232272</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232272</link>
					<pubDate>Sat, 22 Sep 2012 10:57:18 +0000</pubDate>
					<dc:creator>endziu</dc:creator>

					<description>
						<![CDATA[
						<p><a href='http://cycling74.com/forums/users/deligut/' rel='nofollow' class='bbp-mention-link deligut'>@deligut</a> I had this problem! its probably because you don have this material.<br />
delete jit.gl.material and jit.gl.gridshape objects and<br />
make new gridshape.<br />
it should work.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232273</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232273</link>
					<pubDate>Sat, 22 Sep 2012 19:50:43 +0000</pubDate>
					<dc:creator>Ben Bracken</dc:creator>

					<description>
						<![CDATA[
						<p>Hmm, this material file is in the standard distro, so something else must be going on.  I&#8217;ll take a closer look.</p>
<p>-Ben</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232274</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232274</link>
					<pubDate>Sun, 23 Sep 2012 10:10:40 +0000</pubDate>
					<dc:creator>mark2e</dc:creator>

					<description>
						<![CDATA[
						<p>For me it works out of the box on OSX 10.6.8. (On a MacbookPro 6.2)<br />
On my Windows7 machine only deleting the jit.gl.material makes the objects appear.<br />
(No errors in the max window)<br />
Both systems run with max 6.0.7</p>
<p>Another question tough: With the 400 objects and a central force applied to the ghosts my framerate drops below the 20 fps.<br />
So every single ghost with a central force costs 3-4 fps.<br />
However if I set the central force to 0 it goes back to 30fps (while the objects still move around).<br />
I am curious. Is it that much more &#8220;heavy&#8221; to calculate constant forces?<br />
Is that because the &#8220;force&#8221; gets weaker the further away the objects are from the emitter? </p>
<p>Thank you all for those cool patches!</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232275</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232275</link>
					<pubDate>Mon, 24 Sep 2012 22:46:53 +0000</pubDate>
					<dc:creator>Rob Ramirez</dc:creator>

					<description>
						<![CDATA[
						<p>hi mark2e.<br />
thanks for sharing your findings.<br />
we&#8217;ve identified some inefficiencies with jit.phys.ghost, and will be working to fix those for the next update.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232276</guid>
					<title><![CDATA[Re: Physics Patch-a-Day Thread &#8211; Join the fun!!!]]></title>
					<link>http://cycling74.com/forums/topic/physics-patch-a-day-thread-join-the-fun/#post-232276</link>
					<pubDate>Mon, 24 Sep 2012 23:13:11 +0000</pubDate>
					<dc:creator>Rob Ramirez</dc:creator>

					<description>
						<![CDATA[
						<p>as fun and easy as jit.phys.ghost is, it&#8217;s not the only way to apply forces to multiple rigid-bodies. there is also the jit.phys.multiple force matrix.<br />
one of the benefits to using jit.phys.multiple is that since it takes matrices, we can use all the great matrix tools jitter has to offer to generate those matrices.</p>
<p>for today&#8217;s patch, i wanted to demonstrate how we can use jit.phys.multiple with jit.path and jit.gen, to simulate bodies in a vortex or tornado.<br />
disclaimer: in no way is this simulation intended to be scientifically accurate.</p>
<p>so what kind of forces are involved in this?<br />
well, first a tornado has a long spiral shape, and objects are pulled along the shape of the spiral. and second objects are sucked upward into the spiral shape.</p>
<p>to create a spiral, the patch uses jit.expr and jit.path. i simply copied the jit.expr from the jit.gl.path help-file, and slightly modified the expr. i then used the &#8220;outputeval&#8221; message to jit.path to send a matrix containing the path points to a jit.gen.</p>
<p>the jit.gen simply takes the path matrix, and the phys.multiple position matrix, and tries to find the closest point on the path to each body. a jit.gen attribute @steps will determine how many path-points are iterated to find the closest. the more steps, the more cpu is consumed.  once the closest point is found, a tangent is calculated by subtracting the previous path point from the current. this tangent will pull bodies along the path, so in order to pull bodies toward the path, we mix the tangent with the distance from the body position to the path point (adjusted by the jit.gen @fade attribute).</p>
<p>that&#8217;s it! the force matrix is then sent to phys.multiple to apply the forces to each of the bodies. we also send the force matrix to gl.multiple color matrix, mainly for debugging. there is also a jit.phys.ghost that can be enabled to add more forces to the equation.</p>
<p>the real fun happens when you interpolate between presets, so a pattrstorage is provided to get you started with that.</p>
<p> [attachment=204485,4441]</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

