aboutsummaryrefslogtreecommitdiff
path: root/msd3D/imsd3Dball.pd
diff options
context:
space:
mode:
Diffstat (limited to 'msd3D/imsd3Dball.pd')
-rw-r--r--msd3D/imsd3Dball.pd146
1 files changed, 146 insertions, 0 deletions
diff --git a/msd3D/imsd3Dball.pd b/msd3D/imsd3Dball.pd
new file mode 100644
index 0000000..324af35
--- /dev/null
+++ b/msd3D/imsd3Dball.pd
@@ -0,0 +1,146 @@
+#N canvas 458 69 863 802 10;
+#X obj 32 13 loadbang;
+#X obj 294 522 print msd;
+#X obj 442 361 gemwin;
+#X msg 442 339 0 \, destroy;
+#X obj 441 402 gemhead;
+#X obj 441 425 world_light;
+#X msg 442 272 reset \, create \, lighting 1 \, 1;
+#X obj 116 244 t a;
+#X obj 115 18 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262131 -1
+-1;
+#X msg 174 62 reset;
+#X text 153 19 reset;
+#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 553 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 574 pd linkrender;
+#X obj 33 524 route linksPos massesPos;
+#X obj 33 497 msd3D --------------------------------;
+#X msg 135 195 Xmax 100 \, Xmin 0 \, Ymax 100 \, Ymin 0 \, Zmax 70
+\, Zmin 0;
+#X msg 154 170 mass mob 1 100 \$1 \$2 \$3;
+#X msg 154 83 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 116 218 iLink souple mob mob 1 2.5 0.5;
+#X msg 174 436 forceZ mob -10;
+#X msg 62 440 forceZ mob 500;
+#X msg 442 316 view 0 5 0 0 0 0 0 0 1;
+#X obj 116 38 t b b b b;
+#X obj 442 294 t b;
+#X text 310 286 Create window;
+#X connect 0 0 25 0;
+#X connect 3 0 2 0;
+#X connect 4 0 5 0;
+#X connect 6 0 26 0;
+#X connect 6 0 2 0;
+#X connect 7 0 17 0;
+#X connect 8 0 25 0;
+#X connect 9 0 7 0;
+#X connect 11 0 12 0;
+#X connect 12 0 13 0;
+#X connect 13 0 17 0;
+#X connect 13 0 22 0;
+#X connect 16 0 15 0;
+#X connect 16 1 14 0;
+#X connect 17 0 16 0;
+#X connect 17 1 1 0;
+#X connect 18 0 7 0;
+#X connect 19 0 7 0;
+#X connect 20 0 19 0;
+#X connect 21 0 7 0;
+#X connect 22 0 17 0;
+#X connect 23 0 17 0;
+#X connect 24 0 2 0;
+#X connect 25 0 21 0;
+#X connect 25 1 18 0;
+#X connect 25 2 20 0;
+#X connect 25 3 9 0;