diff options
Diffstat (limited to 'msd3D/msd3Dball.pd')
-rw-r--r-- | msd3D/msd3Dball.pd | 204 |
1 files changed, 204 insertions, 0 deletions
diff --git a/msd3D/msd3Dball.pd b/msd3D/msd3Dball.pd new file mode 100644 index 0000000..1ffcb08 --- /dev/null +++ b/msd3D/msd3Dball.pd @@ -0,0 +1,204 @@ +#N canvas 458 69 863 802 10; +#X obj 32 13 loadbang; +#X obj 294 522 print msd; +#X obj 642 647 gemwin; +#X msg 642 625 0 \, destroy; +#X obj 634 704 gemhead; +#X obj 634 727 world_light; +#X msg 642 562 reset \, create \, lighting 1 \, 1; +#X obj 115 259 t a; +#X obj 115 18 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262131 -1 +-1; +#X msg 187 69 reset; +#X text 153 19 reset; +#X msg 149 136 50 50; +#X obj 33 298 gemhead; +#X obj 33 321 t b; +#X msg 33 343 bang \, get massesPos \, get linksPos; +#N canvas 643 123 605 590 massrender 0; +#X obj 127 22 inlet; +#X obj 48 203 translateXYZ; +#X obj 48 229 sphere 0.1; +#X obj 127 86 / 12.5; +#X obj 127 109 - 4; +#X obj 192 87 / 12.5; +#X obj 192 110 - 4; +#X obj 64 114 gemhead; +#X obj 48 177 separator; +#X obj 48 153 any; +#X obj 125 136 t b f; +#X obj 127 57 unpack f f f; +#X obj 244 87 / 12.5; +#X obj 244 110 - 4; +#X connect 0 0 11 0; +#X connect 1 0 2 0; +#X connect 3 0 4 0; +#X connect 4 0 10 0; +#X connect 5 0 6 0; +#X connect 6 0 1 2; +#X connect 7 0 9 1; +#X connect 8 0 1 0; +#X connect 9 0 8 0; +#X connect 10 0 9 0; +#X connect 10 1 1 1; +#X connect 11 0 3 0; +#X connect 11 1 5 0; +#X connect 11 2 12 0; +#X connect 12 0 13 0; +#X connect 13 0 1 3; +#X restore 114 589 pd massrender; +#N canvas 284 227 587 558 linkrender 0; +#X obj 93 25 inlet; +#X obj 93 117 / 12.5; +#X obj 93 140 - 4; +#X obj 147 118 / 12.5; +#X obj 147 141 - 4; +#X obj 35 134 gemhead; +#X obj 44 222 separator; +#X obj 44 192 any; +#X obj 93 164 t b f; +#X obj 44 265 curve 2; +#X obj 266 117 / 12.5; +#X obj 266 140 - 4; +#X obj 320 118 / 12.5; +#X obj 320 141 - 4; +#X obj 93 69 unpack f f f f f f; +#X obj 197 117 / 12.5; +#X obj 197 142 - 4; +#X obj 123 194 pack f f f; +#X msg 123 217 \$1 \$2 \$3; +#X obj 371 118 / 12.5; +#X obj 371 141 - 4; +#X obj 266 189 pack f f f; +#X msg 266 212 \$1 \$2 \$3; +#X connect 0 0 14 0; +#X connect 1 0 2 0; +#X connect 2 0 8 0; +#X connect 3 0 4 0; +#X connect 4 0 17 1; +#X connect 5 0 7 1; +#X connect 6 0 9 0; +#X connect 7 0 6 0; +#X connect 8 0 7 0; +#X connect 8 1 17 0; +#X connect 10 0 11 0; +#X connect 11 0 21 0; +#X connect 12 0 13 0; +#X connect 13 0 21 1; +#X connect 14 0 1 0; +#X connect 14 1 3 0; +#X connect 14 2 15 0; +#X connect 14 3 10 0; +#X connect 14 4 12 0; +#X connect 14 5 19 0; +#X connect 15 0 16 0; +#X connect 16 0 17 2; +#X connect 17 0 18 0; +#X connect 18 0 9 1; +#X connect 19 0 20 0; +#X connect 20 0 21 2; +#X connect 21 0 22 0; +#X connect 22 0 9 2; +#X restore 33 610 pd linkrender; +#X obj 33 560 route linksPos massesPos; +#N canvas 731 296 450 300 gemmouse 0; +#X obj 189 77 gemmouse; +#X obj 189 184 pack f f; +#X obj 189 218 spigot; +#X obj 103 244 outlet; +#X obj 189 131 - 0; +#X obj 216 131 + 100; +#X obj 189 108 / 5; +#X obj 216 108 / -5; +#X obj 79 51 inlet; +#X obj 140 75 inlet; +#X obj 141 120 l; +#X obj 109 98 t b; +#X connect 0 0 6 0; +#X connect 0 1 7 0; +#X connect 0 2 2 1; +#X connect 1 0 2 0; +#X connect 2 0 10 1; +#X connect 4 0 1 0; +#X connect 5 0 1 1; +#X connect 6 0 4 0; +#X connect 7 0 5 0; +#X connect 8 0 11 0; +#X connect 9 0 10 1; +#X connect 10 0 3 0; +#X connect 11 0 10 0; +#X restore 33 672 pd gemmouse; +#X obj 33 651 gemhead; +#X msg 33 693 posX fix \$1; +#X msg 33 714 posY fix \$2; +#X obj 33 497 msd3D --------------------------------; +#X msg 62 440 forceZ mob 200; +#X msg 149 169 Xmax 100 \, Xmin 0 \, Ymax 100 \, Ymin 0 \, Zmax 70 +\, Zmin 0; +#X msg 251 150 mass mob 1 100 \$1 \$2 \$3; +#X obj 116 38 t b b b b b b; +#X msg 254 15 mass fixe 0 100 30 30 20 \, mass fix 0 100 30 70 20 \, +mass fix 0 100 70 30 20 \, mass fix 0 100 70 70 20; +#X msg 174 436 forceZ mob -1; +#X msg 251 63 35 50 50 \, 40 60 50 \, 50 65 50 \, 60 60 50 \, 65 50 +50 \, 60 40 50 \, 50 35 50 \, 40 40 50 \, 40 50 60 \, 43.3 56.7 60 +\, 50 60 60 \, 56.7 56.7 60 \, 60 50 60 \, 56.7 43.3 60 \, 50 40 60 +\, 43.3 43.3 60 \, 50 50 65 \, 40 50 40 \, 43.3 56.7 40 \, 50 60 40 +\, 56.7 56.7 40 \, 60 50 40 \, 56.7 43.3 40 \, 50 40 40 \, 43.3 43.3 +40 \, 50 50 35 \, 50 50 50; +#X msg 268 199 0 1 \, 1 2 \, 2 3 \, 3 4 \, 4 5 \, 5 6 \, 6 7 \, 7 0 +\, 8 9 \, 9 10 \, 10 11 \, 11 12 \, 12 13 \, 13 14 \, 14 15 \, 15 8 +\, 17 18 \, 18 19 \, 19 20 \, 20 21 \, 21 22 \, 22 23 \, 23 24 \, 24 +17 \, 0 8 \, 1 9 \, 2 10 \, 3 11 \, 4 12 \, 5 13 \, 6 14 \, 7 15 \, +8 16 \, 9 16 \, 10 16 \, 11 16 \, 12 16 \, 13 16 \, 14 16 \, 15 16 +\, 0 17 \, 1 18 \, 2 19 \, 3 20 \, 4 21 \, 5 22 \, 6 23 \, 7 24 \, +17 25 \, 18 25 \, 19 25 \, 20 25 \, 21 25 \, 22 25 \, 23 25 \, 24 25 +\, 16 26 \, 26 25 \, 0 26 \, 26 4 \, 1 26 \, 26 5 \, 2 26 \, 26 6 \, +3 26 \, 26 7 \, 26 8 \, 26 12 \, 26 9 \, 26 13 \, 26 10 \, 26 14 \, +26 11 \, 26 15 \, 26 17 \, 26 21 \, 26 18 \, 26 22 \, 26 19 \, 26 23 +\, 26 20 \, 26 24 \, 8 12 \, 9 13 \, 10 14 \, 11 15 \, 17 21 \, 18 +22 \, 19 23 \, 20 24 \, 0 2 \, 2 4 \, 4 6 \, 6 0 \, 1 3 \, 3 5 \, 5 +7 \, 7 1 \, 8 10 \, 10 12 \, 12 14 \, 14 8 \, 9 11 \, 11 13 \, 13 15 +\, 15 9 \, 17 19 \, 19 21 \, 21 23 \, 23 17 \, 18 20 \, 20 22 \, 22 +24 \, 24 18 \, 17 8 \, 18 9 \, 19 10 \, 20 11 \, 21 12 \, 22 13 \, +23 14 \, 24 15 \, 0 25 \, 0 16 \, 1 25 \, 1 16 \, 2 25 \, 2 16 \, 3 +25 \, 3 16 \, 4 25 \, 5 16 \, 5 25 \, 6 16 \, 6 25 \, 7 16 \, 7 25 +; +#X msg 47 207 link souple \$1 \$2 1 2.5 0.01; +#X msg 429 544 view 0 3 0 0 0 0 0 0 1; +#X msg 429 523 view 0 0 1 0 0 0 0 1 0; +#X msg 429 500 view 3 0 0.5 0 0 0 0 0 1; +#X connect 0 0 26 0; +#X connect 3 0 2 0; +#X connect 4 0 5 0; +#X connect 6 0 2 0; +#X connect 7 0 22 0; +#X connect 8 0 26 0; +#X connect 9 0 7 0; +#X connect 11 0 18 1; +#X connect 12 0 13 0; +#X connect 13 0 14 0; +#X connect 14 0 22 0; +#X connect 14 0 28 0; +#X connect 17 0 16 0; +#X connect 17 1 15 0; +#X connect 18 0 20 0; +#X connect 18 0 21 0; +#X connect 19 0 18 0; +#X connect 22 0 17 0; +#X connect 22 1 1 0; +#X connect 23 0 22 0; +#X connect 24 0 7 0; +#X connect 25 0 7 0; +#X connect 26 2 11 0; +#X connect 26 2 24 0; +#X connect 26 3 30 0; +#X connect 26 4 27 0; +#X connect 26 4 29 0; +#X connect 26 5 9 0; +#X connect 29 0 25 0; +#X connect 30 0 31 0; +#X connect 31 0 7 0; +#X connect 32 0 2 0; +#X connect 33 0 6 0; +#X connect 34 0 2 0; |