<?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: finally, another recipe</title>
		<atom:link href="http://cycling74.com/forums/topic/finally-another-recipe/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/finally-another-recipe/feed</link>
		<description></description>
		<pubDate>Tue, 18 Jun 2013 23:50:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/finally-another-recipe/#post-28443</guid>
					<title><![CDATA[finally, another recipe]]></title>
					<link>http://cycling74.com/forums/topic/finally-another-recipe/#post-28443</link>
					<pubDate>Tue, 31 Oct 2006 00:28:24 +0000</pubDate>
					<dc:creator>Andrew Benson</dc:creator>

					<description>
						<![CDATA[
						<p>Hey all,<br />
It&#8217;s been a long time coming, but a new Jitter Recipe has been added to <br />
Jitter Recipes: Book 3&#8211;</p>
<p><a href="http://www.cycling74.com/story/2006/2/17/153427/406" rel="nofollow">http://www.cycling74.com/story/2006/2/17/153427/406</a></p>
<p>36.TinyVideo &#8211; a patch that demonstrates an efficient method of creating <br />
animated sprite-quads by loading a single texture with a series of frames.</p>
<p>Bon Apetit!</p>
<p>Andrew B.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/finally-another-recipe/#post-87338</guid>
					<title><![CDATA[Re: finally, another recipe]]></title>
					<link>http://cycling74.com/forums/topic/finally-another-recipe/#post-87338</link>
					<pubDate>Thu, 02 Nov 2006 08:13:18 +0000</pubDate>
					<dc:creator>Pierre Alexandre Tremblay</dc:creator>

					<description>
						<![CDATA[
						<p>Dear all.</p>
<p>I saw no comments on this patch, but I have to say this it is art  <br />
coding (again). I would have expect a rave of pure enthusiasm&#8230;</p>
<p>I considered myself as a senior coder, but I think I should go back  <br />
to primary school compared to guys like Andrew.  This is elegant,  <br />
fabulously efficient code, and so simple (yet so parallel-thought)  <br />
that I blemish of my little example which did this kind of stuff  <br />
posted 2 months ago, grossly using hundreds of upcode to do what is  <br />
achieved in 4 here.</p>
<p>I bow very low to Andrew&#8217;s generosity: today, I&#8217;ve learn something  <br />
again! (actually, 2: some parallel-thinking stuff, and some humility)</p>
<p>pa</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/finally-another-recipe/#post-87339</guid>
					<title><![CDATA[Re: finally, another recipe]]></title>
					<link>http://cycling74.com/forums/topic/finally-another-recipe/#post-87339</link>
					<pubDate>Sat, 09 Dec 2006 23:22:08 +0000</pubDate>
					<dc:creator>yair reshef</dc:creator>

					<description>
						<![CDATA[
						<p>i bow even lower<br />
there are some in here that look at the matrice as a way of math thinking.<br />
it is very hard for me still, i have gone thru a lot of code posted on the<br />
list, especially helpful i found Wes example for his line2quad object. but<br />
the cell0 stuff is still forgain to me.<br />
in the help file are only examples of creating &#8220;clouds and ramps&#8221; but i feel<br />
no depth.<br />
do i need a book?degree?<br />
explanation for the expression used to generate the texture mapping in<br />
tinyvideo?</p>
<p>
On 11/2/06, Pierre Alexandre Tremblay<br />
<tremblap @gmail.com> wrote:<br />
><br />
> Dear all.<br />
><br />
> I saw no comments on this patch, but I have to say this it is art<br />
> coding (again). I would have expect a rave of pure enthusiasm&#8230;<br />
><br />
> I considered myself as a senior coder, but I think I should go back<br />
> to primary school compared to guys like Andrew.  This is elegant,<br />
> fabulously efficient code, and so simple (yet so parallel-thought)<br />
> that I blemish of my little example which did this kind of stuff<br />
> posted 2 months ago, grossly using hundreds of upcode to do what is<br />
> achieved in 4 here.<br />
><br />
> I bow very low to Andrew&#8217;s generosity: today, I&#8217;ve learn something<br />
> again! (actually, 2: some parallel-thinking stuff, and some humility)<br />
><br />
> pa<br />
></tremblap></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/finally-another-recipe/#post-87340</guid>
					<title><![CDATA[Re: finally, another recipe]]></title>
					<link>http://cycling74.com/forums/topic/finally-another-recipe/#post-87340</link>
					<pubDate>Sun, 10 Dec 2006 01:56:07 +0000</pubDate>
					<dc:creator>Wesley Smith</dc:creator>

					<description>
						<![CDATA[
						<p>cell[0] just gives you the number of the cell across the row.  In the<br />
patch, the expression using cell[0] etc. is mapping out values<br />
according to cell coordinates.  In this case the first 3 planes of the<br />
expression are providing offsets to the quad coordinates.  The&#8217;s<br />
another expression: jit.expr @expr &#8220;snorm[0]&#8221; &#8220;snorm[1]*0.75&#8243; 0. which<br />
generates a grid of points from [-1, -0.75] to [1, 0.75] which are<br />
subsequently offset of the expr mentioned above.  The last 2 planes of<br />
the equation setup texture coordinates.</p>
<p>Picking apart patches as compact as this one is not easy because a<br />
months+ work and thought have gone into the structure of it and it&#8217;s<br />
most likely going to be way different than anyone else&#8217;s eay of<br />
thinking about the problem.  You just have to be very methodical and<br />
take your time because it&#8217;s not going to come right away with<br />
non-trivial patches like this.  The way I approach analyzing patches<br />
it to pull out a pencil and paper and start at the source of the patch<br />
where data enters the system.  I then go through each step and figure<br />
out what happens to the data there.  What you want to figure out is<br />
the purpose of the transformations at each step, so how do input<br />
values map to output values.  Once you&#8217;ve notated a few of the steps,<br />
you&#8217;ll start to see the larger process at play and things will make<br />
more sense.  If you don&#8217;t understand a step, take it and make a test<br />
patch with it.  Break it apart and rebuild it for yourself until you<br />
understand it.  It&#8217;s the only way you&#8217;re going to learn.  For the<br />
expression stuff, start with one part of the equation and slowly<br />
reconstruct it.  This will help you see how the values are<br />
transformed.  For example, the expressions<br />
&#8220;(cell[0]%4.>0.)*(cell[0]%4.&lt;3.)*0.2-0.1"  can be broken into 8 parts.<br />
 Start with &#8220;cell[0]&#8221; , then apply %4 to it.  Then threshold it at 0,<br />
then do the same with &#8220;(cell[0]%4.&lt;3.)" and mutiply it with the other<br />
cell[0] part, then offset and scale the result.  Hope this helps and<br />
gives you a strategy to analyze jitter patches.</p>
<p>best,<br />
wes</p>
<p>On 12/9/06, yair reshef <yair99 @gmail.com> wrote:<br />
> i bow even lower<br />
> there are some in here that look at the matrice as a way of math thinking.<br />
> it is very hard for me still, i have gone thru a lot of code posted on the<br />
> list, especially helpful i found Wes example for his line2quad object. but<br />
> the cell0 stuff is still forgain to me.<br />
> in the help file are only examples of creating &#8220;clouds and ramps&#8221; but i feel<br />
> no depth.<br />
> do i need a book?degree?<br />
> explanation for the expression used to generate the texture mapping in<br />
> tinyvideo?<br />
><br />
><br />
><br />
> On 11/2/06, Pierre Alexandre Tremblay<br />
<tremblap @gmail.com> wrote:<br />
> > Dear all.<br />
> ><br />
> > I saw no comments on this patch, but I have to say this it is art<br />
> > coding (again). I would have expect a rave of pure enthusiasm&#8230;<br />
> ><br />
> > I considered myself as a senior coder, but I think I should go back<br />
> > to primary school compared to guys like Andrew.  This is elegant,<br />
> > fabulously efficient code, and so simple (yet so parallel-thought)<br />
> > that I blemish of my little example which did this kind of stuff<br />
> > posted 2 months ago, grossly using hundreds of upcode to do what is<br />
> > achieved in 4 here.<br />
> ><br />
> > I bow very low to Andrew&#8217;s generosity: today, I&#8217;ve learn something<br />
> > again! (actually, 2: some parallel-thinking stuff, and some humility)<br />
> ><br />
> > pa<br />
> ><br />
><br />
><br />
><br />
><br />
></tremblap></yair99></p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

