XML Feeds

.

[jitter] Rendering to texture: how to jit.gl.videoplane at full screen??

Robert Griffin Byron robbiebyron at gmail.com
Tue Jan 22 22:12:58 MST 2008


Gday,

I am having resolution problems when trying to interp  
jit.gl.videoplane to full screen. I cant seem to find a way for  
jit.gl.videoplane to fill the whole window without scaling it above 1.  
1.333 1., which causes pixelation. Does anyone know what I am doing  
wrong?

The below is Andrew's patch, as an example.

Any ideas would be fantastic. Robbie

max v2;
#N vpatcher 43 165 1483 1017;
#P window setfont "Sans Serif" 10.;
#P comment 821 383 249 196618 pixelation is nnnnnnnasty;
#P window setfont "Sans Serif" 9.;
#P newex 566 384 249 196617 jit.gl.videoplane cfacks @scale 2.333 2.  
2. @interp 1;
#N vpatcher 241 275 491 513;
#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P message 30 101 68 196617 fullscreen \$1;
#P toggle 30 83 15 0;
#P window linecount 0;
#P newex 30 63 35 196617 sel 27;
#P newex 30 43 40 196617 key;
#P outlet 30 118 15 0;
#P connect 1 0 2 0;
#P connect 2 0 3 0;
#P connect 3 0 4 0;
#P connect 4 0 0 0;
#P pop;
#P newobj 100 28 67 196617 p Ful_screen;
#P comment 796 307 80 196617 scale_bias filter;
#P comment 616 207 132 196617 dodge composite (feedback);
#P comment 709 261 64 196617 gaussian blur;
#P comment 608 107 201 196617 this is our render destination for the  
nurbs;
#P user jit.fpsgui 41 379 60 196617 0;
#P flonum 631 141 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 631 161 88 196617 param amount \$1;
#P newex 127 144 56 196617 qlim 1000;
#P newex 127 165 124 196617 jit.matrix 3 float32 10 5;
#P message 1060 183 43 196617 \$1 400;
#P newex 1060 202 40 196617 line 0.;
#P newex 1060 164 41 196617 * 0.03;
#P newex 1060 144 64 196617 random 100;
#P message 995 183 43 196617 \$1 400;
#P newex 995 202 40 196617 line 0.;
#P newex 995 164 41 196617 * 0.03;
#P newex 995 144 64 196617 random 100;
#P message 930 183 43 196617 \$1 400;
#P newex 930 202 40 196617 line 0.;
#P newex 930 164 41 196617 * 0.03;
#P newex 930 144 64 196617 random 100;
#P message 821 182 43 196617 \$1 400;
#P newex 821 200 40 196617 line 0.;
#P newex 840 97 50 196617 qlim 500;
#P hidden newex 498 43 48 196617 loadbang;
#P hidden message 498 63 14 196617 0;
#P toggle 548 42 47 0;
#P newex 548 135 27 196617 + 1;
#P newex 548 163 38 196617 gate 2;
#P flonum 1012 238 38 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 973 238 38 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 930 238 42 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 929 259 135 196617 pak param scale 1. 1. 1.;
#P newex 576 288 300 196617 jit.gl.slab cracks @file cc.scalebias.jxs  
@dim 320 240 @adapt 0;
#P newex 576 188 171 196617 jit.gl.slab cracks @file co.dodge.jxs;
#P newex 821 122 29 196617 gate;
#P number 70 265 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 70 285 56 196617 dim \$1 \$1;
#P newex 127 226 177 196617 jit.matrix 3 float32 20 20 @interp 1;
#P newex 127 245 184 196617 jit.slide @slide_up 50 @slide_down 50;
#P newex 821 163 103 196617 expr $i1*0.02-0.01;
#P newex 821 143 64 196617 random 200;
#P message 820 223 81 196617 param width \$1;
#P newex 576 324 250 196617 jit.gl.videoplane cracks @scale 1.333 1.  
1. @interp 1;
#P newex 576 242 197 196617 jit.gl.slab cracks @file cf.gaussian.2p.jxs;
#P newex 576 120 233 196617 jit.gl.texture cracks @name super @dim 640  
480;
#P newex 243 284 271 196617 jit.gl.handle cracks @inherit_transform 1  
@auto_rotate 1;
#P message 243 265 34 196617 reset;
#P newex 127 265 115 196617 jit.dimmap @invert 1 1;
#P newex 127 285 91 196617 prepend ctlmatrix;
#P window linecount 2;
#P newex 127 312 311 196617 jit.gl.nurbs cracks @color 0.8 0.7 0.3 0.6  
@capture super @rotate 20. 60. 0. 0. @blend_enable 1 @poly_mode 1 0  
@lighting_enable 1;
#P window linecount 1;
#P newex 41 73 74 196617 t erase b b b b;
#P newex 41 358 229 196617 jit.gl.render cracks @erase_color 0.2 0.1  
0.1 1.;
#P window linecount 2;
#P newex 127 187 226 196617 jit.expr @expr  
"jit.noise()*0.5-0.5+snorm[0]" "jit.noise()*4.-2." "snorm[1]" @cache 0;
#P window linecount 1;
#P newex 93 53 177 196617 jit.window cracks @interp 1 @fsaa 1;
#P toggle 11 53 29 0;
#P newex 41 53 51 196617 qmetro 5;
#P window linecount 3;
#P comment 596 47 57 196617 turn on/off slab processing;
#P window setfont "Sans Serif" 20.;
#P window linecount 1;
#P comment 651 342 23 196628 ?;
#P hidden connect 3 0 2 0;
#P connect 2 0 7 0;
#P fasten 7 1 6 0 62 224 46 224;
#P connect 7 0 6 0;
#P connect 6 0 54 0;
#P connect 22 0 21 0;
#P connect 59 0 4 0;
#P fasten 7 2 51 0 78 139 132 139;
#P connect 51 0 50 0;
#P connect 50 0 5 0;
#P fasten 7 2 20 0 78 219 132 219;
#P connect 5 0 20 0;
#P connect 20 0 19 0;
#P connect 19 0 10 0;
#P connect 10 0 9 0;
#P fasten 12 0 8 0 248 305 132 305;
#P connect 9 0 8 0;
#P fasten 21 0 8 0 75 305 132 305;
#P connect 11 0 12 0;
#P hidden connect 34 0 33 0;
#P connect 32 0 31 0;
#P hidden fasten 33 0 31 0 503 132 553 132;
#P connect 31 0 30 0;
#P fasten 7 3 13 0 94 109 581 109;
#P connect 13 0 30 1;
#P fasten 52 0 24 0 636 183 581 183;
#P connect 30 1 24 0;
#P connect 24 0 14 0;
#P fasten 16 0 14 0 825 238 581 238;
#P fasten 26 0 25 0 934 283 581 283;
#P connect 14 0 25 0;
#P connect 25 0 15 0;
#P fasten 30 0 15 0 553 309 581 309;
#P connect 53 0 52 0;
#P fasten 25 0 24 1 581 309 568 309 568 183 742 183;
#P connect 36 0 16 0;
#P fasten 32 0 23 0 553 93 826 93;
#P connect 23 0 17 0;
#P connect 17 0 18 0;
#P connect 18 0 37 0;
#P connect 37 0 36 0;
#P hidden fasten 7 4 35 0 110 88 845 88;
#P connect 35 0 23 1;
#P fasten 23 0 38 0 826 140 935 140;
#P connect 38 0 39 0;
#P connect 39 0 41 0;
#P connect 41 0 40 0;
#P connect 40 0 27 0;
#P connect 44 0 28 0;
#P fasten 27 0 26 2 935 255 996 255;
#P fasten 23 0 42 0 829 140 1000 140;
#P connect 42 0 43 0;
#P connect 43 0 45 0;
#P connect 45 0 44 0;
#P connect 48 0 29 0;
#P fasten 28 0 26 3 978 255 1027 255;
#P fasten 29 0 26 4 1017 255 1058 255;
#P fasten 23 0 46 0 827 140 1065 140;
#P connect 46 0 47 0;
#P connect 47 0 49 0;
#P connect 49 0 48 0;
#P pop;



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.cycling74.com/pipermail/jitter/attachments/20080123/8f95a7f0/attachment.htm


More information about the jitter mailing list