Slab on a jit.gl.model

Apr 15, 2008 at 12:14pm

Slab on a jit.gl.model

Hi,

I’m working on a project in which I use a particle system (shiva and vishnu) to let 3D models move over my screen in 3D. I want to apply slab to these models. As suggested in this forum and recipe 21 I can render to a texture and process the texture with slabs. This works, but now I’ve got a videoplane which ruines my visuals. Because I’ve got a video running in the background. Is there another way to show the 3D models after I’ve processed them with slab. Can’t I just render ‘m and use a “slab texture” on them?

I can’t get it working. Any suggestions?

THANKS

#36935
Apr 15, 2008 at 8:57pm

are you rendering to a videoplane that has blend_enable enabled, so
that you can see through the alpha values of your rendered to movie?

On Apr 15, 2008, at 8:14 AM, Rutger wrote:

>
> Hi,
>
> I’m working on a project in which I use a particle system (shiva and
> vishnu) to let 3D models move over my screen in 3D. I want to apply
> slab to these models. As suggested in this forum and recipe 21 I can
> render to a texture and process the texture with slabs. This works,
> but now I’ve got a videoplane which ruines my visuals. Because I’ve
> got a video running in the background. Is there another way to show
> the 3D models after I’ve processed them with slab. Can’t I just
> render ‘m and use a “slab texture” on them?
>
> I can’t get it working. Any suggestions?
>
> THANKS

#127154
Apr 15, 2008 at 9:34pm

Because there are so many ways to accomplish what you are describing, it
will be really hard to give any useful advice without seeing a simple
patch that demonstrates what you are seeing.

Andrew B.

#127155
Apr 16, 2008 at 10:22am

OK here I’ve got the simple besis of what I’m doing. The problems in this patch are:

1. I don’t want to see a videoplane in front of my video
2. I want to be able to rotate the 3D objects, not the videoplane
3. When I increase the number of particles only one is shown. I want to see them all. (this works when I don’t render to a texture and apply slab on that)

I would be very grateful if you guys can help me with this problem

Kind regads,
Rutger

