[sharing] mutiple from particles


    Sep 29 2007 | 3:47 pm
    built this patch for a student, thought it might be a good illustration for some...

    • Sep 29 2007 | 4:15 pm
      joshua goldberg wrote: > built this patch for a student, thought it might be a good > illustration for some... > > #P window setfont "Sans Serif" 9.; > #P window linecount 1; > #P comment 475 62 213 196617 joshua goldberg 2007; > #P window setfont Capitals 18.; > #P comment 475 40 213 131268626 donut-emitter; > #P window setfont "Sans Serif" 9.; > #P window linecount 2; > #P comment 492 602 147 196617 the particle system requires a feedback > loop to work.; > #P window linecount 4; > #P comment 165 559 150 196617 position and scale all take 3 parameters > , so 3 plane matrices are used to set these attributes in the > gl.multiple; > #P comment 190 505 107 196617 the particles are drawing spheres , so > x , y , and z are the same.; > #P comment 211 422 107 196617 we do not need the second row once we > branch out from the jit.p.shiva structure.; > #P window linecount 3; > #P comment 475 245 213 196617 in this example planes 2 , 3 and 4 are > x , y and z position , plane 5 is a constant for 'speed' , and > plane 6 is a constant for scale.; > #P comment 621 383 100 196617 changing this changes the particle > 'spread'; > #P window linecount 1; > #P comment 38 661 393 196617 this gridshape is the prototype for all > of the particles drawn by the jit.gl.multiple.; > #P flonum 621 427 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P window linecount 2; > #P newex 583 476 60 196617 jit.op @op * @val 1.04; > #P newex 400 477 61 196617 jit.op @op * @val 1.04; > #P window linecount 1; > #P newex 130 530 53 196617 jit.pack 3; > #P newex 42 524 53 196617 jit.pack 3; > #P window linecount 3; > #P newex 18 560 136 196617 jit.gl.multiple bork 2 @targetname teeny > @glparams position scale; > #P window linecount 2; > #P newex 57 620 314 196617 jit.gl.gridshape bork @name teeny @shape > sphere @color 1. 1. 1. 1. @dim 10 10 @lighting_enable 1 @automatic 0 > @smooth_shading 1; > #P window linecount 1; > #P newex 389 604 94 196617 jit.matrix blobbies; > #P newex 391 574 92 196617 jit.pack 7; > #P newex 477 486 64 196617 jit.op @op +; > #P newex 329 381 287 196617 jit.unpack 7; > #P newex 314 356 27 196617 t l l; > #P newex 314 330 346 196617 jit.p.shiva @init 0. -0.7 0 0.03 0.03 > @init_var 0.1 0 0.1 0.02 0.02 @mode 1; > #P newex 314 304 169 196617 jit.matrix blobbies 7 float32 100 2; > #P window linecount 7; > #P newex 34 303 140 196617 jit.gl.gridshape bork @shape torus @color > 1. 0. 0. 1. @scale 0.3 0.3 0.3 @lighting_enable 1 @position 0 -0.7 0 > @rotate 90 1 0 0 @automatic 0 @smooth_shading 1; > #P window linecount 1; > #P message 134 50 34 196617 reset; > #P newex 134 74 188 196617 jit.gl.handle bork @inherit_transform 1; > #P message 375 135 70 196617 fullscreen $1; > #P toggle 375 115 15 0; > #P newex 375 92 38 196617 sel 27; > #P newex 375 70 40 196617 key; > #P number 91 41 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > #P user jit.fpsgui 31 178 60 196617 0; > #P newex 34 269 416 196617 t b b b b b b b b b b b b b b b b b b b; > #P newex 34 245 40 196617 r stuff; > #P toggle 31 47 15 0; > #P newex 128 127 40 196617 s stuff; > #P newex 31 153 201 196617 jit.gl.render bork @erase_color 0. 0. 0. 1.; > #P newex 31 98 58 196617 t b b erase; > #P newex 31 73 51 196617 qmetro 1; > #P newex 375 156 274 196617 jit.window bork @floating 1 @depthbuffer 1 > @fsmenubar 0; > #P window linecount 4; > #P comment 474 184 213 196617 planes 0 and 1 of the particle matrix > are special and should not be touched. after that planes can be used > however you want (if there is no jit.p.vishnu in the mix); > #P window linecount 1; > #P newex 102 478 105 196617 jit.unpack 7; > #P newex 102 446 100 196617 jit.split @splitdim 1; > #P comment 32 400 130 196617 this is the red torus base; > #P connect 30 0 29 0; > #P connect 9 0 5 0; > #P connect 5 0 6 0; > #P connect 6 2 7 0; > #P connect 6 0 7 0; > #P connect 18 0 7 0; > #P connect 7 0 12 0; > #P connect 10 0 11 0; > #P connect 11 0 20 0; > #P connect 2 2 30 0; > #P connect 2 3 30 1; > #P connect 13 0 5 1; > #P connect 2 4 30 2; > #P connect 23 0 1 0; > #P connect 1 0 2 0; > #P connect 6 1 8 0; > #P connect 2 6 31 0; > #P connect 19 0 18 0; > #P connect 31 0 29 1; > #P connect 2 6 31 1; > #P connect 2 6 31 2; > #P connect 11 15 21 0; > #P connect 21 0 22 0; > #P connect 22 0 23 0; > #P connect 23 1 24 0; > #P connect 14 0 15 0; > #P connect 15 0 16 0; > #P connect 16 0 17 0; > #P connect 17 0 4 0; > #P connect 26 0 27 0; > #P connect 24 0 26 0; > #P connect 24 2 32 0; > #P connect 24 1 26 1; > #P connect 32 0 26 2; > #P connect 25 0 26 3; > #P connect 33 0 26 4; > #P connect 34 0 32 1; > #P connect 24 5 26 5; > #P connect 24 6 26 6; > #P connect 24 3 25 0; > #P connect 24 5 25 1; > #P connect 24 4 33 0; > #P connect 34 0 33 1; > #P window clipboard copycount 44; > > Very cool! thanks for sharing
    • Sep 29 2007 | 5:51 pm
      thats great, particles allude me... yours explanations are very clear.
      On 9/29/07, Parag K Mital wrote: > > joshua goldberg wrote: > > built this patch for a student, thought it might be a good > > illustration for some... > > > > #P window setfont "Sans Serif" 9.; > > #P window linecount 1; > > #P comment 475 62 213 196617 joshua goldberg 2007; > > #P window setfont Capitals 18.; > > #P comment 475 40 213 131268626 donut-emitter; > > #P window setfont "Sans Serif" 9.; > > #P window linecount 2; > > #P comment 492 602 147 196617 the particle system requires a feedback > > loop to work.; > > #P window linecount 4; > > #P comment 165 559 150 196617 position and scale all take 3 parameters > > , so 3 plane matrices are used to set these attributes in the > > gl.multiple; > > #P comment 190 505 107 196617 the particles are drawing spheres , so > > x , y , and z are the same.; > > #P comment 211 422 107 196617 we do not need the second row once we > > branch out from the jit.p.shiva structure.; > > #P window linecount 3; > > #P comment 475 245 213 196617 in this example planes 2 , 3 and 4 are > > x , y and z position , plane 5 is a constant for 'speed' , and > > plane 6 is a constant for scale.; > > #P comment 621 383 100 196617 changing this changes the particle > > 'spread'; > > #P window linecount 1; > > #P comment 38 661 393 196617 this gridshape is the prototype for all > > of the particles drawn by the jit.gl.multiple.; > > #P flonum 621 427 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > > #P window linecount 2; > > #P newex 583 476 60 196617 jit.op @op * @val 1.04; > > #P newex 400 477 61 196617 jit.op @op * @val 1.04; > > #P window linecount 1; > > #P newex 130 530 53 196617 jit.pack 3; > > #P newex 42 524 53 196617 jit.pack 3; > > #P window linecount 3; > > #P newex 18 560 136 196617 jit.gl.multiple bork 2 @targetname teeny > > @glparams position scale; > > #P window linecount 2; > > #P newex 57 620 314 196617 jit.gl.gridshape bork @name teeny @shape > > sphere @color 1. 1. 1. 1. @dim 10 10 @lighting_enable 1 @automatic 0 > > @smooth_shading 1; > > #P window linecount 1; > > #P newex 389 604 94 196617 jit.matrix blobbies; > > #P newex 391 574 92 196617 jit.pack 7; > > #P newex 477 486 64 196617 jit.op @op +; > > #P newex 329 381 287 196617 jit.unpack 7; > > #P newex 314 356 27 196617 t l l; > > #P newex 314 330 346 196617 jit.p.shiva @init 0. -0.7 0 0.03 0.03 > > @init_var 0.1 0 0.1 0.02 0.02 @mode 1; > > #P newex 314 304 169 196617 jit.matrix blobbies 7 float32 100 2; > > #P window linecount 7; > > #P newex 34 303 140 196617 jit.gl.gridshape bork @shape torus @color > > 1. 0. 0. 1. @scale 0.3 0.3 0.3 @lighting_enable 1 @position 0 -0.7 0 > > @rotate 90 1 0 0 @automatic 0 @smooth_shading 1; > > #P window linecount 1; > > #P message 134 50 34 196617 reset; > > #P newex 134 74 188 196617 jit.gl.handle bork @inherit_transform 1; > > #P message 375 135 70 196617 fullscreen $1; > > #P toggle 375 115 15 0; > > #P newex 375 92 38 196617 sel 27; > > #P newex 375 70 40 196617 key; > > #P number 91 41 35 9 0 0 0 3 0 0 0 221 221 221 222 222 222 0 0 0; > > #P user jit.fpsgui 31 178 60 196617 0; > > #P newex 34 269 416 196617 t b b b b b b b b b b b b b b b b b b b; > > #P newex 34 245 40 196617 r stuff; > > #P toggle 31 47 15 0; > > #P newex 128 127 40 196617 s stuff; > > #P newex 31 153 201 196617 jit.gl.render bork @erase_color 0. 0. 0. 1.; > > #P newex 31 98 58 196617 t b b erase; > > #P newex 31 73 51 196617 qmetro 1; > > #P newex 375 156 274 196617 jit.window bork @floating 1 @depthbuffer 1 > > @fsmenubar 0; > > #P window linecount 4; > > #P comment 474 184 213 196617 planes 0 and 1 of the particle matrix > > are special and should not be touched. after that planes can be used > > however you want (if there is no jit.p.vishnu in the mix); > > #P window linecount 1; > > #P newex 102 478 105 196617 jit.unpack 7; > > #P newex 102 446 100 196617 jit.split @splitdim 1; > > #P comment 32 400 130 196617 this is the red torus base; > > #P connect 30 0 29 0; > > #P connect 9 0 5 0; > > #P connect 5 0 6 0; > > #P connect 6 2 7 0; > > #P connect 6 0 7 0; > > #P connect 18 0 7 0; > > #P connect 7 0 12 0; > > #P connect 10 0 11 0; > > #P connect 11 0 20 0; > > #P connect 2 2 30 0; > > #P connect 2 3 30 1; > > #P connect 13 0 5 1; > > #P connect 2 4 30 2; > > #P connect 23 0 1 0; > > #P connect 1 0 2 0; > > #P connect 6 1 8 0; > > #P connect 2 6 31 0; > > #P connect 19 0 18 0; > > #P connect 31 0 29 1; > > #P connect 2 6 31 1; > > #P connect 2 6 31 2; > > #P connect 11 15 21 0; > > #P connect 21 0 22 0; > > #P connect 22 0 23 0; > > #P connect 23 1 24 0; > > #P connect 14 0 15 0; > > #P connect 15 0 16 0; > > #P connect 16 0 17 0; > > #P connect 17 0 4 0; > > #P connect 26 0 27 0; > > #P connect 24 0 26 0; > > #P connect 24 2 32 0; > > #P connect 24 1 26 1; > > #P connect 32 0 26 2; > > #P connect 25 0 26 3; > > #P connect 33 0 26 4; > > #P connect 34 0 32 1; > > #P connect 24 5 26 5; > > #P connect 24 6 26 6; > > #P connect 24 3 25 0; > > #P connect 24 5 25 1; > > #P connect 24 4 33 0; > > #P connect 34 0 33 1; > > #P window clipboard copycount 44; > > > > > Very cool! thanks for sharing >
    • Sep 29 2007 | 7:54 pm
      thank you! why so many bs in the t b that arent connected?
    • Sep 29 2007 | 8:46 pm
      i have a gl_prototype template with that big trigger. makes things easy.
      On Sep 29, 2007, at 3:54 PM, Nicholas C. Raftis III wrote:
      > > thank you! > why so many bs in the t b that arent connected? > -- > -=ili!ili=- www.Axiom-Crux.net -=ili!ili=- >
    • Sep 29 2007 | 9:40 pm
      I have the same habit. You always need another bang.
      AB
    • Sep 29 2007 | 10:14 pm
      joshua goldberg skrev: > built this patch for a student, thought it might be a good > illustration for some... Joshua, I just have to thank you.
      I thought I was crazy for spending time constructing odd things. I swear to you:
      The first project I did with particles: Objects falling out of a torus shape!!!
      Andreas (now only giggling slightly.)
    • Sep 29 2007 | 10:32 pm
      Andreas Wetterberg skrev: > joshua goldberg skrev: >> built this patch for a student, thought it might be a good >> illustration for some... > Joshua, I just have to thank you. Also, forgot to mention it's a really cool patch - I don't think I've ever seen one of the jit.p.* objects used on its own like that - and a cool thing to control the spread after-the-fact. Nice!
      A.
    • Oct 01 2007 | 2:20 pm
      i had some amazing results when i put a feedback plane behind the torus as well.
      On Sep 29, 2007, at 6:32 PM, Andreas Wetterberg wrote:
      > Andreas Wetterberg skrev: >> joshua goldberg skrev: >>> built this patch for a student, thought it might be a good >>> illustration for some... >> Joshua, I just have to thank you. > Also, forgot to mention it's a really cool patch - I don't think > I've ever seen one of the jit.p.* objects used on its own like that > - and a cool thing to control the spread after-the-fact. Nice! > > A. >