<?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: bug? with jit.matrix and planemap in js</title>
		<atom:link href="http://cycling74.com/forums/topic/bug-with-jit-matrix-and-planemap-in-js/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/bug-with-jit-matrix-and-planemap-in-js/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 12:04:43 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/bug-with-jit-matrix-and-planemap-in-js/#post-33244</guid>
					<title><![CDATA[bug? with jit.matrix and planemap in js]]></title>
					<link>http://cycling74.com/forums/topic/bug-with-jit-matrix-and-planemap-in-js/#post-33244</link>
					<pubDate>Mon, 13 Aug 2007 23:30:12 +0000</pubDate>
					<dc:creator>Peter Nyboer</dc:creator>

					<description>
						<![CDATA[
						<p>I&#8217;m trying to map the green channel to the alpha channel using planemap in javascript.  the js and patch below show that (what I belive to be) equivalent situations produce different results &#8211; works in &#8216;visual&#8217; max, but not in js max.</p>
<p>
//&#8212;&#8211;begin map.js</p>
<p>	var mov = new JitterObject(&#8220;jit.qt.movie&#8221;);<br />
	mov.autostart = 1;<br />
	mov.adapt = 1;</p>
<p>	var outmatrix = new JitterMatrix(4,&#8221;char&#8221;);<br />
	outmatrix.adapt = 1;<br />
	outmatrix.planemap = [2,1,2,3];</p>
<p>function bang(){	<br />
	mov.matrixcalc(outmatrix,outmatrix);<br />
	outlet(0,&#8221;jit_matrix&#8221;,outmatrix.name);<br />
}</p>
<p>function read(v){<br />
	rv = mov.read(v);<br />
}</p>
<p>function getit(){<br />
	post(&#8220;planemap is: &#8220;,outmatrix.planemap[0],outmatrix.planemap[1],outmatrix.planemap[2],outmatrix.planemap[3]);<br />
}</p>
<p>//////&#8212;&#8212;end map.js&#8212;&#8212;&#8212;&#8212;-</p>
<p>&#8212;&#8211;begin patch map.js.help&#8212;-</p>
<p>#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P comment 557 260 100 196617 it works here!;<br />
#P user jit.pwindow 801 195 82 62 0 1 0 0 1 0;<br />
#P user jit.pwindow 720 195 82 62 0 1 0 0 1 0;<br />
#P user jit.pwindow 639 195 82 62 0 1 0 0 1 0;<br />
#P user jit.pwindow 558 195 82 62 0 1 0 0 1 0;<br />
#P newex 683 146 66 196617 jit.unpack;<br />
#P newex 577 125 143 196617 jit.matrix @planemap 2 1 2 3;<br />
#P newex 577 104 63 196617 jit.qt.movie;<br />
#P comment 184 308 235 196617 < --according to the report , the @ is correctly set;<br />
#P message 151 306 31 196617 getit;<br />
#P newex 126 128 21 196617 t 1;<br />
#P user jit.pwindow 441 196 82 62 0 1 0 0 1 0;<br />
#P user jit.pwindow 360 196 82 62 0 1 0 0 1 0;<br />
#P user jit.pwindow 279 196 82 62 0 1 0 0 1 0;<br />
#P user jit.pwindow 198 196 82 62 0 1 0 0 1 0;<br />
#P newex 323 147 66 196617 jit.unpack;<br />
#P toggle 174 110 15 0;<br />
#P newex 175 131 46 196617 metro 3;<br />
#P user jit.pwindow 64 195 82 62 0 1 0 0 1 0;<br />
#P user dropfile 48 19 154 117 1;<br />
#P window linecount 2;<br />
#P comment 51 55 100 196617 drag and drop a file here&#8230;;<br />
#P window linecount 1;<br />
#P newex 53 127 68 196617 prepend read;<br />
#P newex 57 158 52 196617 js map.js;<br />
#P window linecount 3;<br />
#P comment 195 263 100 196617 why isn&#8217;t the planemap in the js doing its job?;<br />
#P connect 4 0 2 0;<br />
#P connect 6 0 1 0;<br />
#P connect 2 0 1 0;<br />
#P connect 14 0 1 0;<br />
#P connect 1 0 5 0;<br />
#P connect 2 0 13 0;<br />
#P connect 13 0 7 0;<br />
#P connect 7 0 6 0;<br />
#P connect 8 0 9 0;<br />
#P connect 8 1 10 0;<br />
#P connect 1 0 8 0;<br />
#P connect 8 2 11 0;<br />
#P connect 8 3 12 0;<br />
#P connect 18 0 19 0;<br />
#P connect 6 0 16 0;<br />
#P connect 2 0 16 0;<br />
#P connect 16 0 17 0;<br />
#P connect 18 1 20 0;<br />
#P connect 17 0 18 0;<br />
#P connect 18 2 21 0;<br />
#P connect 18 3 22 0;<br />
#P window clipboard copycount 24;</p>
<p>&#8212;&#8211;end patch map.js.help&#8212;&#8212;&#8211;</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