#P window setfont “Sans Serif” 9.;
#P window linecount 1;
#P comment 658 64 100 9109513 read background video;
#P number 360 22 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 769 361 48 9109513 xfade $1;
#P newex 767 308 32 9109513 / 100.;
#P user hslider 528 22 18 128 100 1 0 0;
#P message 447 22 26 9109513 read;
#P message 684 22 26 9109513 read;
#P newex 249 172 53 9109513 t b b b b;
#P button 262 782 15 0;
#P message 266 22 26 9109513 read;
#B color 6;
#P toggle 1101 577 15 0;
#P message 1101 598 75 9109513 auto_rotate $1;
#P message 1066 599 32 9109513 reset;
#P newex 1066 622 214 9109513 jit.gl.handle romulus @depth_enable 1 @radius 2.;
#P newex 963 681 191 9109513 jit.gl.videoplane romulus @scale 1.333 1. 1.;
#P newex 990 490 151 9109513 jit.gl.texture romulus @name supe;
#P flonum 1017 326 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 1048 439 106 9109513 param slide_down $1;
#P flonum 896 323 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 903 389 93 9109513 param slide_up $1;
#P newex 1010 578 93 9109513 jit.gl.texture romulus;
#P newex 989 530 154 9109513 jit.gl.slab romulus @file tp.slide.jxs;
#P newex 536 555 32 9109513 r cam;
#P newex 671 589 41 9109513 r drawto;
#P newex 774 522 27 9109513 s v1;
#P newex 905 523 27 9109513 s v2;
#P newex 823 472 103 9109513 jit.qt.movie 320 240;
#P newex 810 527 42 9109513 jit.xfade;
#P newex 791 496 103 9109513 jit.qt.movie 320 240;
#P hidden newex 106 125 42 9109513 r numb1;
#P newex 810 594 102 9109513 route jit_matrix;
#P newex 812 621 102 9109513 prepend draw_pixels;
#P window linecount 2;
#P newex 317 965 282 9109513 jit.gl.model romulus @smooth_shading 1 @lighting_enable 1 @depth_enable 1 @drawgroup 1 @blend_enable 1 @capture supe;
#B color 5;
#P window linecount 1;
#P hidden message 28 164 14 9109513 1;
#P hidden newex 28 137 45 9109513 loadbang;
#P newex 474 557 32 9109513 r tex1;
#P user jit.fpsgui 477 698 60 9109513 0;
#P message 1293 229 68 9109513 fullscreen $1;
#P toggle 1271 231 15 0;
#P newex 1318 204 35 9109513 sel 27;
#P newex 1276 204 40 9109513 key;
#P hidden newex 103 645 45 9109513 loadbang;
#P message 369 843 90 9109513 position $1 $2 $3;
#P message 212 842 110 9109513 color 0.5 0.5 0.5 1 , bang;
#P newex 395 713 41 9109513 jit.iter;
#P window linecount 2;
#P newex 533 588 109 9109513 jit.gl.handle romulus @inherit_transform 1;
#P window linecount 1;
#P message 504 473 48 9109513 dim $1 1;
#P hidden message 378 439 53 9109513 splitdim 1;
#P toggle 11 353 15 0;
#P comment 238 223 118 9109513 messages to p-vishnu ->;
#P newex 128 264 99 9109513 pak init_var 0. 0. 0.;
#P flonum 232 245 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 180 245 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 128 245 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 117 219 75 9109513 pak init 0. 0. 0.;
#P flonum 221 200 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 169 200 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 117 200 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 30 298 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 33 353 45 9109513 mode $1;
#P newex 316 307 85 9109513 pak force 0. 0. 0.;
#P newex 314 262 75 9109513 pak pos 0. 0. 0.;
#P newex 394 601 85 9109513 jit.pack 3 float32;
#P newex 370 533 95 9109513 jit.unpack 5 float32;
#P message 30 329 48 9109513 dim $1 2;
#P newex 301 382 59 9109513 jit.p.vishnu;
#B color 5;
#P newex 111 449 170 9109513 jit.matrix brahma 5 float32 1000 2;
#P newex 131 352 149 9109513 jit.matrix brahma 5 float32 1000 2;
#P newex 117 376 54 9109513 jit.p.shiva;
#B color 5;
#P hidden message 206 632 105 9109513 erase_color 0. 0. 0. 1;
#P number 52 244 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 52 264 65 9109513 emit_var $1;
#P number 2 244 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 2 264 43 9109513 emit $1;
#P flonum 418 288 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 367 288 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 316 288 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 52 201 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 52 220 60 9109513 life_var $1;
#P number 2 203 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 2 220 38 9109513 life $1;
#P flonum 520 288 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 520 307 70 9109513 speed_var $1;
#P flonum 470 288 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 470 307 48 9109513 speed $1;
#P flonum 520 243 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 520 262 64 9109513 yaw_var $1;
#P flonum 470 243 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 470 262 42 9109513 yaw $1;
#P flonum 520 200 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 520 219 65 9109513 pitch_var $1;
#P flonum 418 243 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 1293 257 229 9109513 jit.window romulus @rect 10 320 330 560 @floating 1;
#P newex 330 532 20 9109513 t b;
#P message 313 737 33 9109513 erase;
#P newex 467 646 160 9109513 jit.gl.render romulus @blend_mode 1;
#P newex 351 492 42 9109513 jit.split;
#P flonum 366 243 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 314 243 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 470 194 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 470 219 45 9109513 pitch $1;
#P number 290 130 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 212 22 31 0;
#P newex 250 148 45 9109513 metro 50;
#P comment 70 303 75 9109513 no. of particles;
#P comment 271 208 113 9109513 < - messages to p-shiva;
#P window linecount 0;
#P comment 1 382 115 9109513;
#P window linecount 1;
#P comment 213 64 35 9109513 start;
#B color 6;
#P comment 254 64 74 9109513 read 3D obj file;
#P comment 339 64 82 9109513 set nr of particles;
#P comment 429 64 100 9109513 read background video;
#P comment 542 64 100 9109513 mix background video;
#P connect 32 0 31 0;
#P connect 39 0 38 0;
#P hidden connect 77 0 78 0;
#P connect 110 0 53 0;
#P hidden connect 82 0 53 0;
#P hidden connect 78 0 53 0;
#P connect 53 0 47 0;
#P fasten 63 0 52 0 16 371 28 371 28 349 38 349;
#P connect 34 0 33 0;
#P connect 41 0 40 0;
#P fasten 46 0 45 0 306 431 116 431;
#P fasten 47 0 45 0 35 349 122 349 122 377 179 377 179 411 116 411;
#P fasten 52 0 43 0 38 377 122 377;
#P fasten 44 0 43 0 136 373 122 373;
#P lcolor 9;
#P fasten 31 0 43 0 7 241 122 241;
#P fasten 33 0 43 0 57 241 122 241;
#P fasten 38 0 43 0 7 284 122 284;
#P fasten 40 0 43 0 57 284 122 284;
#P fasten 61 0 43 0 133 330 122 330;
#P connect 57 0 43 0;
#P connect 104 3 44 0;
#P fasten 47 0 44 0 35 349 136 349;
#P fasten 54 0 57 1 122 217 143 217;
#P fasten 58 0 61 1 133 262 162 262;
#P fasten 55 0 57 2 174 217 164 217;
#P fasten 56 0 57 3 226 217 185 217;
#P fasten 59 0 61 2 185 262 191 262;
#P hidden connect 70 0 42 0;
#P connect 103 0 68 0;
#P fasten 60 0 61 3 237 262 220 262;
#P connect 8 0 104 0;
#P connect 9 0 8 0;
#P connect 67 0 103 0;
#P connect 10 0 8 1;
#P fasten 43 0 46 0 122 403 284 403 284 377 306 377;
#P fasten 29 0 46 0 525 328 306 328;
#P fasten 27 0 46 0 475 328 306 328;
#P fasten 25 0 46 0 525 283 306 283;
#P fasten 23 0 46 0 475 283 306 283;
#P fasten 21 0 46 0 525 239 306 239;
#P fasten 11 0 46 0 475 239 306 239;
#P fasten 50 0 46 0 319 283 306 283;
#P fasten 51 0 46 0 321 328 306 328;
#P fasten 52 0 46 0 38 377 306 377;
#P fasten 18 0 17 0 335 730 318 730;
#P connect 102 0 79 0;
#P connect 68 0 79 0;
#P connect 69 0 79 0;
#P fasten 15 0 18 0 356 519 335 519;
#P fasten 13 0 50 1 319 260 340 260;
#P fasten 35 0 51 1 321 305 346 305;
#P fasten 46 0 15 0 306 481 356 481;
#P hidden fasten 64 0 15 0 383 474 356 474;
#P fasten 14 0 50 2 371 260 361 260;
#P fasten 36 0 51 2 372 305 371 305;
#P connect 67 0 69 0;
#P fasten 65 0 48 0 509 510 424 510 424 519 375 519;
#P fasten 15 0 48 0 356 519 375 519;
#P fasten 20 0 50 3 423 260 382 260;
#P hidden fasten 70 0 64 0 108 638 215 638 215 416 383 416;
#P fasten 37 0 51 3 423 305 396 305;
#P fasten 65 0 49 0 509 592 399 592;
#P fasten 48 2 49 0 409 594 399 594;
#P connect 49 0 67 0;
#P fasten 48 3 49 1 426 589 436 589;
#P connect 76 0 16 0;
#P connect 88 0 16 0;
#P connect 80 0 16 0;
#P fasten 18 0 16 0 335 742 472 742;
#P fasten 17 0 16 0 318 756 472 756;
#P hidden connect 42 0 16 0;
#P fasten 66 0 16 0 538 627 472 627;
#P connect 89 0 16 0;
#P fasten 48 4 49 2 443 582 473 582;
#P connect 12 0 11 0;
#P connect 24 0 23 0;
#P connect 28 0 27 0;
#P connect 16 0 75 0;
#P fasten 53 0 65 0 35 324 509 324;
#P connect 22 0 21 0;
#P connect 26 0 25 0;
#P connect 30 0 29 0;
#P connect 107 0 108 0;
#P connect 108 0 109 0;
#P connect 83 0 87 0;
#P connect 106 0 83 0;
#P connect 104 1 83 0;
#P connect 109 0 84 0;
#P connect 83 0 84 0;
#P connect 84 0 81 0;
#P connect 81 0 80 0;
#P connect 105 0 85 0;
#P connect 104 0 85 0;
#P connect 85 0 84 1;
#P connect 93 0 92 0;
#P connect 85 0 86 0;
#P connect 91 0 97 0;
#P connect 98 0 97 0;
#P connect 92 0 90 0;
#P connect 94 0 90 0;
#P connect 96 0 90 0;
#P connect 104 2 96 0;
#P connect 90 0 91 0;
#P connect 95 0 94 0;
#P fasten 99 0 98 0 1071 619 1071 619;
#P fasten 100 0 98 0 1106 619 1071 619;
#P connect 101 0 100 0;
#P connect 91 0 90 1;
#P fasten 72 0 73 0 1323 227 1276 227;
#P connect 73 0 74 0;
#P connect 74 0 19 0;
#P fasten 71 0 72 0 1317 221 1317 206;
#P window clipboard copycount 112;

