Forums > Jitter

same texture multiple times

May 22, 2007 | 8:15 pm

Hi,
can anyone help me to put the same texture– 3 to 10 times across one
obj? and have them mirrored together? have been trying to figure it out
from jit.gl.texture– but am having mucho troubles.

thanks,

Jack


May 22, 2007 | 9:29 pm

If you’re using rectangular textures (@rectangle 1 (default)), then
depending on your hardware it may or may not work. Most hardware
nowadays supports rectangular mirroring though. you want to look at
jit.gl.texture @wrap as well as the texgen and tex_plane_s/t
attributes of whatever object you’re working with.

wes

On 5/22/07, Jack Ox wrote:
> Hi,
> can anyone help me to put the same texture– 3 to 10 times across one
> obj? and have them mirrored together? have been trying to figure it out
> from jit.gl.texture– but am having mucho troubles.
>
> thanks,
>
> Jack
>
>


May 22, 2007 | 9:34 pm

wesly posted this awhile ago.
change the zoom and switch texture bound mode to "repeat".

#P window setfont "Sans Serif" 9.;
#P flonum 729 146 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 692 146 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 662 168 86 9109513 pak anchor 0.5 0.5;
#P toggle 441 126 15 0;
#P toggle 418 126 15 0;
#P toggle 395 126 15 0;
#P toggle 372 126 15 0;
#P newex 349 146 104 9109513 pak bordercolor 0 0 0 1;
#N vpatcher 95 381 578 727;
#P window setfont "Sans Serif" 9.;
#P window linecount 0;
#P newex 98 79 60 9109513 unpack 0. 0.;
#P window linecount 1;
#P newex 32 47 109 9109513 route theta zoom anchor;
#P window linecount 0;
#P newex 353 98 27 9109513 t b l;
#P flonum 32 127 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P newex 190 219 27 9109513 * 1.;
#P newex 370 178 27 9109513 * -1.;
#P newex 227 219 27 9109513 * 1.;
#P newex 32 219 27 9109513 * 1.;
#P newex 370 123 60 9109513 unpack 0. 0.;
#P newex 353 76 60 9109513 vexpr 1./$f1;
#P newex 69 219 27 9109513 * -1.;
#P newex 32 149 81 9109513 expr 0.5*cos($f1);
#P newex 209 149 78 9109513 expr 0.5*sin($f1);
#P flonum 301 244 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 264 244 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 227 244 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 190 244 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 191 267 128 9109513 pak tex_plane_t 0. 0.5 0. 0.5;
#P flonum 143 245 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 106 245 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 69 245 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 32 245 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 33 267 130 9109513 pak tex_plane_s 0.5 0. 0. 0.5;
#P inlet 32 25 15 0;
#P outlet 33 297 15 0;
#P connect 1 0 23 0;
#P connect 23 0 21 0;
#P fasten 22 0 21 0 358 122 37 122;
#P connect 21 0 13 0;
#P connect 13 0 17 0;
#P connect 17 0 3 0;
#P fasten 7 0 0 0 196 291 38 291;
#P connect 2 0 0 0;
#P fasten 16 0 17 1 375 171 54 171;
#P fasten 3 0 2 1 37 263 68 263;
#P fasten 12 0 14 0 214 182 74 182;
#P connect 14 0 4 0;
#P fasten 19 0 14 1 375 208 91 208;
#P fasten 4 0 2 2 74 263 98 263;
#P connect 23 2 24 0;
#P fasten 5 0 2 3 111 263 128 263;
#P fasten 24 0 6 0 103 104 148 104;
#P fasten 6 0 2 4 148 263 158 263;
#P fasten 12 0 20 0 214 182 195 182;
#P connect 20 0 8 0;
#P fasten 16 1 20 1 425 213 212 213;
#P fasten 21 0 12 0 37 145 214 145;
#P fasten 8 0 7 1 195 263 225 263;
#P fasten 13 0 18 0 37 193 232 193;
#P connect 18 0 9 0;
#P fasten 16 1 18 1 425 213 249 213;
#P fasten 9 0 7 2 232 263 254 263;
#P fasten 10 0 7 3 269 263 283 263;
#P fasten 24 1 11 0 153 108 306 108;
#P fasten 11 0 7 4 306 263 312 263;
#P fasten 23 1 15 0 70 71 358 71;
#P connect 15 0 22 0;
#P connect 22 1 16 0;
#P connect 16 0 19 0;
#P pop;
#P newobj 467 197 80 9109513 p TexCoordMagic;
#P message 467 170 42 9109513 theta $1;
#P newex 467 145 83 9109513 expr $f1*3.14/180;
#P flonum 591 121 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 628 145 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 591 145 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 561 168 70 9109513 pak zoom 1. 1.;
#P flonum 467 125 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P user ubumenu 241 106 100 9109513 0 1 1 0;
#X add clamp;
#X add repeat;
#X add clampedge;
#X add clampborder;
#X add mirroredrepeat;
#X prefix_set 0 0 0;
#X pattrmode 1;
#P newex 248 131 70 9109513 prepend wrap;
#P window linecount 2;
#P newex 142 235 235 9109513 jit.gl.videoplane rota @transform_reset 2
@tex_map 1 @tex_plane_s 0.5 0. 0. 0.5 @tex_plane_t 0. 0.5 0. 0.5;
#P window linecount 1;
#P newex 142 173 224 9109513 jit.gl.texture rota @rectangle 0
@bordercolor 1 0 0 0;
#P message 142 106 78 9109513 read dishes.mov;
#P newex 142 138 55 9109513 jit.qt.movie;
#P newex 26 188 66 9109513 jit.window rota;
#P newex 26 164 73 9109513 jit.gl.render rota;
#P newex 26 137 45 9109513 t b erase;
#P toggle 26 81 15 0;
#P newex 26 101 50 9109513 qmetro 33;
#P comment 246 88 66 9109513 Bound Modes;
#P comment 357 108 116 9109513 can’t seem to make black;
#P window setfont "Sans Serif" 18.;
#P comment 88 43 211 9109522 Rota-like texcoord magic;
#P connect 4 0 3 0;
#P connect 3 0 5 0;
#P connect 5 0 6 0;
#P fasten 5 1 6 0 66 160 31 160;
#P fasten 3 0 8 0 31 129 147 129;
#P connect 9 0 8 0;
#P fasten 22 0 10 0 354 169 147 169;
#P connect 8 0 10 0;
#P fasten 12 0 10 0 253 161 147 161;
#P connect 10 0 11 0;
#P fasten 21 0 11 0 472 225 147 225;
#P fasten 13 1 12 0 291 126 253 126;
#P connect 23 0 22 1;
#P connect 24 0 22 2;
#P connect 25 0 22 3;
#P connect 26 0 22 4;
#P connect 14 0 19 0;
#P connect 19 0 20 0;
#P fasten 27 0 21 0 667 192 472 192;
#P fasten 15 0 21 0 566 193 472 193;
#P connect 20 0 21 0;
#P connect 18 0 16 0;
#P connect 16 0 15 1;
#P fasten 17 0 15 2 633 164 626 164;
#P fasten 18 0 17 0 596 140 633 140;
#P fasten 28 0 27 1 697 164 705 164;
#P fasten 29 0 27 2 734 165 743 165;
#P window clipboard copycount 30;

