<?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: multiple matrix layer slowdown</title>
		<atom:link href="http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 21:40:33 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-25121</guid>
					<title><![CDATA[multiple matrix layer slowdown]]></title>
					<link>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-25121</link>
					<pubDate>Tue, 28 Mar 2006 20:02:35 +0000</pubDate>
					<dc:creator>lstask@gmail.com</dc:creator>

					<description>
						<![CDATA[
						<p>Hi there &#8211; I&#8217;m relatively inexperienced with Jitter, and I was trying to do the following: </p>
<p>I have 6 different images that I need to move around on a white background.  The way I&#8217;ve been doing this is based off Tutorial 16 &#8211; rendering the images to a named matrix in the appropriate order.  However, I have a .js function that determines the order in which the images need to be layered at any given time.  As of now, this function spits out a list that I stick, rather arbitrarily, in a [zl join] just to have somewhere for a metro to bang a jit.qball into it regularly.  </p>
<p>Aside from this difference, I think I&#8217;ve implemented everything pretty much as the tutorial patch has, but I&#8217;ve noticed a big slowdown and chunky reaction times to the instructions for the images to move around.  The relevant part of the patch is included below &#8211; I haven&#8217;t included the .js file but hope that this is enough to diagnose the issue&#8230;</p>
<p>Thanks for any help!</p>
<p>Liam</p>
<p>
max v2;<br />
#N vpatcher 108 56 1130 608;<br />
#P window setfont &#8220;Sans Serif&#8221; 12.;<br />
#P comment 574 389 382 196620 &#8212; this sets the background to white before any of the images get written.;<br />
#P window setfont &#8220;Fixedwidth Serif&#8221; 10.;<br />
#P window linecount 1;<br />
#P newex 204 61 58 1441802 loadbang;<br />
#P newex 32 358 26 1441802 t b;<br />
#P newex 32 393 76 1441802 send output;<br />
#P newex 407 416 26 1441802 t b;<br />
#P newex 349 416 26 1441802 t b;<br />
#P newex 291 416 26 1441802 t b;<br />
#P newex 233 416 26 1441802 t b;<br />
#P newex 117 358 34 1441802 iter;<br />
#P newex 175 416 26 1441802 t b;<br />
#P newex 117 416 26 1441802 t b;<br />
#P newex 267 358 26 1441802 t b;<br />
#P newex 267 310 52 1441802 zl join;<br />
#P newex 487 391 82 1441802 send bgcolor;<br />
#P newex 117 391 358 1441802 route amorfo cabezona cecito patachula picoroco princesita;<br />
#P newex 315 208 52 1441802 r index;<br />
#P newex 315 242 88 1441802 js sort_index;<br />
#P window setfont Times 10.;<br />
#P comment 220 83 27 1310730 Start;<br />
#P window setfont &#8220;Fixedwidth Serif&#8221; 10.;<br />
#P newex 204 126 62 1441802 jit.qball;<br />
#B color 5;<br />
#P toggle 204 82 15 0;<br />
#P newex 204 102 58 1441802 metro 50;<br />
#P window setfont &#8220;Sans Serif&#8221; 12.;<br />
#P window linecount 2;<br />
#P comment 120 454 382 196620 &#8212; each of these [triggers] get sent to an instance of the matrix to be written to.;<br />
#P connect 9 0 19 0;<br />
#P connect 19 0 18 0;<br />
#P connect 9 0 13 0;<br />
#P connect 13 0 7 0;<br />
#P connect 7 0 11 0;<br />
#P connect 7 1 12 0;<br />
#P connect 20 0 2 0;<br />
#P connect 2 0 1 0;<br />
#P connect 1 0 3 0;<br />
#P connect 7 2 14 0;<br />
#P fasten 3 0 9 0 209 173 272 173;<br />
#P fasten 5 0 9 0 320 268 272 268;<br />
#P connect 9 0 10 0;<br />
#P connect 7 3 15 0;<br />
#P connect 6 0 5 0;<br />
#P connect 7 4 16 0;<br />
#P connect 7 5 17 0;<br />
#P fasten 10 0 8 0 272 382 492 382;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-73588</guid>
					<title><![CDATA[Re: multiple matrix layer slowdown]]></title>
					<link>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-73588</link>
					<pubDate>Tue, 28 Mar 2006 22:56:23 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>This will be much faster using several instances of  <br />
jit.gl.videoplane. Trying to decompress and composite 6 videos in  <br />
realtime on the CPU will be relatively slow. Almost always faster on  <br />
the GPU.</p>
<p>-Joshua</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-73589</guid>
					<title><![CDATA[Re: multiple matrix layer slowdown]]></title>
					<link>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-73589</link>
					<pubDate>Thu, 30 Mar 2006 02:06:11 +0000</pubDate>
					<dc:creator>lstask@gmail.com</dc:creator>

					<description>
						<![CDATA[
						<p>Excellent &#8211; thanks for that.  Definitely snappier.  </p>
<p>I&#8217;m onto my next task, which is to figure out how to composite several of those images together (via slab, I was thinking&#8230;?) but still be able to move them around the screen individually.  I&#8217;ve seen a couple instances in the examples of multiple movies being read into a jit.qt.slab, but I need to get at each image intermediately to position them.  </p>
<p>I&#8217;ve tried this using both matrices and videoplanes &#8211; matrices are still slow (and I couldn&#8217;t figure out how to erase jit.gl.render properly after moving them around), and the videoplanes seem to require the same name as the videoplane that the jit.qt.slab is feeding into&#8230;meaning I can&#8217;t composite them together, but they rather overlay one another.  </p>
<p>Feeling very uncertain that this is the right way to go about it&#8230;any help is, as always, greatly appreciated!  Thanks!</p>
<p>Nasty sample patch:</p>
<p>max v2;<br />
#N vpatcher 445 46 1418 932;<br />
#P origin 0 -77;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P message 592 83 35 196617 1.333;<br />
#P window linecount 2;<br />
#P comment 632 78 238 196617 change x scale to match aspect ratio. e.g. typical 4:3 video would have an x scale of 1.333;<br />
#P flonum 670 104 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 632 104 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 592 104 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P window linecount 1;<br />
#P newex 567 131 85 196617 pak scale 1. 1. 1.;<br />
#P flonum 689 152 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 651 152 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 611 152 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 583 176 95 196617 pak position 0. 0. 0.;<br />
#P newex 370 396 176 196617 jit.gl.videoplane foo @blend_enable 1;<br />
#P message 8 523 100 196617 erase_color 1 1 1 1;<br />
#P message 302 89 35 196617 1.333;<br />
#P window linecount 2;<br />
#P comment 342 84 238 196617 change x scale to match aspect ratio. e.g. typical 4:3 video would have an x scale of 1.333;<br />
#P flonum 380 110 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 342 110 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 302 110 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P window linecount 1;<br />
#P newex 277 137 85 196617 pak scale 1. 1. 1.;<br />
#P flonum 399 158 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 361 158 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 321 158 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 293 182 95 196617 pak position 0. 0. 0.;<br />
#P newex 156 348 176 196617 jit.gl.videoplane foo @blend_enable 1;<br />
#P message 799 255 79 196617 read dozer.mov;<br />
#P message 704 255 28 196617 read;<br />
#P message 769 255 27 196617 stop;<br />
#P message 735 255 31 196617 start;<br />
#P toggle 641 236 15 0;<br />
#P newex 641 255 55 196617 metro 20;<br />
#P newex 641 287 104 196617 jit.qt.movie 320 240;<br />
#P comment 657 236 149 196617 &#8226; read a movie and start metro.;<br />
#P newex 150 475 69 196617 jit.gl.slab foo;<br />
#P newex 162 391 45 196617 r slabbo;<br />
#P message 554 255 79 196617 read dozer.mov;<br />
#P message 459 255 28 196617 read;<br />
#P message 524 255 27 196617 stop;<br />
#P message 490 255 31 196617 start;<br />
#P toggle 396 236 15 0;<br />
#P newex 396 255 55 196617 metro 20;<br />
#P newex 396 287 104 196617 jit.qt.movie 320 240;<br />
#P comment 412 236 149 196617 &#8226; read a movie and start metro.;<br />
#P message 308 255 79 196617 read dozer.mov;<br />
#P message 213 255 28 196617 read;<br />
#P message 278 255 27 196617 stop;<br />
#P message 244 255 31 196617 start;<br />
#P toggle 150 236 15 0;<br />
#P newex 150 255 55 196617 metro 20;<br />
#P newex 150 287 104 196617 jit.qt.movie 320 240;<br />
#P comment 166 236 149 196617 &#8226; read a movie and start metro.;<br />
#P newex 150 432 69 196617 jit.gl.slab foo;<br />
#P toggle 234 593 15 0;<br />
#P message 234 611 45 196617 sync $1;<br />
#P toggle 161 593 15 0;<br />
#P newex 122 592 35 196617 sel 27;<br />
#P message 161 611 68 196617 fullscreen $1;<br />
#P newex 79 635 147 196617 jit.window foo @depthbuffer 0;<br />
#P newex 77 592 40 196617 key;<br />
#P user jit.fpsgui 62 380 60 196617 0;<br />
#P number 85 253 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 40 253 15 0;<br />
#P newex 40 279 55 196617 qmetro 20;<br />
#P newex 40 329 66 196617 t b b b erase;<br />
#P newex 40 666 80 196617 jit.gl.render foo;<br />
#P newex 150 528 99 196617 jit.gl.videoplane foo;<br />
#P connect 4 0 3 0;<br />
#P connect 3 0 2 0;<br />
#P connect 52 0 1 0;<br />
#P connect 2 3 1 0;<br />
#P connect 2 0 1 0;<br />
#P connect 2 1 6 0;<br />
#P fasten 9 0 8 0 166 630 84 630;<br />
#P fasten 12 0 8 0 239 630 84 630;<br />
#P connect 5 0 3 1;<br />
#P fasten 7 0 10 0 82 611 119 611 119 590 127 590;<br />
#P connect 18 0 17 0;<br />
#P connect 2 2 16 0;<br />
#P fasten 21 0 16 0 218 281 155 281;<br />
#P fasten 20 0 16 0 283 281 155 281;<br />
#P fasten 19 0 16 0 249 281 155 281;<br />
#P fasten 22 0 16 0 313 281 155 281;<br />
#P connect 41 0 14 0;<br />
#P connect 31 0 14 0;<br />
#P connect 14 0 32 0;<br />
#P connect 32 0 0 0;<br />
#P connect 42 0 41 0;<br />
#P connect 46 0 41 0;<br />
#P connect 16 0 41 0;<br />
#P fasten 10 0 11 0 127 610 158 610 158 590 166 590;<br />
#P connect 11 0 9 0;<br />
#P connect 53 0 14 1;<br />
#P connect 13 0 12 0;<br />
#P connect 51 0 47 0;<br />
#P connect 47 0 46 1;<br />
#P connect 43 0 42 1;<br />
#P fasten 48 0 46 2 347 131 332 131;<br />
#P fasten 44 0 42 2 366 177 354 177;<br />
#P fasten 49 0 46 3 385 131 357 131;<br />
#P connect 24 0 53 0;<br />
#P connect 58 0 53 0;<br />
#P connect 54 0 53 0;<br />
#P fasten 45 0 42 3 404 177 382 177;<br />
#P connect 26 0 25 0;<br />
#P connect 2 2 24 0;<br />
#P fasten 30 0 24 0 559 281 401 281;<br />
#P fasten 27 0 24 0 495 281 401 281;<br />
#P fasten 28 0 24 0 529 281 401 281;<br />
#P fasten 29 0 24 0 464 281 401 281;<br />
#P connect 63 0 59 0;<br />
#P connect 59 0 58 1;<br />
#P connect 55 0 54 1;<br />
#P fasten 60 0 58 2 637 125 622 125;<br />
#P fasten 56 0 54 2 656 171 644 171;<br />
#P connect 36 0 35 0;<br />
#P connect 2 2 34 0;<br />
#P fasten 39 0 34 0 709 281 646 281;<br />
#P fasten 38 0 34 0 774 281 646 281;<br />
#P fasten 37 0 34 0 740 281 646 281;<br />
#P fasten 40 0 34 0 804 281 646 281;<br />
#P fasten 61 0 58 3 675 125 647 125;<br />
#P fasten 57 0 54 3 694 171 672 171;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-73590</guid>
					<title><![CDATA[Re: multiple matrix layer slowdown]]></title>
					<link>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-73590</link>
					<pubDate>Thu, 30 Mar 2006 14:58:05 +0000</pubDate>
					<dc:creator>dan</dc:creator>

					<description>
						<![CDATA[
						<p>foo is not the name of the jit.gl objects, it&#8217;s the name of the render<br />
context.  Check out the Jitter tutorials on this subject.  Try using a<br />
videoplane for each QT movie.  Your videoplanes will composite if you<br />
start playing with the blend_mode attribute, e.g., send the following<br />
to the inlet of a videoplane and play with the number boxes:</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P newex 278 295 100 196617 prepend blend_mode;<br />
#P number 339 252 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 280 273 43 196617 pak 1 1;<br />
#P number 280 250 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P connect 0 0 1 0;<br />
#P connect 1 0 3 0;<br />
#P connect 2 0 1 1;<br />
#P window clipboard copycount 4;</p>
<p>If your patch still isn&#8217;t doing what you want it to, think about your<br />
render order. (I like to write it down on a piece of paper.)  You want<br />
to:</p>
<p>1. erase jit.gl.render<br />
2. Do Stuff, e.g., draw videoplanes with movies on them, move them<br />
around &#8212; again, check out the GL tutorials to learn how this works &#8211;<br />
6.  bang jit.gl.render to write the whole thing out to the render context</p>
<p>best,<br />
dan</p>
<p>&#8211;<br />
***<br />
<a href="http://danwinckler.com" rel="nofollow">http://danwinckler.com</a><br />
<a href="http://share.dj" rel="nofollow">http://share.dj</a></p>
<p><a href="http://gunshowimprov.com" rel="nofollow">http://gunshowimprov.com</a></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-73591</guid>
					<title><![CDATA[Re: multiple matrix layer slowdown]]></title>
					<link>http://cycling74.com/forums/topic/multiple-matrix-layer-slowdown/#post-73591</link>
					<pubDate>Thu, 30 Mar 2006 15:55:31 +0000</pubDate>
					<dc:creator>lstask@gmail.com</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks Dan &#8211; I think I&#8217;ve found a solution, thanks to your nudge towards playing with the blend_mode attribute.  This obviates the need for the jit.qt.slab objects in my simple case.  </p>
<p>I think there were several other issues in trying to use a videoplane before and after the jit.qt.slab (bad).  I was indeed using a videoplane for each movie, as you suggested, but this setup of before and after the slabs was definitely my stumbling block. </p>
<p>Anyhow, thanks for the tip!</p>
<p>Liam</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