#127156
Apr 16, 2008 at 10:33am

Hey, I’ve got an additional remark about the patch. You have to save it and then reload it so that the loadbang will set the matrix dimension right.

#127157
Apr 16, 2008 at 5:08pm

Ugh.
If I had a nickel for every time someone got snarled up working with
that particle/model example…

Anyways, I think you’d be well served to look at jit.gl.multiple for
doing the particle drawing stuff, or using “to_texture” instead of
@capture to do your rendering to texture. I don’t think capture will do
what you want it to with the jit.iter method of particle rendering.
Attached you’ll find a version of your particle drawing -> capture stuff
that works. I removed all the other stuff for the sake of legibility…

Best,
Andrew B.

#P window setfont “Sans Serif” 9.;
#P flonum 657 356 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 657 375 193 196617 param slide_up $1 , param slide_down $1;
#P newex 393 521 312 196617 jit.gl.multiple romulus 1 @targetname
psystem @glparams position;
#P newex 627 462 108 196617 jit.gl.texture romulus;
#B color 5;
#P newex 584 432 172 196617 jit.gl.slab romulus @file tp.slide.jxs;
#B color 5;
#P newex 584 403 234 196617 jit.gl.texture romulus @dim 640 480 @name supe;
#B color 5;
#P newex 586 492 281 196617 jit.gl.videoplane romulus @transform_reset 2
@automatic 0;
#B color 5;
#P newex 545 285 50 196617 t erase b;
#P number 268 29 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 262 129 53 196617 t b b b b;
#P message 174 29 26 196617 read;
#B color 6;
#P hidden newex 0 255 42 196617 r numb1;
#P window linecount 2;
#P newex 281 582 359 196617 jit.gl.model romulus @smooth_shading 1
@lighting_enable 1 @depth_enable 1 @drawgroup 1 @blend_enable 1
@automatic 0 @capture supe @name psystem;
#B color 5;
#P window linecount 1;
#P hidden message 41 121 14 196617 1;
#P hidden newex 41 94 45 196617 loadbang;
#P user jit.fpsgui 586 339 60 196617 0;
#P message 372 86 68 196617 fullscreen $1;
#P toggle 350 88 15 0;
#P newex 397 61 35 196617 sel 27;
#P newex 355 61 40 196617 key;
#P hidden newex 444 319 45 196617 loadbang;
#P window linecount 2;
#P newex 612 269 109 196617 jit.gl.handle romulus @inherit_transform 1;
#P window linecount 1;
#P message 517 430 48 196617 dim $1 1;
#P hidden message 391 396 53 196617 splitdim 1;
#P toggle 24 310 15 0;
#P comment 251 180 118 196617 messages to p-vishnu ->;
#P newex 141 221 99 196617 pak init_var 0. 0. 0.;
#P flonum 245 202 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 193 202 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 141 202 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 130 176 75 196617 pak init 0. 0. 0.;
#P flonum 234 157 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 182 157 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 130 157 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 43 255 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 46 310 45 196617 mode $1;
#P newex 329 264 85 196617 pak force 0. 0. 0.;
#P newex 327 219 75 196617 pak pos 0. 0. 0.;
#P newex 393 501 170 196617 jit.unpack 2 @jump 3 2 @offset 2 0;
#P message 43 286 48 196617 dim $1 2;
#P newex 314 339 59 196617 jit.p.vishnu;
#B color 5;
#P newex 124 406 170 196617 jit.matrix brahma 5 float32 1000 2;
#P newex 144 309 178 196617 jit.matrix brahma 5 float32 1000 2;
#P newex 130 333 54 196617 jit.p.shiva;
#B color 5;
#P number 65 201 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 65 221 65 196617 emit_var $1;
#P number 15 201 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 15 221 43 196617 emit $1;
#P flonum 431 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 380 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 329 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 65 158 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 65 177 60 196617 life_var $1;
#P number 15 160 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 15 177 38 196617 life $1;
#P flonum 533 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 533 264 70 196617 speed_var $1;
#P flonum 483 245 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 483 264 48 196617 speed $1;
#P flonum 533 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 533 219 64 196617 yaw_var $1;
#P flonum 483 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 483 219 42 196617 yaw $1;
#P flonum 533 157 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 533 176 65 196617 pitch_var $1;
#P flonum 431 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 372 114 263 196617 jit.window romulus @rect 10 320 330 560
@floating 1;
#P newex 586 319 289 196617 jit.gl.render romulus @blend_mode 1
@erase_color 0. 0. 0. 1.;
#P newex 364 449 42 196617 jit.split;
#P flonum 379 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 327 200 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 483 151 47 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 483 176 45 196617 pitch $1;
#P number 303 87 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 120 29 31 0;
#P newex 263 105 51 196617 qmetro 5;
#P comment 83 260 75 196617 no. of particles;
#P comment 284 165 113 196617 < - messages to p-shiva;
#P window linecount 0;
#P comment 14 339 115 196617;
#P window linecount 1;
#P comment 121 71 35 196617 start;
#B color 6;
#P comment 162 71 88 196617 read 3D obj file;
#P comment 247 71 96 196617 set nr of particles;
#P connect 77 0 75 0;
#P connect 77 0 78 0;
#P connect 72 1 76 0;
#P connect 72 1 75 0;
#P connect 47 0 42 0;
#P fasten 47 0 59 0 48 281 522 281;
#P fasten 46 0 38 0 51 334 135 334;
#P fasten 46 0 41 0 51 334 319 334;
#P fasten 42 0 40 0 48 306 135 306 135 334 192 334 192 368 129 368;
#P fasten 42 0 39 0 48 306 149 306;
#P fasten 41 0 40 0 319 388 129 388;
#P fasten 41 0 13 0 319 438 369 438;
#P connect 81 0 80 0;
#P connect 80 0 77 0;
#P connect 71 0 69 0;
#P connect 43 0 79 0;
#P fasten 78 0 77 1 751 447;
#P connect 76 0 77 0;
#P fasten 13 0 43 0 369 476 398 476;
#P fasten 59 0 43 0 522 491 437 491 437 476 398 476;
#P connect 8 0 6 1;
#P connect 7 0 6 0;
#P connect 6 0 72 0;
#P connect 74 0 14 0;
#P connect 74 1 14 0;
#P connect 72 2 74 0;
#P connect 14 0 66 0;
#P fasten 60 0 14 0 617 306 591 306;
#P hidden fasten 61 0 58 0 449 390 396 390;
#P fasten 62 0 63 0 396 78 396 63;
#P connect 65 0 15 0;
#P connect 64 0 65 0;
#P fasten 63 0 64 0 402 84 355 84;
#P connect 26 0 25 0;
#P connect 22 0 21 0;
#P connect 18 0 17 0;
#P connect 24 0 23 0;
#P connect 20 0 19 0;
#P connect 10 0 9 0;
#P fasten 33 0 45 3 436 262 409 262;
#P fasten 16 0 44 3 436 217 395 217;
#P fasten 32 0 45 2 385 262 384 262;
#P fasten 12 0 44 2 384 217 374 217;
#P hidden fasten 58 0 13 0 396 439 369 439;
#P fasten 31 0 45 1 334 262 359 262;
#P fasten 11 0 44 1 332 217 353 217;
#P fasten 45 0 41 0 334 285 319 285;
#P fasten 44 0 41 0 332 240 319 240;
#P fasten 9 0 41 0 488 196 319 196;
#P fasten 17 0 41 0 538 196 319 196;
#P fasten 19 0 41 0 488 240 319 240;
#P fasten 21 0 41 0 538 240 319 240;
#P fasten 23 0 41 0 488 285 319 285;
#P fasten 25 0 41 0 538 285 319 285;
#P fasten 38 0 41 0 135 360 297 360 297 334 319 334;
#P fasten 54 0 55 3 250 219 233 219;
#P fasten 53 0 55 2 198 219 204 219;
#P fasten 50 0 51 3 239 174 198 174;
#P fasten 49 0 51 2 187 174 177 174;
#P fasten 52 0 55 1 146 219 175 219;
#P fasten 48 0 51 1 135 174 156 174;
#P connect 72 3 39 0;
#P connect 51 0 38 0;
#P fasten 55 0 38 0 146 287 135 287;
#P fasten 36 0 38 0 70 241 135 241;
#P fasten 34 0 38 0 20 241 135 241;
#P fasten 29 0 38 0 70 198 135 198;
#P fasten 27 0 38 0 20 198 135 198;
#P fasten 39 0 38 0 149 330 135 330;
#P lcolor 9;
#P connect 37 0 36 0;
#P connect 30 0 29 0;
#P fasten 57 0 46 0 29 328 41 328 41 306 51 306;
#P hidden connect 68 0 47 0;
#P hidden connect 70 0 47 0;
#P connect 73 0 47 0;
#P hidden connect 67 0 68 0;
#P connect 35 0 34 0;
#P connect 28 0 27 0;
#P window clipboard copycount 82;

