XML Feeds

.

[jitter] [jit.gl.texture @repeat mode]

Derrick Giscloux derrickgiscloux at free.fr
Sun Feb 17 10:08:56 MST 2008


Hello,

I'm using a [jit.gl.texture] to apply an image on a plane, and would like to repeat this texture like a photogram from a film.

So I'm using the tex_mode 3 for my [gl.gridshape @shape plane] and the "wrap repeat" mode for my [gl.texture].

The problem is that the repeated pattern is truncated, and I want the full image to be repeated.
How can I do that ?


max v2;
#N vpatcher 57 79 845 587;
#P origin 53 -15;
#P window setfont "Sans Serif" 9.;
#P message 380 59 14 196617 3;
#P newex 695 228 48 196617 loadbang;
#P message 464 222 53 196617 bball.mov;
#P flonum 711 83 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 677 83 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 643 83 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 609 83 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 560 83 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 526 83 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 492 83 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 458 83 33 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 609 101 73 196617 pak 0. 1. 0. 0.;
#P newex 459 101 73 196617 pak 1. 0. 0. 0.;
#P message 609 120 124 196617 tex_plane_t \$1 \$2 \$3 \$4;
#P message 459 120 125 196617 tex_plane_s \$1 \$2 \$3 \$4;
#P number 380 78 35 9 0 4 3 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 380 95 64 196617 tex_map \$1;
#P newex 464 254 105 196617 prepend importmovie;
#P user jit.pwindow 490 320 29 22 0 1 0 0 1 0;
#P newex 472 278 27 196617 t b l;
#P user ubumenu 496 379 100 196617 0 1 1 0;
#X add clamp;
#X add repeat;
#X add clampedge;
#X add clampborder;
#X add mirroredrepeat;
#X prefix_set 0 0 <none> 0;
#X pattrmode 1;
#P newex 503 404 70 196617 prepend wrap;
#P newex 472 434 210 196617 jit.gl.texture sdf @name tex1 @wrap repeat;
#P newex 472 298 129 196617 jit.matrix 4 char 640 480;
#P toggle 145 109 15 0;
#P newex 145 129 29 196617 gate;
#P newex 164 106 84 196617 jit.gl.handle qwe;
#P toggle 276 96 15 0;
#P newex 276 116 29 196617 gate;
#P newex 295 93 80 196617 jit.gl.handle sdf;
#P newex 276 157 229 196617 jit.gl.gridshape sdf @shape plane @texture tex1;
#P message 69 185 117 196617 name sdf \, size 320 240;
#P user jit.pwindow 68 211 322 242 0 1 0 0 1 0;
#X name sdf;
#P newex 73 155 175 196617 jit.gl.render sdf @inherit_transform;
#P newex 73 105 50 196617 t b erase;
#P toggle 73 55 15 0;
#P newex 73 79 57 196617 qmetro 20;
#P connect 5 0 4 0;
#P connect 1 0 0 0;
#P connect 0 0 2 0;
#P connect 11 0 3 0;
#P fasten 2 1 3 0 118 126 78 126;
#P connect 2 0 3 0;
#P connect 12 0 11 0;
#P connect 10 0 11 1;
#P connect 9 0 8 0;
#P fasten 23 0 6 0 614 146 281 146;
#P fasten 22 0 6 0 464 146 281 146;
#P fasten 20 0 6 0 385 142 281 142;
#P connect 8 0 6 0;
#P connect 7 0 8 1;
#P connect 35 0 36 0;
#P connect 36 0 21 0;
#P connect 21 0 20 0;
#P connect 26 0 24 0;
#P connect 24 0 22 0;
#P connect 35 0 34 0;
#P connect 34 0 19 0;
#P fasten 19 0 17 0 469 274 477 274;
#P connect 17 0 13 0;
#P connect 17 1 13 0;
#P connect 13 0 14 0;
#P connect 15 0 14 0;
#P connect 27 0 24 1;
#P connect 13 0 18 0;
#P connect 28 0 24 2;
#P fasten 16 1 15 0 546 399 508 399;
#P connect 29 0 24 3;
#P connect 30 0 25 0;
#P connect 25 0 23 0;
#P connect 31 0 25 1;
#P connect 32 0 25 2;
#P connect 33 0 25 3;
#P pop;



More information about the jitter mailing list