[sharing is fun] uyvy fixed pipe blending [XP redux]

Sep 23, 2006 at 8:28pm

[sharing is fun] uyvy fixed pipe blending [XP redux]

So apparently jit.window on Windows has a depth_buffer by default
eventhough @depbuffer 0 is set, so you need to modify the patch such
that the videoplanes have @depth_enable 0. After doing this, the
patch should work on Windoze and OSX

wes

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P newex 46 352 76 9109513 append blender;
#P window setfont “Sans Serif” 14.;
#P comment 436 69 105 9109518 Alpha Channel;
#P window setfont “Sans Serif” 9.;
#P comment 163 370 72 9109513 Overlay Image;
#P newex 449 230 48 9109513 loadbang;
#P newex 133 230 48 9109513 loadbang;
#P newex 346 67 48 9109513 loadbang;
#P newex 362 324 243 9109513 jit.gl.texture blend @colormode uyvy @name mov2;
#P newex 418 370 47 9109513 r draw2;
#P newex 362 396 308 9109513 jit.gl.videoplane blend @blend_enable 1
@automatic 0 @depth_enable 0;
#P newex 46 324 243 9109513 jit.gl.texture blend @colormode uyvy @name mov1;
#P newex 346 173 264 9109513 jit.gl.texture blend @colormode lumalpha
@name blender;
#P button 346 88 15 0;
#P newex 346 151 129 9109513 jit.matrix 2 char 320 240;
#P newex 346 129 127 9109513 jit.expr @expr “norm[0]“;
#P newex 346 107 142 9109513 jit.matrix 1 float32 320 240;
#P newex 102 370 47 9109513 r draw1;
#N vpatcher 20 74 179 252;
#P window setfont “Sans Serif” 9.;
#P window linecount 0;
#P newex 48 85 30 9109513 t b b;
#P window linecount 1;
#P newex 68 107 47 9109513 s draw2;
#P newex 48 129 47 9109513 s draw1;
#P newex 24 54 58 9109513 t b b erase;
#P inlet 24 34 15 0;
#P outlet 24 85 15 0;
#P connect 1 0 2 0;
#P fasten 2 2 0 0 77 78 29 78;
#P connect 2 0 0 0;
#P connect 2 1 5 0;
#P connect 5 0 3 0;
#P connect 5 1 4 0;
#P pop;
#P newobj 46 175 41 9109513 p draw;
#P newex 46 396 308 9109513 jit.gl.videoplane blend @blend_enable 1
@automatic 0 @depth_enable 0;
#P flonum 558 253 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 558 274 42 9109513 rate $1;
#P message 449 253 83 9109513 read dishes.mov;
#P message 495 275 27 9109513 stop;
#P message 461 275 31 9109513 start;
#P flonum 404 254 35 9 0.5 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 362 254 15 0;
#P newex 362 274 52 9109513 metro 30;
#P message 525 275 31 9109513 clear;
#P newex 362 301 188 9109513 jit.qt.movie 320 240 @colormode uyvy;
#P flonum 247 254 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 247 275 42 9109513 rate $1;
#P message 133 253 81 9109513 read wheel.mov;
#P message 181 275 27 9109513 stop;
#P message 147 275 31 9109513 start;
#P flonum 88 254 35 9 0.5 0 1 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 46 254 15 0;
#P newex 46 274 52 9109513 metro 30;
#P message 211 275 31 9109513 clear;
#P newex 46 301 188 9109513 jit.qt.movie 320 240 @colormode uyvy;
#P toggle 148 116 15 0;
#P message 148 136 68 9109513 fullscreen $1;
#N vpatcher 30 89 166 253;
#P window setfont “Sans Serif” 9.;
#P newex 50 71 35 9109513 sel 27;
#P newex 50 50 40 9109513 key;
#P outlet 50 93 15 0;
#P connect 1 0 2 0;
#P connect 2 0 0 0;
#P pop;
#P newobj 148 96 33 9109513 p Esc;
#P newex 148 154 84 9109513 jit.window blend;
#P message 109 154 34 9109513 reset;
#P newex 109 175 191 9109513 jit.gl.handle blend @inherit_transform 1;
#P toggle 46 108 42 0;
#P newex 46 154 57 9109513 qmetro 30;
#P newex 46 200 79 9109513 jit.gl.render blend;
#P comment 475 370 62 9109513 Base Image;
#P window setfont “Sans Serif” 20.;
#P comment 43 36 276 9109524 uyvy Blending with lumalpha;
#P window setfont “Sans Serif” 9.;
#P comment 54 62 122 9109513 Wesley Smith , 9-23-06;
#P comment 127 349 138 9109513 < = compositing alpha texture;
#B frgb 44 72 220;
#P fasten 47 0 26 0 454 250 367 250;
#P connect 47 0 30 0;
#P connect 34 0 4 0;
#P fasten 7 0 4 0 114 196 51 196;
#P fasten 43 0 42 0 423 392 367 392;
#P connect 44 0 42 0;
#P fasten 35 0 33 0 107 392 51 392;
#P connect 50 0 33 0;
#P connect 41 0 50 0;
#P connect 13 0 41 0;
#P fasten 46 0 16 0 138 250 51 250;
#P connect 46 0 20 0;
#P connect 6 0 5 0;
#P connect 5 0 34 0;
#P connect 16 0 15 0;
#P fasten 21 0 13 0 252 296 51 296;
#P fasten 20 0 13 0 138 296 51 296;
#P fasten 19 0 13 0 186 296 51 296;
#P fasten 18 0 13 0 152 296 51 296;
#P fasten 14 0 13 0 216 296 51 296;
#P fasten 15 0 13 0 51 299 51 299;
#P connect 17 0 15 1;
#P connect 8 0 7 0;
#P connect 10 0 12 0;
#P connect 12 0 11 0;
#P connect 11 0 9 0;
#P connect 22 0 21 0;
#P connect 26 0 25 0;
#P fasten 25 0 23 0 367 299 367 299;
#P fasten 24 0 23 0 530 296 367 296;
#P fasten 28 0 23 0 466 296 367 296;
#P fasten 29 0 23 0 500 296 367 296;
#P fasten 30 0 23 0 454 296 367 296;
#P fasten 31 0 23 0 563 296 367 296;
#P connect 23 0 44 0;
#P connect 45 0 39 0;
#P connect 39 0 36 0;
#P connect 36 0 37 0;
#P connect 37 0 38 0;
#P connect 38 0 40 0;
#P connect 27 0 25 1;
#P connect 32 0 31 0;
#P window clipboard copycount 51;

#27757

You must be logged in to reply to this topic.