<?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: swap alpha channels with jit.unpack jit.pack</title>
		<atom:link href="http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/feed" rel="self" type="application/rss+xml" />
		<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/feed</link>
		<description></description>
		<pubDate>Wed, 19 Jun 2013 06:42:45 +0000</pubDate>
		<generator>http://bbpress.org/?v=2.2.4</generator>
		<language></language>

		
														
					
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81947</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81947</link>
					<pubDate>Mon, 14 Aug 2006 20:59:56 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
On Aug 14, 2006, at 8:09 PM, Timothy Devine wrote:</p>
<p>><br />
> I am stumped&#8230; it&#8217;s frustrating when you see a problem as going to  <br />
> be easy to solve and it turns out to be real challenge.<br />
><br />
> All I want to do is use a difference key as a revealing mask on  <br />
> another video and then composit that over another video&#8230; i have  <br />
> spent two days on this&#8230; I have no idea why it is not working!<br />
><br />
> here is an example of what i want to do, and how i think it sould  <br />
> work, it works ok but am sure there is an easier way.</p>
<p>You need to explain better what exactly you want to do and what apect  <br />
of your patch is not working for you. Your patch seems to work as  <br />
expected by your patch design as far as I can tell. I&#8217;m not sure why  <br />
you&#8217;re subtracting the red difference key from the chilis.jpg, but I  <br />
assume you have a reason for that. I&#8217;m also not sure why you&#8217;re  <br />
alphablending with colorwheel and then trying to do a luminance key  <br />
to it. However, perhaps this is just for illustration and there would  <br />
otherwise be a fourth stream for the luminance key. Hard to say.</p>
<p>Otherwise your patch seems simple and an appropriate way to achieve  <br />
what I believe you&#8217;re describing. I&#8217;ve attached a version of a  <br />
difference keying example I use when teaching at bottom. It only  <br />
makes a binary mask, but is otherwise similar to what you are doing  <br />
prior to the luminance key.</p>
<p>You could speed things up a bit if you use 1 plane matrices for your  <br />
lowpass filter, and the absdiff operator, replacing jit.brcosa with  <br />
jit.charmap or jit.map. Alternately, you could make much faster using  <br />
the GPU, but that will be more involved. Once you get it working on  <br />
the CPU, you might then look at porting your algorithm to a single  <br />
shader for the GPU.</p>
<p>-Joshua</p>
<p>
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P flonum 697 161 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 message 697 182 42 196617 rate $1;<br />
#P message 666 182 28 196617 read;<br />
#P flonum 637 161 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 603 161 15 0;<br />
#P newex 603 181 44 196617 metro 2;<br />
#P newex 603 221 104 196617 jit.qt.movie 320 240;<br />
#P newex 415 268 69 196617 jit.alphablend;<br />
#P user jit.pwindow 414 292 322 242 0 1 0 0 1 0;<br />
#P newex 415 216 131 196617 jit.pack @out_name charlie;<br />
#P newex 438 143 88 196617 jit.matrix charlie;<br />
#P window linecount 6;<br />
#P comment 181 549 140 196617 this mask could be improved using erode/ <br />
dilate morphological operations. see jit.convolve-morphop.pat example  <br />
or Jean marc Pelletier&#8217;s cv.jit externals;<br />
#P window linecount 2;<br />
#P comment 100 405 153 196617 average color components and work with  <br />
greyscale difference;<br />
#P window linecount 1;<br />
#P newex 16 434 235 196617 jit.rgb2luma @rscale 0.3 @gscale 0.3  <br />
@bscale 0.3;<br />
#P user jit.fpsgui 16 678 60 196617 0;<br />
#P message 179 65 45 196617 settings;<br />
#P message 137 65 32 196617 close;<br />
#P comment 182 523 100 196617 mask;<br />
#P comment 154 457 100 196617 threshold;<br />
#P user jit.pwindow 15 512 162 122 0 0 0 0 1 0;<br />
#P flonum 111 457 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P newex 16 480 111 196617 jit.op @op > @val 0.15;<br />
#P window linecount 2;<br />
#P comment 226 164 162 196617 background averaging coefficient  <br />
(larger values smoother);<br />
#P flonum 183 168 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 message 183 193 133 196617 slide_up $1 , slide_down $1;<br />
#P newex 94 214 171 196617 jit.slide @slide_up 2 @slide_down 2;<br />
#P toggle 94 144 15 0;<br />
#P newex 94 164 27 196617 gate;<br />
#P newex 16 239 88 196617 jit.op @op absdiff;<br />
#P message 94 65 29 196617 open;<br />
#P flonum 50 45 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 16 45 15 0;<br />
#P newex 16 65 44 196617 metro 2;<br />
#P newex 16 103 146 196617 jit.qt.grab 320 240 @unique 1;<br />
#P user jit.pwindow 15 268 162 122 0 0 0 0 1 0;<br />
#P comment 184 279 100 196617 difference;<br />
#P window setfont &#8220;Sans Serif&#8221; 18.;<br />
#P comment 146 27 496 196626 crude example of background elimination.;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 2;<br />
#P comment 125 132 176 196617 to set background , open gate for some  <br />
period of time and then close gate;<br />
#P comment 458 107 195 196617 using named matrix charlie to  <br />
efficiently merge alpha channel in jit.pack below;<br />
#P connect 7 0 6 0;<br />
#P fasten 23 0 5 0 184 91 21 91;<br />
#P fasten 22 0 5 0 142 91 21 91;<br />
#P fasten 9 0 5 0 99 91 21 91;<br />
#P fasten 6 0 5 0 21 96 21 96;<br />
#P connect 5 0 10 0;<br />
#P connect 10 0 4 0;<br />
#P connect 4 0 25 0;<br />
#P connect 25 0 17 0;<br />
#P connect 17 0 19 0;<br />
#P connect 19 0 24 0;<br />
#P connect 8 0 6 1;<br />
#P connect 12 0 11 0;<br />
#P fasten 14 0 13 0 188 211 99 211;<br />
#P connect 11 0 13 0;<br />
#P connect 13 0 10 1;<br />
#P fasten 5 0 11 1 21 128 116 128;<br />
#P connect 18 0 17 1;<br />
#P connect 15 0 14 0;<br />
#P fasten 19 0 29 0 21 646 384 646 384 205 420 205;<br />
#P connect 29 0 31 0;<br />
#P connect 31 0 30 0;<br />
#P fasten 5 0 28 0 21 123 443 123;<br />
#P fasten 32 0 31 1 608 253 479 253;<br />
#P connect 34 0 33 0;<br />
#P connect 37 0 32 0;<br />
#P connect 36 0 32 0;<br />
#P connect 33 0 32 0;<br />
#P connect 35 0 33 1;<br />
#P connect 38 0 37 0;<br />
#P window clipboard copycount 39;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-27160</guid>
					<title><![CDATA[swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-27160</link>
					<pubDate>Tue, 15 Aug 2006 03:09:36 +0000</pubDate>
					<dc:creator>div</dc:creator>

					<description>
						<![CDATA[
						<p>I am stumped&#8230; it&#8217;s frustrating when you see a problem as going to be easy to solve and it turns out to be real challenge.</p>
<p>All I want to do is use a difference key as a revealing mask on another video and then composit that over another video&#8230; i have spent two days on this&#8230; I have no idea why it is not working!</p>
<p>here is an example of what i want to do, and how i think it sould work, it works ok but am sure there is an easier way. </p>
<p>thanks,</p>
<p>tim</p>
<p>max v2;<br />
#N vpatcher 10 59 1363 892;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P newex 313 465 61 196617 jit.lumakey;<br />
#B color 5;<br />
#P newex 313 331 64 196617 jit.op @op ~;<br />
#P newex 313 299 63 196617 jit.op @op -;<br />
#P newex 143 139 45 196617 loadbang;<br />
#P message 143 162 17 196617 1.;<br />
#P flonum 189 197 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 44 197 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 121 197 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P message 189 216 69 196617 saturation $1;<br />
#P message 44 216 70 196617 brightness $1;<br />
#P message 121 216 61 196617 contrast $1;<br />
#P newex 352 245 118 196617 jit.brcosa @contrast 10;<br />
#B color 5;<br />
#P message 672 97 99 196617 read colorwheel.jpg;<br />
#P message 497 98 74 196617 read chilis.jpg;<br />
#P user jit.pwindow 792 199 343 578 0 1 0 0 1 0;<br />
#P newex 313 425 70 196617 jit.alphablend;<br />
#B color 5;<br />
#P newex 476 274 66 196617 jit.unpack;<br />
#B color 5;<br />
#P newex 313 387 53 196617 jit.pack;<br />
#B color 5;<br />
#P newex 352 271 66 196617 jit.unpack;<br />
#B color 5;<br />
#P message 401 92 33 196617 close;<br />
#P window linecount 2;<br />
#P newex 350 149 106 196617 jit.slide @slide_up 30 @slide_down 30;<br />
#B color 5;<br />
#P window linecount 1;<br />
#P newex 271 189 89 196617 jit.op @op absdiff;<br />
#P message 364 93 30 196617 open;<br />
#P newex 350 122 98 196617 jit.qt.grab 341 576;<br />
#P newex 656 120 105 196617 jit.qt.movie 341 576;<br />
#P toggle 454 29 15 0;<br />
#P newex 454 49 57 196617 qmetro 33;<br />
#P newex 476 119 105 196617 jit.qt.movie 341 576;<br />
#P fasten 23 0 21 0 148 187 49 187;<br />
#P connect 21 0 18 0;<br />
#P fasten 23 0 20 0 148 187 126 187;<br />
#P connect 20 0 17 0;<br />
#P connect 24 0 23 0;<br />
#P fasten 23 0 22 0 148 187 194 187;<br />
#P connect 22 0 19 0;<br />
#P connect 4 0 6 0;<br />
#P fasten 11 0 25 0 481 295 318 295;<br />
#P connect 25 0 26 0;<br />
#P connect 26 0 10 0;<br />
#P connect 10 0 12 0;<br />
#P connect 12 0 27 0;<br />
#P connect 11 1 10 1;<br />
#P connect 11 2 10 2;<br />
#P fasten 1 0 4 0 459 88 355 88;<br />
#P fasten 8 0 4 0 406 114 355 114;<br />
#P fasten 5 0 4 0 369 114 355 114;<br />
#P connect 4 0 7 0;<br />
#P connect 7 0 6 1;<br />
#P fasten 19 0 16 0 194 241 357 241;<br />
#P fasten 18 0 16 0 49 241 357 241;<br />
#P fasten 17 0 16 0 126 241 357 241;<br />
#P fasten 6 0 16 0 276 219 357 219;<br />
#P connect 16 0 9 0;<br />
#P connect 11 3 10 3;<br />
#P fasten 3 0 27 1 661 458 369 458;<br />
#P connect 9 1 25 1;<br />
#P fasten 3 0 12 1 661 411 378 411;<br />
#P connect 2 0 1 0;<br />
#P fasten 1 0 0 0 459 88 481 88;<br />
#P connect 14 0 0 0;<br />
#P connect 0 0 11 0;<br />
#P fasten 1 0 3 0 459 88 661 88;<br />
#P connect 15 0 3 0;<br />
#P fasten 27 0 13 0 318 509 721 509 721 182 798 182;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81948</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81948</link>
					<pubDate>Tue, 15 Aug 2006 07:18:15 +0000</pubDate>
					<dc:creator>div</dc:creator>

					<description>
						<![CDATA[
						<p>Hi joshua,</p>
<p>Thanks!</p>
<p>here is an updated version that shows you what i want to do. I took your advice with the GPU stuff &#8230; i think i get it, it works much faster!</p>
<p>thanks for your help</p>
<p>max v2;<br />
#N vpatcher 111 44 1464 877;<br />
#P origin -28 22;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P comment 684 202 165 196617 movie 2;<br />
#P comment 865 200 165 196617 movie 3;<br />
#P window linecount 4;<br />
#P comment 649 317 165 196617 the idea is that you wave infront of the camera and reveal the alpha image (movie 2) ontop of the image to composite onto (movie3);<br />
#P window linecount 1;<br />
#P comment 906 154 165 196617 an image to composite on to;<br />
#P comment 727 159 113 196617 an image with an alpha;<br />
#P newex 227 440 261 196617 jit.gl.slab foo @file cc.contrast.ip.jxs @param alpha -1.;<br />
#P newex 229 387 226 196617 jit.gl.slab foo @file cf.blur.jxs @param width 8.;<br />
#P newex 234 362 239 196617 jit.gl.slab foo @file cf.dilate.jxs @param width 10.;<br />
#P newex 227 469 256 196617 jit.gl.slab foo @file cc.saturate.ip.jxs @param alpha 0.;<br />
#P newex 367 283 70 196617 jit.gl.slab foo;<br />
#P window linecount 3;<br />
#P newex 367 233 140 196617 jit.gl.slab foo @file tp.slide.jxs @param slide_up 10 @param slide_down 10;<br />
#P window linecount 1;<br />
#P newex 280 554 129 196617 jit.matrix 4 char 341 576;<br />
#P newex 227 416 268 196617 jit.gl.slab foo @file co.subtractive.jxs @param amount 1.;<br />
#P newex 241 325 161 196617 jit.gl.slab foo @file op.absdiff.jxs;<br />
#P newex 19 592 169 196617 jit.gl.videoplane foo @scale 1. 1. 1.;<br />
#P toggle 274 23 15 0;<br />
#P message 274 41 59 196617 floating $1;<br />
#P toggle 201 23 15 0;<br />
#P newex 162 22 35 196617 sel 27;<br />
#P message 201 41 68 196617 fullscreen $1;<br />
#P newex 119 65 145 196617 jit.window foo @depthbuffer 1;<br />
#P newex 117 22 40 196617 key;<br />
#P user jit.fpsgui 99 173 60 196617 0;<br />
#P newex 77 122 55 196617 t b b erase;<br />
#P newex 77 217 80 196617 jit.gl.render foo;<br />
#P user jit.fpsgui 278 705 60 196617 0;<br />
#P hidden newex 645 44 48 196617 loadbong;<br />
#P newex 278 650 61 196617 jit.lumakey;<br />
#B color 5;<br />
#P message 871 158 30 196617 read;<br />
#P message 696 159 30 196617 read;<br />
#P user jit.pwindow 992 324 343 578 0 1 0 0 1 0;<br />
#P newex 278 620 70 196617 jit.alphablend;<br />
#B color 5;<br />
#P newex 675 226 66 196617 jit.unpack;<br />
#B color 5;<br />
#P newex 277 585 53 196617 jit.pack;<br />
#B color 5;<br />
#P message 600 153 33 196617 close;<br />
#P message 563 154 30 196617 open;<br />
#P newex 549 183 98 196617 jit.qt.grab 341 576;<br />
#P newex 855 181 105 196617 jit.qt.movie 341 576;<br />
#P toggle 653 90 15 0;<br />
#P newex 651 108 51 196617 qmetro 1;<br />
#P newex 675 180 105 196617 jit.qt.movie 341 576;<br />
#P window linecount 3;<br />
#P comment 234 516 100 196617 from saturate into the alpha of this image;<br />
#P connect 33 0 27 0;<br />
#P connect 2 0 18 0;<br />
#P fasten 18 2 17 0 126 155 82 155;<br />
#P connect 18 0 17 0;<br />
#P connect 18 1 19 0;<br />
#P fasten 25 0 21 0 279 60 124 60;<br />
#P fasten 22 0 21 0 206 60 124 60;<br />
#P fasten 20 0 23 0 122 41 159 41 159 20 167 20;<br />
#P fasten 23 0 24 0 167 40 198 40 198 20 206 20;<br />
#P connect 24 0 22 0;<br />
#P connect 35 0 29 0;<br />
#P connect 29 0 36 0;<br />
#P connect 36 0 33 0;<br />
#P connect 34 0 35 0;<br />
#P connect 28 0 34 0;<br />
#P connect 5 0 28 0;<br />
#P connect 26 0 25 0;<br />
#P connect 30 0 8 0;<br />
#P connect 8 0 10 0;<br />
#P connect 10 0 14 0;<br />
#P connect 14 0 16 0;<br />
#P connect 9 1 8 1;<br />
#P connect 9 2 8 2;<br />
#P connect 9 3 8 3;<br />
#P fasten 4 0 14 1 860 622 334 622;<br />
#P connect 1 0 10 1;<br />
#P connect 5 0 31 0;<br />
#P connect 31 0 32 0;<br />
#P fasten 32 0 28 1 372 309 397 309;<br />
#P connect 9 0 29 1;<br />
#P fasten 32 0 31 1 372 305 541 305 541 228 502 228;<br />
#P fasten 2 0 5 0 656 149 554 149;<br />
#P fasten 6 0 5 0 568 175 554 175;<br />
#P fasten 7 0 5 0 605 175 554 175;<br />
#P hidden connect 15 0 6 0;<br />
#P connect 3 0 2 0;<br />
#P hidden connect 15 0 3 0;<br />
#P connect 2 0 1 0;<br />
#P connect 12 0 1 0;<br />
#P connect 1 0 9 0;<br />
#P hidden connect 15 0 12 0;<br />
#P connect 2 0 4 0;<br />
#P connect 13 0 4 0;<br />
#P hidden connect 15 0 13 0;<br />
#P fasten 14 0 11 0 283 658 921 658 921 307 998 307;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81949</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81949</link>
					<pubDate>Tue, 15 Aug 2006 07:18:34 +0000</pubDate>
					<dc:creator>div</dc:creator>

					<description>
						<![CDATA[
						<p>Hi joshua,</p>
<p>Thanks!</p>
<p>here is an updated version that shows you what i want to do. I took your advice with the GPU stuff &#8230; i think i get it, it works much faster!</p>
<p>thanks for your help</p>
<p>max v2;<br />
#N vpatcher 111 44 1464 877;<br />
#P origin -28 22;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 1;<br />
#P comment 684 202 165 196617 movie 2;<br />
#P comment 865 200 165 196617 movie 3;<br />
#P window linecount 4;<br />
#P comment 649 317 165 196617 the idea is that you wave infront of the camera and reveal the alpha image (movie 2) ontop of the image to composite onto (movie3);<br />
#P window linecount 1;<br />
#P comment 906 154 165 196617 an image to composite on to;<br />
#P comment 727 159 113 196617 an image with an alpha;<br />
#P newex 227 440 261 196617 jit.gl.slab foo @file cc.contrast.ip.jxs @param alpha -1.;<br />
#P newex 229 387 226 196617 jit.gl.slab foo @file cf.blur.jxs @param width 8.;<br />
#P newex 234 362 239 196617 jit.gl.slab foo @file cf.dilate.jxs @param width 10.;<br />
#P newex 227 469 256 196617 jit.gl.slab foo @file cc.saturate.ip.jxs @param alpha 0.;<br />
#P newex 367 283 70 196617 jit.gl.slab foo;<br />
#P window linecount 3;<br />
#P newex 367 233 140 196617 jit.gl.slab foo @file tp.slide.jxs @param slide_up 10 @param slide_down 10;<br />
#P window linecount 1;<br />
#P newex 280 554 129 196617 jit.matrix 4 char 341 576;<br />
#P newex 227 416 268 196617 jit.gl.slab foo @file co.subtractive.jxs @param amount 1.;<br />
#P newex 241 325 161 196617 jit.gl.slab foo @file op.absdiff.jxs;<br />
#P newex 19 592 169 196617 jit.gl.videoplane foo @scale 1. 1. 1.;<br />
#P toggle 274 23 15 0;<br />
#P message 274 41 59 196617 floating $1;<br />
#P toggle 201 23 15 0;<br />
#P newex 162 22 35 196617 sel 27;<br />
#P message 201 41 68 196617 fullscreen $1;<br />
#P newex 119 65 145 196617 jit.window foo @depthbuffer 1;<br />
#P newex 117 22 40 196617 key;<br />
#P user jit.fpsgui 99 173 60 196617 0;<br />
#P newex 77 122 55 196617 t b b erase;<br />
#P newex 77 217 80 196617 jit.gl.render foo;<br />
#P user jit.fpsgui 278 705 60 196617 0;<br />
#P hidden newex 645 44 48 196617 loadbong;<br />
#P newex 278 650 61 196617 jit.lumakey;<br />
#B color 5;<br />
#P message 871 158 30 196617 read;<br />
#P message 696 159 30 196617 read;<br />
#P user jit.pwindow 992 324 343 578 0 1 0 0 1 0;<br />
#P newex 278 620 70 196617 jit.alphablend;<br />
#B color 5;<br />
#P newex 675 226 66 196617 jit.unpack;<br />
#B color 5;<br />
#P newex 277 585 53 196617 jit.pack;<br />
#B color 5;<br />
#P message 600 153 33 196617 close;<br />
#P message 563 154 30 196617 open;<br />
#P newex 549 183 98 196617 jit.qt.grab 341 576;<br />
#P newex 855 181 105 196617 jit.qt.movie 341 576;<br />
#P toggle 653 90 15 0;<br />
#P newex 651 108 51 196617 qmetro 1;<br />
#P newex 675 180 105 196617 jit.qt.movie 341 576;<br />
#P window linecount 3;<br />
#P comment 234 516 100 196617 from saturate into the alpha of this image;<br />
#P connect 33 0 27 0;<br />
#P connect 2 0 18 0;<br />
#P fasten 18 2 17 0 126 155 82 155;<br />
#P connect 18 0 17 0;<br />
#P connect 18 1 19 0;<br />
#P fasten 25 0 21 0 279 60 124 60;<br />
#P fasten 22 0 21 0 206 60 124 60;<br />
#P fasten 20 0 23 0 122 41 159 41 159 20 167 20;<br />
#P fasten 23 0 24 0 167 40 198 40 198 20 206 20;<br />
#P connect 24 0 22 0;<br />
#P connect 35 0 29 0;<br />
#P connect 29 0 36 0;<br />
#P connect 36 0 33 0;<br />
#P connect 34 0 35 0;<br />
#P connect 28 0 34 0;<br />
#P connect 5 0 28 0;<br />
#P connect 26 0 25 0;<br />
#P connect 30 0 8 0;<br />
#P connect 8 0 10 0;<br />
#P connect 10 0 14 0;<br />
#P connect 14 0 16 0;<br />
#P connect 9 1 8 1;<br />
#P connect 9 2 8 2;<br />
#P connect 9 3 8 3;<br />
#P fasten 4 0 14 1 860 622 334 622;<br />
#P connect 1 0 10 1;<br />
#P connect 5 0 31 0;<br />
#P connect 31 0 32 0;<br />
#P fasten 32 0 28 1 372 309 397 309;<br />
#P connect 9 0 29 1;<br />
#P fasten 32 0 31 1 372 305 541 305 541 228 502 228;<br />
#P fasten 2 0 5 0 656 149 554 149;<br />
#P fasten 6 0 5 0 568 175 554 175;<br />
#P fasten 7 0 5 0 605 175 554 175;<br />
#P hidden connect 15 0 6 0;<br />
#P connect 3 0 2 0;<br />
#P hidden connect 15 0 3 0;<br />
#P connect 2 0 1 0;<br />
#P connect 12 0 1 0;<br />
#P connect 1 0 9 0;<br />
#P hidden connect 15 0 12 0;<br />
#P connect 2 0 4 0;<br />
#P connect 13 0 4 0;<br />
#P hidden connect 15 0 13 0;<br />
#P fasten 14 0 11 0 283 658 921 658 921 307 998 307;<br />
#P pop;</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81950</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81950</link>
					<pubDate>Tue, 15 Aug 2006 19:50:45 +0000</pubDate>
					<dc:creator>Andrew Benson</dc:creator>

					<description>
						<![CDATA[
						<p>Hi Timothy,<br />
If you are using Jitter 1.6, you should have a look at the <br />
cc.alphaglue.jxs shader with param lum2alpha 1.  This will take the <br />
luminance of the second input and use that as the alpha channel for the <br />
left input.  You will then need an alphablend shader, which I have so <br />
kindly offered below.  Save the following text as co.alphablend.jxs and <br />
throw it in your jitter-shaders/composite folder.</p>
<p>Let me know how you get on with that.</p>
<p>
//Andrew Benson</p>
<p><jittershader name="difference"><br />
	<description><br />
	alphablending composite operator<br />
	</description></jittershader></p>
<param name="tex0" type="int" default="0" />
<param name="tex1" type="int" default="1" />
	<language name="glsl" version="1.0"><br />
		<bind param="amount" program="fp"></bind><br />
		<bind param="tex0" program="fp"></bind><br />
		<bind param="tex1" program="fp"></bind>
<program name="vp" type="vertex" source="sh.passthru.xform.vp.glsl"></program>
<program name="fp" type="fragment">
< ![CDATA[</p>
<p>// texcoords<br />
varying vec2 texcoord0;<br />
varying vec2 texcoord1;</p>
<p>// samplers<br />
uniform sampler2DRect tex0;<br />
uniform sampler2DRect tex1;</p>
<p>void main()<br />
{<br />
	vec4 a = texture2DRect(tex0, texcoord0);<br />
	vec4 b = texture2DRect(tex1, texcoord1);</p>
<p>	//do alphablend<br />
	vec3 mixr = mix(a.rgb,b.rgb,1.-a.a);<br />
	//set output alpha to 1.<br />
	gl_FragColor = vec4(mixr,1.);<br />
}</p>
<p>]]>
		</p></program>
	</language><br />

						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81951</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81951</link>
					<pubDate>Wed, 16 Aug 2006 00:44:17 +0000</pubDate>
					<dc:creator>div</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks Andrew!</p>
<p>It seems like the right way to go.  My only problem is the Erase from the trigger object erases my absdiff slab, so I can&#8217;t create a mask.  also i am not sure if the  alphablending composite operator was all that was supposed to be in the text file that i created and copied into my jitter-shaders/composite folder.  the shader I created does not detect it.</p>
<p>Thanks again it is much simpler!</p>
<p>I will keep trying with the alphablending composite operator, do not really understand it fully. my patch is below.</p>
<p>tim</p>
<p>max v2;<br />
#N vpatcher 528 44 1440 898;<br />
#P origin 0 -21;<br />
#P window setfont &#8220;Sans Serif&#8221; 9.;<br />
#P window linecount 3;<br />
#P comment 180 167 64 196617 the erase is negating my absdiff;<br />
#P window linecount 4;<br />
#P comment 250 178 136 196617 not sure if this is what i was supposed to do? it seems right but does not detect the shader file.;<br />
#P window linecount 1;<br />
#P message 706 132 93 196617 getparamtype amp;<br />
#P message 714 151 87 196617 getparamval amp;<br />
#P message 642 151 67 196617 getparamlist;<br />
#P newex 524 203 32 196617 print;<br />
#P newex 316 152 70 196617 prepend dump;<br />
#P user ubumenu 316 126 72 196617 0 1 1 0;<br />
#X add params;<br />
#X add source;<br />
#X add assembly;<br />
#X prefix_set 0 0 <none> 0;<br />
#X pattrmode 1;<br />
#P newex 316 95 72 196617 prepend prefer;<br />
#P user ubumenu 316 69 72 196617 0 1 1 0;<br />
#X add auto;<br />
#X add glsl;<br />
#X add cg;<br />
#X add arb;<br />
#X add nv;<br />
#X prefix_set 0 0 </none><none> 0;<br />
#X pattrmode 1;<br />
#P newex 204 95 71 196617 prepend read;<br />
#P user ubumenu 204 69 108 196617 0 1 1 0;<br />
#X add audio;<br />
#X add audio/ap.chorus.jxs;<br />
#X add audio/ap.compress.jxs;<br />
#X add audio/ap.delay.jxs;<br />
#X add audio/ap.highpass.jxs;<br />
#X add audio/ap.lowpass.jxs;<br />
#X add audio/ap.noisegate.jxs;<br />
#X add audio/ap.normalize.jxs;<br />
#X add color;<br />
#X add color/cc.alphaglue.jxs;<br />
#X add color/cc.brightness.ip.jxs;<br />
#X add color/cc.colormap.jxs;<br />
#X add color/cc.contrast.ip.jxs;<br />
#X add color/cc.exrdisplay.jxs;<br />
#X add color/cc.planemap.jxs;<br />
#X add color/cc.rgb2yuv.jxs;<br />
#X add color/cc.saturate.ip.jxs;<br />
#X add color/cc.scalebias.jxs;<br />
#X add composite;<br />
#X add composite/co.additive.jxs;<br />
#X add composite/co.alphablend.jxs.rtf;<br />
#X add composite/co.average.jxs;<br />
#X add composite/co.brightlight.jxs;<br />
#X add composite/co.burn.jxs;<br />
#X add composite/co.chromakey.jxs;<br />
#X add composite/co.darken.jxs;<br />
#X add composite/co.difference.jxs;<br />
#X add composite/co.dodge.jxs;<br />
#X add composite/co.exclude.jxs;<br />
#X add composite/co.freeze.jxs;<br />
#X add composite/co.glow.jxs;<br />
#X add composite/co.hardlight.jxs;<br />
#X add composite/co.heat.jxs;<br />
#X add composite/co.inverse.jxs;<br />
#X add composite/co.lighten.jxs;<br />
#X add composite/co.lumakey.jxs;<br />
#X add composite/co.multiply.jxs;<br />
#X add composite/co.negate.jxs;<br />
#X add composite/co.normal.jxs;<br />
#X add composite/co.overlay.jxs;<br />
#X add composite/co.reflect.jxs;<br />
#X add composite/co.screen.jxs;<br />
#X add composite/co.softlight.jxs;<br />
#X add composite/co.stamp.jxs;<br />
#X add composite/co.subtractive.jxs;<br />
#X add convolution;<br />
#X add convolution/cf.blur.jxs;<br />
#X add convolution/cf.convolve.jxs;<br />
#X add convolution/cf.dilate.jxs;<br />
#X add convolution/cf.edgedetect.jxs;<br />
#X add convolution/cf.emboss.jxs;<br />
#X add convolution/cf.erode.jxs;<br />
#X add convolution/cf.gaussian.2p.jxs;<br />
#X add convolution/cf.laplace.jxs;<br />
#X add convolution/cf.median.2p.jxs;<br />
#X add convolution/cf.radialblur.jxs;<br />
#X add convolution/cf.sharpen.ip.jxs;<br />
#X add convolution/cf.sharpen.jxs;<br />
#X add convolution/cf.sobel.jxs;<br />
#X add generator;<br />
#X add generator/gn.bricks.aa.jxs;<br />
#X add generator/gn.bricks.jxs;<br />
#X add generator/gn.checker.aa.jxs;<br />
#X add generator/gn.checker.jxs;<br />
#X add generator/gn.crosstile.jxs;<br />
#X add generator/gn.gloop.jxs;<br />
#X add generator/gn.gnoise.2d.jxs;<br />
#X add generator/gn.gradperm.png;<br />
#X add generator/gn.spiderweb.jxs;<br />
#X add generator/gn.spirals.jxs;<br />
#X add generator/gn.stripes.aa.jxs;<br />
#X add generator/gn.stripes.jxs;<br />
#X add gpgpu;<br />
#X add gpgpu/gp.binarysearch.jxs;<br />
#X add gpgpu/gp.bitonicsort.jxs;<br />
#X add gpgpu/gp.reduce.jxs;<br />
#X add material;<br />
#X add material/mat.glass.jxs;<br />
#X add material/mat.gooch.jxs;<br />
#X add material/mat.plastic.jxs;<br />
#X add material/mat.polkadots.jxs;<br />
#X add material/mat.shiny.jxs;<br />
#X add material/mat.sinebump.jxs;<br />
#X add material/mat.toon.jxs;<br />
#X add material/mat.xray.jxs;<br />
#X add math;<br />
#X add math/op.abs.jxs;<br />
#X add math/op.absdiff.jxs;<br />
#X add math/op.acos.jxs;<br />
#X add math/op.acosh.jxs;<br />
#X add math/op.add.jxs;<br />
#X add math/op.and.jxs;<br />
#X add math/op.asin.jxs;<br />
#X add math/op.asinh.jxs;<br />
#X add math/op.atan.jxs;<br />
#X add math/op.atan2.jxs;<br />
#X add math/op.atanh.jxs;<br />
#X add math/op.avg.jxs;<br />
#X add math/op.ceil.jxs;<br />
#X add math/op.cos.jxs;<br />
#X add math/op.cosh.jxs;<br />
#X add math/op.div.jxs;<br />
#X add math/op.eq.jxs;<br />
#X add math/op.eqp.jxs;<br />
#X add math/op.exp.jxs;<br />
#X add math/op.exp2.jxs;<br />
#X add math/op.floor.jxs;<br />
#X add math/op.fract.jxs;<br />
#X add math/op.gt.jxs;<br />
#X add math/op.gte.jxs;<br />
#X add math/op.gtep.jxs;<br />
#X add math/op.gtp.jxs;<br />
#X add math/op.hypot.jxs;<br />
#X add math/op.invert.jxs;<br />
#X add math/op.invsqrt.jxs;<br />
#X add math/op.ln.jxs;<br />
#X add math/op.log10.jxs;<br />
#X add math/op.log2.jxs;<br />
#X add math/op.lt.jxs;<br />
#X add math/op.lte.jxs;<br />
#X add math/op.ltep.jxs;<br />
#X add math/op.ltp.jxs;<br />
#X add math/op.max.jxs;<br />
#X add math/op.min.jxs;<br />
#X add math/op.mod.jxs;<br />
#X add math/op.mult.jxs;<br />
#X add math/op.neq.jxs;<br />
#X add math/op.neqp.jxs;<br />
#X add math/op.normcos.jxs;<br />
#X add math/op.normsin.jxs;<br />
#X add math/op.not.jxs;<br />
#X add math/op.or.jxs;<br />
#X add math/op.pow.jxs;<br />
#X add math/op.sign.jxs;<br />
#X add math/op.sin.jxs;<br />
#X add math/op.sinh.jxs;<br />
#X add math/op.sqrt.jxs;<br />
#X add math/op.sub.jxs;<br />
#X add math/op.tan.jxs;<br />
#X add math/op.tanh.jxs;<br />
#X add math/op.xor.jxs;<br />
#X add shared;<br />
#X add shared/arb;<br />
#X add shared/cg;<br />
#X add shared/glsl;<br />
#X add shared/licenses;<br />
#X add specialfx;<br />
#X add specialfx/fx.blobby.jxs;<br />
#X add specialfx/fx.tiles.jxs;<br />
#X add temporal;<br />
#X add temporal/tp.slide.jxs;<br />
#X add texdisplace;<br />
#X add texdisplace/td.cartopol.jxs;<br />
#X add texdisplace/td.fisheye.jxs;<br />
#X add texdisplace/td.kaleido.jxs;<br />
#X add texdisplace/td.lens.jxs;<br />
#X add texdisplace/td.lumadisplace.jxs;<br />
#X add texdisplace/td.mirror.jxs;<br />
#X add texdisplace/td.repos.jxs;<br />
#X add texdisplace/td.resample.jxs;<br />
#X add texdisplace/td.ripples.jxs;<br />
#X add texdisplace/td.rota.jxs;<br />
#X add texdisplace/td.sinefold.jxs;<br />
#X add texdisplace/td.twirl.jxs;<br />
#X add texdisplace/td.wobble.jxs;<br />
#X add transition;<br />
#X add transition/tr.dissolve.jxs;<br />
#X add transition/tr.edgeblend.jxs;<br />
#X add transition/tr.gridwipe.jxs;<br />
#X add transition/tr.shrinkwipe.jxs;<br />
#X add transition/tr.vignettes.jxs;<br />
#X add vertdisplace;<br />
#X add vertdisplace/vd.gnoise.2d.jxs;<br />
#X add vertdisplace/vd.gnoise.3d.jxs;<br />
#X add vertdisplace/vd.twist.jxs;<br />
#X add viz;<br />
#X add viz/vz.normals.mdl.jxs;<br />
#X add viz/vz.normals.view.jxs;<br />
#X add viz/vz.texcoords.jxs;<br />
#X prefix_set 0 1 c74:/jitter-shaders/ 1;<br />
#X pattrmode 1;<br />
#P flonum 641 22 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P message 641 45 73 196617 param amp $1;<br />
#P flonum 544 130 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P message 544 152 88 196617 param amp $1 $1;<br />
#P flonum 641 79 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P message 641 102 65 196617 param tol $1;<br />
#P flonum 544 79 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P message 544 103 75 196617 param luma $1;<br />
#P flonum 544 21 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P message 544 45 89 196617 param freq $1 $1;<br />
#P message 404 152 110 196617 read co.alphablend.jxs;<br />
#P newex 390 181 140 196617 jit.gl.shader fa @name shady;<br />
#B color 5;<br />
#P newex 542 361 65 196617 jit.gl.slab fa;<br />
#P window linecount 3;<br />
#P newex 542 311 156 196617 jit.gl.slab fa @file tp.slide.jxs @param slide_up 5 @param slide_down 5;<br />
#P window linecount 1;<br />
#P newex 416 403 156 196617 jit.gl.slab fa @file op.absdiff.jxs;<br />
#P message 510 239 30 196617 open;<br />
#P newex 496 268 98 196617 jit.qt.grab 341 576;<br />
#P comment 122 549 136 196617 fade: threshold fade;<br />
#P window linecount 2;<br />
#P comment 122 523 136 196617 thresh: apply a threshold on the alpha plane;<br />
#P comment 122 496 136 196617 lum2alpha: use the luminance of second texture instead;<br />
#P number 350 459 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 400 458 15 0;<br />
#P flonum 532 459 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P flonum 477 459 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 message 477 479 54 196617 thresh $1;<br />
#P message 532 479 44 196617 fade $1;<br />
#P message 350 479 48 196617 plane $1;<br />
#P message 400 479 70 196617 lum2alpha $1;<br />
#P newex 338 501 76 196617 prepend param;<br />
#P newex 518 561 32 196617 print;<br />
#P message 269 503 67 196617 getparamlist;<br />
#P newex 121 444 70 196617 jit.window fa;<br />
#P newex 258 561 259 196617 jit.gl.videoplane fa @scale 1.333 1. 1. @blend_enable 1;<br />
#P newex 121 422 121 196617 jit.gl.render fa @ortho 2;<br />
#P newex 121 170 58 196617 t b b erase;<br />
#P newex 258 531 169 196617 jit.gl.slab fa @file cc.alphaglue.jxs;<br />
#P message 272 393 30 196617 read;<br />
#P flonum 162 128 35 9 0.5 0 1 3 0 0 0 221 221 221 222 222 222 0 0 0;<br />
#P toggle 121 128 15 0;<br />
#P newex 121 149 51 196617 qmetro 2;<br />
#P newex 258 426 105 196617 jit.qt.movie 320 240;<br />
#P window linecount 2;<br />
#P comment 122 470 136 196617 plane: choose which plane of the second texture to use;<br />
#P connect 3 0 2 0;<br />
#P connect 2 0 7 0;<br />
#P fasten 7 2 8 0 174 416 126 416;<br />
#P connect 7 0 8 0;<br />
#P connect 4 0 2 1;<br />
#P fasten 42 1 43 0 258 90 209 90;<br />
#P fasten 7 1 1 0 150 416 263 416;<br />
#P fasten 5 0 1 0 277 416 263 416;<br />
#P fasten 13 0 6 0 343 522 263 522;<br />
#P fasten 11 0 6 0 274 522 263 522;<br />
#P connect 1 0 6 0;<br />
#P connect 6 0 9 0;<br />
#P fasten 44 1 45 0 352 90 321 90;<br />
#P fasten 46 1 47 0 352 147 321 147;<br />
#P fasten 14 0 13 0 405 497 343 497;<br />
#P fasten 15 0 13 0 355 497 343 497;<br />
#P fasten 16 0 13 0 537 497 343 497;<br />
#P fasten 17 0 13 0 482 497 343 497;<br />
#P connect 21 0 15 0;<br />
#P fasten 51 0 30 0 711 174 395 174;<br />
#P fasten 50 0 30 0 719 174 395 174;<br />
#P fasten 49 0 30 0 647 174 395 174;<br />
#P fasten 40 0 30 0 646 67 395 67;<br />
#P fasten 38 0 30 0 549 174 395 174;<br />
#P fasten 36 0 30 0 646 125 395 125;<br />
#P fasten 34 0 30 0 549 125 395 125;<br />
#P fasten 32 0 30 0 549 67 395 67;<br />
#P fasten 31 0 30 0 409 174 395 174;<br />
#P fasten 43 0 30 0 209 120 395 120;<br />
#P fasten 45 0 30 0 321 120 395 120;<br />
#P fasten 47 0 30 0 321 176 395 176;<br />
#P connect 20 0 14 0;<br />
#P connect 25 0 27 0;<br />
#P connect 27 0 6 1;<br />
#P connect 18 0 17 0;<br />
#P fasten 26 0 25 0 515 260 501 260;<br />
#P fasten 7 1 25 0 150 224 501 224;<br />
#P fasten 6 1 12 0 422 553 523 553;<br />
#P connect 30 1 48 0;<br />
#P connect 19 0 16 0;<br />
#P connect 25 0 28 0;<br />
#P connect 28 0 29 0;<br />
#P connect 33 0 32 0;<br />
#P connect 35 0 34 0;<br />
#P connect 39 0 38 0;<br />
#P fasten 29 0 27 1 547 387 567 387;<br />
#P connect 41 0 40 0;<br />
#P connect 37 0 36 0;<br />
#P fasten 29 0 28 1 547 383 716 383 716 306 693 306;<br />
#P pop;</none></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81952</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81952</link>
					<pubDate>Fri, 18 Aug 2006 01:14:21 +0000</pubDate>
					<dc:creator>div</dc:creator>

					<description>
						<![CDATA[
						<p>Hi all,</p>
<p>Is there an alphablending composite operator already in max?  I can&#8217;t seem to find one.  Is there any other way to combine two images, one with an alpha in openGL using a slab, like jit.alphablend?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81953</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81953</link>
					<pubDate>Fri, 18 Aug 2006 01:28:18 +0000</pubDate>
					<dc:creator>Wesley Smith</dc:creator>

					<description>
						<![CDATA[
						<p>There are any number of ways to combine 2 images in opengl.  You could<br />
use 2 layered jit.gl.videoplanes.  Another way would be to use a<br />
compositing slab operation and display the result on a single<br />
jit.gl.videoplane.  Look in your jitter-shaders/composite folder, all<br />
of the photoshop layer blend modes are there.  Have a look at tutorial<br />
42 for more information.</p>
<p>wes</p>
<p>On 8/17/06, Timothy Devine <timdevine86 @yahoo.com.au> wrote:<br />
><br />
> Hi all,<br />
><br />
> Is there an alphablending composite operator already in max?  I can&#8217;t seem to find one.  Is there any other way to combine two images, one with an alpha in openGL using a slab, like jit.alphablend?<br />
><br />
><br />
><br />
><br />
></timdevine86></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81954</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81954</link>
					<pubDate>Fri, 18 Aug 2006 01:33:38 +0000</pubDate>
					<dc:creator>div</dc:creator>

					<description>
						<![CDATA[
						<p>If i use 2 layered jit.gl.videoplanes will that utilize the alpha channel if it is there?  The Photoshop blend modes won&#8217;t use the alpha.</p>
<p>tim</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81955</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81955</link>
					<pubDate>Fri, 18 Aug 2006 01:42:26 +0000</pubDate>
					<dc:creator>Wesley Smith</dc:creator>

					<description>
						<![CDATA[
						<p>On 8/17/06, Timothy Devine <timdevine86 @yahoo.com.au> wrote:<br />
><br />
> If i use 2 layered jit.gl.videoplanes will that utilize the alpha channel if it is there?</timdevine86></p>
<p>Yes depending on your blend_mode attribute.</p>
<p>The Photoshop blend modes won&#8217;t use the alpha.</p>
<p>True, but you can modify them to use the alpha channel however you<br />
want.  It&#8217;s quite easy to do.  If you don&#8217;t know GLSL, there are a<br />
number of tutorials online that can exaplin the basics.  Personally, I<br />
would go this route as it&#8217;s more flexible than using the OpenGL fixed<br />
function pipeline&#8217;s blend_modes.</p>
<p>wes</p>
<p>><br />
> tim<br />
></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81956</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81956</link>
					<pubDate>Fri, 18 Aug 2006 01:51:05 +0000</pubDate>
					<dc:creator>div</dc:creator>

					<description>
						<![CDATA[
						<p>Thanks wes. </p>
<p>I will give GLSL a shot.</p>
<p>tim</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81957</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81957</link>
					<pubDate>Fri, 18 Aug 2006 02:30:07 +0000</pubDate>
					<dc:creator>Joshua Kit Clayton</dc:creator>

					<description>
						<![CDATA[
						<p>
FWIW, Andrew Benson just posted an alphablend shader to the list earlier<br />
this week. Check the archives&#8230;</p>
<p>-Joshua</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
mail2web &#8211; Check your email from the web at<br />
<a href="http://mail2web.com/" rel="nofollow">http://mail2web.com/</a> .</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81958</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81958</link>
					<pubDate>Fri, 18 Aug 2006 04:17:18 +0000</pubDate>
					<dc:creator>vade</dc:creator>

					<description>
						<![CDATA[
						<p>Actually, here is a question ive been meaning to ask, for the OpenGL  <br />
blend modes, do any of them have &#8216;photoshop&#8217; equivalents? for example  <br />
6, 1 seems like overlay. The reason I ask, is so I can give the modes  <br />
some accurate names in a UI in building, rather than just numbers.</p>
<p>I did a rudementary search, to no avail. Far too much signal to noise.</p>
<p>Thanks!</p>
<p>
v a d e //</p>
<p><a href="http://www.vade.info" rel="nofollow">http://www.vade.info</a><br />
abstrakt.vade.info</p>
<p>On Aug 17, 2006, at 10:30 PM, <a href="mailto:jkc@musork.com">jkc@musork.com</a> wrote:</p>
<p>><br />
> FWIW, Andrew Benson just posted an alphablend shader to the list  <br />
> earlier<br />
> this week. Check the archives&#8230;<br />
><br />
> -Joshua<br />
><br />
> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
> mail2web &#8211; Check your email from the web at<br />
> <a href="http://mail2web.com/" rel="nofollow">http://mail2web.com/</a> .<br />
><br />
><br />
></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81959</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81959</link>
					<pubDate>Fri, 18 Aug 2006 06:36:53 +0000</pubDate>
					<dc:creator>Andrew Benson</dc:creator>

					<description>
						<![CDATA[
						<p>FWIW, I just emailed the shader directly to Timothy, but putting <br />
together an alphablend shader would make a great first project for <br />
learning GLSL.  It&#8217;s amazing what you can accomplish with just a couple <br />
lines of code.</p>
<p>Andrew B.</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81960</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81960</link>
					<pubDate>Fri, 18 Aug 2006 11:31:05 +0000</pubDate>
					<dc:creator>Kyred</dc:creator>

					<description>
						<![CDATA[
						<p></p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81961</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81961</link>
					<pubDate>Fri, 18 Aug 2006 11:49:31 +0000</pubDate>
					<dc:creator>Pedro Santos</dc:creator>

					<description>
						<![CDATA[
						<p>Sorry, I can&#8217;t seem to find the shader. Could someone link me to it?</p>
						]]>
					</description>

					
					
				</item>

			
				<item>
					<guid>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81962</guid>
					<title><![CDATA[Re: swap alpha channels with jit.unpack jit.pack]]></title>
					<link>http://cycling74.com/forums/topic/swap-alpha-channels-with-jit-unpack-jit-pack/#post-81962</link>
					<pubDate>Mon, 20 Nov 2006 17:24:11 +0000</pubDate>
					<dc:creator>legaultsalvail@videotron.ca</dc:creator>

					<description>
						<![CDATA[
						<p>Could you send me this interesting shader please? (co.alphablend.jxs)<br />
It could be very nice because it misses some parts directly in the post. Can you send it in an attachment to avoid the missing parts?</p>
<p>Thank you very much!</p>
						]]>
					</description>

					
					
				</item>

					
		
	</channel>
	</rss>