#127158
Apr 22, 2008 at 9:19am

Wow, it works lke crazy. I’m very willing to give you a nickel for using this haha. I’ve still got 2 questions about it.

1 I’m unable to show a movie behind the 3d models. Is this still possible?

2 How can I learn more about jitter (especially about the 3D part). The solutions you’re coming up with are great, but I would love to learn more about it myself. The jit.gl.multiple i.e. is just great for my patch, but I wouldn’t be able to implement it myself. and I’m sure I wouldn’t be able to use it to its full potential. (I read somewhere on the forum that it’s possible to apply a different texture to each instance of multiple i.e. , which is great)

Hope you can help me with this.

#P window setfont “Sans Serif” 9.;
#P flonum 641 172 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P window linecount 1;
#P message 641 196 51 9109513 radius $1;
#P toggle 794 428 15 0;
#P message 794 451 81 9109513 depth_enable $1;
#P newex 695 519 48 9109513 loadbang;
#P message 702 540 60 9109513 name remus;
#P newex 494 319 83 9109513 jit.gl.render remus;
#P newex 918 493 297 9109513 jit.gl.videoplane remus @scale 1.333 1 @texture preview @floating 1;
#P newex 918 474 156 9109513 jit.gl.texture remus @name preview;
#P user jit.pwindow 713 560 322 242 0 0 0 0 1 0;
#X name remus;
#P user jit.pwindow 822 215 82 62 0 1 0 0 1 0;
#P message 923 114 26 9109513 read;
#P newex 924 171 91 9109513 jit.qt.movie 320 240;
#P newex 1013 248 102 9109513 route jit_matrix;
#P newex 1013 275 102 9109513 prepend draw_pixels;
#P flonum 663 354 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 658 375 193 9109513 param slide_up $1 , param slide_down $1;
#P newex 393 528 288 9109513 jit.gl.multiple romulus 1 @targetname psystem @glparams position;
#P newex 627 455 108 9109513 jit.gl.texture romulus;
#B color 5;
#P newex 584 425 172 9109513 jit.gl.slab romulus @file tp.slide.jxs;
#B color 5;
#P newex 584 396 234 9109513 jit.gl.texture romulus @dim 640 480 @name supe;
#B color 5;
#P newex 539 276 50 9109513 t erase b;
#P number 268 22 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 262 122 53 9109513 t b b b b;
#P message 174 22 26 9109513 read;
#B color 6;
#P hidden newex 0 248 42 9109513 r numb1;
#P window linecount 2;
#P newex 281 575 359 9109513 jit.gl.model romulus @smooth_shading 1 @lighting_enable 1 @depth_enable 1 @drawgroup 1 @blend_enable 1 @automatic 0 @capture supe @name psystem;
#B color 5;
#P window linecount 1;
#P hidden message 41 114 14 9109513 1;
#P hidden newex 41 87 45 9109513 loadbang;
#P user jit.fpsgui 582 356 60 9109513 0;
#P message 372 79 68 9109513 fullscreen $1;
#P toggle 350 81 15 0;
#P newex 397 54 35 9109513 sel 27;
#P newex 355 54 40 9109513 key;
#P hidden newex 444 312 45 9109513 loadbang;
#P newex 627 245 175 9109513 jit.gl.handle remus @inherit_transform 1;
#P message 517 423 48 9109513 dim $1 1;
#P hidden message 391 389 53 9109513 splitdim 1;
#P toggle 24 303 15 0;
#P comment 251 173 118 9109513 messages to p-vishnu ->;
#P newex 141 214 99 9109513 pak init_var 0. 0. 0.;
#P flonum 245 195 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 193 195 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 141 195 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 130 169 75 9109513 pak init 0. 0. 0.;
#P flonum 234 150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 182 150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 130 150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 43 248 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 46 303 45 9109513 mode $1;
#P newex 329 257 85 9109513 pak force 0. 0. 0.;
#P newex 327 212 75 9109513 pak pos 0. 0. 0.;
#P newex 393 494 170 9109513 jit.unpack 2 @jump 3 2 @offset 2 0;
#P message 43 279 48 9109513 dim $1 2;
#P newex 314 332 59 9109513 jit.p.vishnu;
#B color 5;
#P newex 124 399 170 9109513 jit.matrix brahma 5 float32 1000 2;
#P newex 144 302 178 9109513 jit.matrix brahma 5 float32 1000 2;
#P newex 130 326 54 9109513 jit.p.shiva;
#B color 5;
#P number 65 194 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 65 214 65 9109513 emit_var $1;
#P number 15 194 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 15 214 43 9109513 emit $1;
#P flonum 431 238 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 380 238 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 329 238 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P number 65 151 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 65 170 60 9109513 life_var $1;
#P number 15 153 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 15 170 38 9109513 life $1;
#P flonum 533 238 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 533 257 70 9109513 speed_var $1;
#P flonum 483 238 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 483 257 48 9109513 speed $1;
#P flonum 533 193 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 533 212 64 9109513 yaw_var $1;
#P flonum 483 193 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 483 212 42 9109513 yaw $1;
#P flonum 533 150 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 533 169 65 9109513 pitch_var $1;
#P flonum 431 193 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P newex 372 107 263 9109513 jit.window romulus @rect 10 320 330 560 @floating 1;
#P window linecount 2;
#P newex 584 319 242 9109513 jit.gl.render romulus @blend_mode 1 @erase_color 0. 0. 0. 1. @shared_context remus @copy_texture preview;
#P window linecount 1;
#P newex 364 442 42 9109513 jit.split;
#P flonum 379 193 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 327 193 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P flonum 483 144 47 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P message 483 169 45 9109513 pitch $1;
#P number 303 80 35 9 0 0 0 139 0 0 0 221 221 221 222 222 222 0 0 0;
#P toggle 120 22 31 0;
#P newex 263 98 51 9109513 qmetro 5;
#P comment 83 253 75 9109513 no. of particles;
#P comment 284 158 113 9109513 < - messages to p-shiva;
#P window linecount 0;
#P comment 14 332 115 9109513;
#P window linecount 1;
#P comment 121 64 35 9109513 start;
#B color 6;
#P comment 162 64 88 9109513 read 3D obj file;
#P comment 247 64 96 9109513 set nr of particles;
#P newex 586 485 281 9109513 jit.gl.videoplane romulus @transform_reset 2 @automatic 0;
#B color 5;
#P connect 44 0 79 0;
#P connect 83 0 82 0;
#P connect 84 0 86 0;
#P connect 84 0 83 0;
#P connect 85 0 84 0;
#P connect 73 2 84 0;
#P connect 94 0 93 0;
#P fasten 78 0 77 1 751 440;
#P connect 91 0 87 0;
#P connect 92 0 91 0;
#P connect 81 0 80 0;
#P connect 96 0 95 0;
#P connect 77 0 0 0;
#P connect 77 0 78 0;
#P connect 95 0 61 0;
#P connect 93 0 0 0;
#P connect 73 0 76 0;
#P connect 73 0 0 0;
#P connect 80 0 77 0;
#P connect 76 0 77 0;
#P connect 61 0 15 0;
#P connect 75 0 15 0;
#P connect 75 1 90 0;
#P connect 75 1 15 0;
#P connect 15 0 67 0;
#P connect 73 3 75 0;
#P connect 27 0 26 0;
#P connect 23 0 22 0;
#P connect 19 0 18 0;
#P connect 48 0 43 0;
#P fasten 48 0 60 0 48 274 522 274;
#P connect 75 0 90 0;
#P connect 25 0 24 0;
#P connect 21 0 20 0;
#P connect 11 0 10 0;
#P fasten 34 0 46 3 436 255 409 255;
#P fasten 63 0 64 0 396 71 396 56;
#P fasten 14 0 44 0 369 469 398 469;
#P fasten 60 0 44 0 522 484 437 484 437 469 398 469;
#P hidden fasten 62 0 59 0 449 383 396 383;
#P fasten 17 0 45 3 436 210 395 210;
#P fasten 33 0 46 2 385 255 384 255;
#P connect 66 0 16 0;
#P connect 65 0 66 0;
#P fasten 13 0 45 2 384 210 374 210;
#P fasten 42 0 41 0 319 381 129 381;
#P fasten 42 0 14 0 319 431 369 431;
#P hidden fasten 59 0 14 0 396 432 369 432;
#P fasten 32 0 46 1 334 255 359 255;
#P fasten 64 0 65 0 402 77 355 77;
#P fasten 12 0 45 1 332 210 353 210;
#P fasten 47 0 39 0 51 327 135 327;
#P fasten 47 0 42 0 51 327 319 327;
#P fasten 46 0 42 0 334 278 319 278;
#P fasten 45 0 42 0 332 233 319 233;
#P fasten 10 0 42 0 488 189 319 189;
#P fasten 18 0 42 0 538 189 319 189;
#P fasten 20 0 42 0 488 233 319 233;
#P fasten 22 0 42 0 538 233 319 233;
#P fasten 24 0 42 0 488 278 319 278;
#P fasten 26 0 42 0 538 278 319 278;
#P fasten 39 0 42 0 135 353 297 353 297 327 319 327;
#P connect 9 0 7 1;
#P connect 72 0 70 0;
#P connect 8 0 7 0;
#P connect 7 0 73 0;
#P fasten 55 0 56 3 250 212 233 212;
#P fasten 54 0 56 2 198 212 204 212;
#P fasten 51 0 52 3 239 167 198 167;
#P fasten 50 0 52 2 187 167 177 167;
#P fasten 53 0 56 1 146 212 175 212;
#P fasten 49 0 52 1 135 167 156 167;
#P fasten 43 0 41 0 48 299 135 299 135 327 192 327 192 361 129 361;
#P fasten 43 0 40 0 48 299 149 299;
#P connect 73 1 40 0;
#P connect 52 0 39 0;
#P fasten 56 0 39 0 146 280 135 280;
#P fasten 37 0 39 0 70 234 135 234;
#P fasten 35 0 39 0 20 234 135 234;
#P fasten 30 0 39 0 70 191 135 191;
#P fasten 28 0 39 0 20 191 135 191;
#P fasten 40 0 39 0 149 323 135 323;
#P lcolor 9;
#P connect 38 0 37 0;
#P connect 31 0 30 0;
#P fasten 58 0 47 0 29 321 41 321 41 299 51 299;
#P hidden connect 69 0 48 0;
#P hidden connect 71 0 48 0;
#P connect 74 0 48 0;
#P hidden connect 68 0 69 0;
#P connect 36 0 35 0;
#P connect 29 0 28 0;
#P window clipboard copycount 97;

#127159

You must be logged in to reply to this topic.