On 5/22/07, Jack Ox wrote:
> Hi,
> can anyone help me to put the same texture– 3 to 10 times across one
> obj? and have them mirrored together? have been trying to figure it out
> from jit.gl.texture– but am having mucho troubles.
>
> thanks,
>
> Jack
>
>


May 22, 2007 | 10:03 pm

I cant seem to use floats with jit.shiva to make it emit less than one
particle per frame. Is there a reason for this? Or is my solution to use a
separate slow metro on jit.shiva, and drive jit.vishnu with the openGL
clocK?

Christopher Overstreet


May 22, 2007 | 10:23 pm


May 23, 2007 | 1:12 am

the following should do the trick to let only one particle escape at a time.
-rob

#P window setfont "Sans Serif" 9.;
#P window linecount 1;
#P newex 154 205 27 196617 0;
#P toggle 181 81 15 0;
#P newex 181 107 51 196617 qmetro 5;
#P message 227 178 13 196617 1;
#P toggle 162 153 15 0;
#P newex 162 175 29 196617 gate;
#P newex 181 152 48 196617 t 0 l b;
#P message 154 230 43 196617 emit $1;
#P newex 181 131 166 196617 jit.matrix brahma 8 float32 300 2;
#P newex 168 259 56 196617 jit.p.shiva;
#B color 8;
#P button 235 97 26 0;
#P comment 46 155 115 196617 open gate to pause emit;
#P comment 266 105 228 196617 bang to let one particle escape when gate is open;
#P connect 7 0 12 0;
#P fasten 6 2 12 0 224 196 159 196;
#P connect 12 0 5 0;
#P fasten 9 0 12 1 232 199 176 199;
#P connect 6 0 7 1;
#P connect 4 0 6 0;
#P fasten 6 1 3 0 205 250 173 250;
#P connect 11 0 10 0;
#P connect 10 0 4 0;
#P fasten 2 0 9 0 240 173 232 173;
#P fasten 5 0 3 0 159 251 173 251;
#P connect 8 0 7 0;
#P window clipboard copycount 13;


Viewing 6 posts - 1 through 6 (of 6 total)