diff options
author | N.N. <nimon@users.sourceforge.net> | 2008-03-28 02:17:07 +0000 |
---|---|---|
committer | N.N. <nimon@users.sourceforge.net> | 2008-03-28 02:17:07 +0000 |
commit | 61d723c85b31647dc45cc070431d922436707cfa (patch) | |
tree | 220b609ba49a6cf8577629af4c5875843d667a22 /msd2D/06_msd2Dgravit.pd | |
parent | d9451f13b229c79a955888d4764e373ebc6191c7 (diff) |
examples modified
svn path=/trunk/externals/nusmuk/; revision=9635
Diffstat (limited to 'msd2D/06_msd2Dgravit.pd')
-rw-r--r-- | msd2D/06_msd2Dgravit.pd | 125 |
1 files changed, 69 insertions, 56 deletions
diff --git a/msd2D/06_msd2Dgravit.pd b/msd2D/06_msd2Dgravit.pd index 1d18198..0213fe5 100644 --- a/msd2D/06_msd2Dgravit.pd +++ b/msd2D/06_msd2Dgravit.pd @@ -1,7 +1,27 @@ -#N canvas 597 49 847 803 10; -#X obj 119 28 cnv 15 400 300 empty empty CREATION 20 12 1 14 -260818 --66577 0; -#X obj 167 310 t a; +#N canvas 386 22 491 156 10; +#X obj 18 21 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1 +-1; +#X text 39 18 reset; +#N canvas 0 22 450 300 gem_stuff 0; +#X msg 30 89 0 \, destroy; +#X obj 30 185 gemhead; +#X obj 30 238 world_light; +#X obj 30 148 gemwin; +#X msg 30 66 reset \, dimen 800 800 \, create \, lighting 1 \, 1; +#X obj 30 212 rotateXYZ 30 20 0; +#X obj 32 10 inlet; +#X obj 32 37 sel 1 0; +#X connect 0 0 3 0; +#X connect 1 0 5 0; +#X connect 4 0 3 0; +#X connect 5 0 2 0; +#X connect 6 0 7 0; +#X connect 7 0 4 0; +#X connect 7 1 0 0; +#X restore 18 87 pd gem_stuff; +#X obj 18 69 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1 1 +; +#N canvas 0 22 804 395 creation 0; #X obj 42 28 bng 20 250 50 0 empty empty empty 0 -6 0 8 -258699 -1 -1; #X msg 239 84 reset; @@ -84,26 +104,37 @@ in 1/R^2; #X text 292 146 Particules; #X msg 185 268 link sun fix mob 0.2 0 -2 0.4; #X msg 167 178 forceX mob 5.9; -#X obj 453 353 cnv 15 300 300 empty empty GEM_STUFF 20 12 1 14 -241291 --66577 0; -#X msg 460 409 0 \, destroy; -#X obj 460 525 gemhead; -#X obj 460 578 world_light; -#X obj 460 488 gemwin; -#X msg 460 433 view 0 0 4 0 0 0 0 1 0; -#X msg 460 386 reset \, dimen 800 800 \, create \, lighting 1 \, 1 -; -#X obj 460 552 rotateXYZ 30 20 0; -#X obj 38 359 cnv 15 350 250 empty empty COMPUTING 20 12 1 14 -260818 --66577 0; -#X obj 52 542 msd2D --------------------------------; -#X obj 52 424 t b; -#X obj 52 401 gemhead; -#X msg 197 483 forceX mob 0.051; -#X msg 197 509 forceY mob 0.1; -#X msg 52 458 bang \, bang \, get massesPos; -#X obj 37 639 cnv 15 300 100 empty empty DISPLAYING 20 12 1 14 -241291 --66577 0; +#X obj 167 310 s \$0-msdin; +#X obj 166 25 inlet; +#X connect 0 0 4 0; +#X connect 1 0 19 0; +#X connect 2 0 4 0; +#X connect 4 0 9 0; +#X connect 4 0 18 0; +#X connect 4 1 8 0; +#X connect 4 1 17 0; +#X connect 4 2 14 0; +#X connect 4 3 10 0; +#X connect 4 4 1 0; +#X connect 7 0 14 1; +#X connect 8 0 19 0; +#X connect 9 0 19 0; +#X connect 10 0 19 0; +#X connect 14 0 19 0; +#X connect 17 0 19 0; +#X connect 18 0 19 0; +#X connect 20 0 4 0; +#X restore 18 43 pd creation; +#X text 116 58 gravity field simulation; +#X text 115 72 if you have cpu problem \, you can reduce the mass number +in "creation"; +#N canvas 0 22 450 300 compute 0; +#X obj 52 182 msd2D --------------------------------; +#X obj 52 64 t b; +#X obj 52 41 gemhead; +#X msg 197 123 forceX mob 0.051; +#X msg 197 149 forceY mob 0.1; +#X msg 52 98 bang \, bang \, get massesPos; #N canvas 637 205 609 594 massrender 0; #X obj 124 5 inlet; #X obj 291 245 translateXYZ; @@ -165,35 +196,17 @@ in 1/R^2; #X connect 27 0 2 0; #X connect 27 0 13 0; #X connect 27 0 6 0; -#X restore 52 709 pd massrender; -#X obj 52 672 route massesPos; -#X connect 1 0 30 0; -#X connect 2 0 6 0; -#X connect 3 0 1 0; -#X connect 4 0 6 0; -#X connect 6 0 11 0; -#X connect 6 0 20 0; -#X connect 6 1 10 0; -#X connect 6 1 19 0; -#X connect 6 2 16 0; -#X connect 6 3 12 0; -#X connect 6 4 3 0; -#X connect 9 0 16 1; -#X connect 10 0 1 0; -#X connect 11 0 1 0; -#X connect 12 0 1 0; -#X connect 16 0 1 0; -#X connect 19 0 1 0; -#X connect 20 0 1 0; -#X connect 22 0 25 0; -#X connect 23 0 28 0; -#X connect 26 0 25 0; -#X connect 27 0 25 0; -#X connect 28 0 24 0; -#X connect 30 0 38 0; -#X connect 31 0 35 0; -#X connect 32 0 31 0; -#X connect 33 0 30 0; -#X connect 34 0 30 0; -#X connect 35 0 30 0; -#X connect 38 0 37 0; +#X restore 52 239 pd massrender; +#X obj 52 212 route massesPos; +#X obj 63 147 r \$0-msdin; +#X connect 0 0 7 0; +#X connect 1 0 5 0; +#X connect 2 0 1 0; +#X connect 3 0 0 0; +#X connect 4 0 0 0; +#X connect 5 0 0 0; +#X connect 7 0 6 0; +#X connect 8 0 0 0; +#X restore 18 107 pd compute; +#X connect 0 0 4 0; +#X connect 3 0 2 0; |