aboutsummaryrefslogtreecommitdiff
path: root/examples/04_3D_exemple.pd
diff options
context:
space:
mode:
authorCyrille Henry <nusmuk@users.sourceforge.net>2012-02-03 11:41:26 +0000
committerCyrille Henry <nusmuk@users.sourceforge.net>2012-02-03 11:41:26 +0000
commit91c4f2d9b85c65ccc59c4b156583a84a3861e2fa (patch)
treef5e9333463037b3dfefc0c32e3d59cb1073cbfc6 /examples/04_3D_exemple.pd
parentdb1a6ef1cdda8c2555d4828282e05dda55343ea5 (diff)
adding -lib Gem in the example in order to load all dependency needed for the patch to run
svn path=/trunk/externals/pmpd/; revision=15943
Diffstat (limited to 'examples/04_3D_exemple.pd')
-rw-r--r--examples/04_3D_exemple.pd144
1 files changed, 73 insertions, 71 deletions
diff --git a/examples/04_3D_exemple.pd b/examples/04_3D_exemple.pd
index 2cfdb7e..1500516 100644
--- a/examples/04_3D_exemple.pd
+++ b/examples/04_3D_exemple.pd
@@ -1,71 +1,73 @@
-#N canvas 21 21 607 384 12;
-#X obj 82 222 t b b;
-#X obj 82 198 metro 10;
-#X obj 82 164 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
-;
-#N canvas 451 422 544 277 gem 0;
-#X obj 267 18 gemhead;
-#X msg 47 96 0 \, destroy;
-#X obj 252 45 inlet;
-#X obj 267 146 translateXYZ;
-#X obj 13 19 inlet;
-#X obj 13 45 sel 1;
-#X obj 252 70 unpack s f f f;
-#X obj 13 124 gemwin 50;
-#X msg 13 71 reset \, lighting 1 \, create \, 1;
-#X obj 421 50 gemhead;
-#X obj 419 74 world_light;
-#X msg 342 193 20;
-#X obj 342 170 loadbang;
-#X obj 228 110 pack f f f;
-#X obj 267 216 sphere 0.1;
-#X obj 377 109 gemhead;
-#X obj 376 220 sphere 1;
-#X obj 377 135 alpha;
-#X obj 376 196 color 1 1 1 0.5;
-#X connect 0 0 3 0;
-#X connect 1 0 7 0;
-#X connect 2 0 6 0;
-#X connect 3 0 14 0;
-#X connect 4 0 5 0;
-#X connect 5 0 8 0;
-#X connect 5 1 1 0;
-#X connect 6 1 3 1;
-#X connect 6 1 13 0;
-#X connect 6 2 3 2;
-#X connect 6 2 13 1;
-#X connect 6 3 3 3;
-#X connect 6 3 13 2;
-#X connect 8 0 7 0;
-#X connect 9 0 10 0;
-#X connect 11 0 14 2;
-#X connect 11 0 16 2;
-#X connect 12 0 11 0;
-#X connect 15 0 17 0;
-#X connect 17 0 18 0;
-#X connect 18 0 16 0;
-#X restore 39 323 pd gem;
-#X obj 39 299 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
-;
-#X msg 207 181 force3D 1 0 0;
-#X msg 215 204 force3D 0 1 0;
-#X msg 223 227 force3D 0 0 1;
-#X text 112 160 <- start here;
-#X text 62 296 <- gem simulation;
-#X text 347 205 <- send X \, Y \, Z forces;
-#X obj 82 264 mass3D 0 10;
-#X obj 189 264 link3D 0 1 1 1 0.03;
-#X text 73 12 simulation of a 3D model. The small sphere is link in
-the center of the big one with a 3D link. This link has the same diametter
-than the big sphere.;
-#X connect 0 0 11 0;
-#X connect 0 1 12 0;
-#X connect 1 0 0 0;
-#X connect 2 0 1 0;
-#X connect 4 0 3 0;
-#X connect 5 0 11 0;
-#X connect 6 0 11 0;
-#X connect 7 0 11 0;
-#X connect 11 0 12 0;
-#X connect 11 0 3 1;
-#X connect 12 0 11 0;
+#N canvas 17 91 607 384 12;
+#X declare -lib Gem;
+#X obj 82 222 t b b;
+#X obj 82 198 metro 10;
+#X obj 82 164 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
+;
+#N canvas 451 422 544 277 gem 0;
+#X obj 267 18 gemhead;
+#X msg 47 96 0 \, destroy;
+#X obj 252 45 inlet;
+#X obj 267 146 translateXYZ;
+#X obj 13 19 inlet;
+#X obj 13 45 sel 1;
+#X obj 252 70 unpack s f f f;
+#X obj 13 124 gemwin 50;
+#X msg 13 71 reset \, lighting 1 \, create \, 1;
+#X obj 421 50 gemhead;
+#X obj 419 74 world_light;
+#X msg 342 193 20;
+#X obj 342 170 loadbang;
+#X obj 228 110 pack f f f;
+#X obj 267 216 sphere 0.1;
+#X obj 377 109 gemhead;
+#X obj 376 220 sphere 1;
+#X obj 377 135 alpha;
+#X obj 376 196 color 1 1 1 0.5;
+#X connect 0 0 3 0;
+#X connect 1 0 7 0;
+#X connect 2 0 6 0;
+#X connect 3 0 14 0;
+#X connect 4 0 5 0;
+#X connect 5 0 8 0;
+#X connect 5 1 1 0;
+#X connect 6 1 3 1;
+#X connect 6 1 13 0;
+#X connect 6 2 3 2;
+#X connect 6 2 13 1;
+#X connect 6 3 3 3;
+#X connect 6 3 13 2;
+#X connect 8 0 7 0;
+#X connect 9 0 10 0;
+#X connect 11 0 14 2;
+#X connect 11 0 16 2;
+#X connect 12 0 11 0;
+#X connect 15 0 17 0;
+#X connect 17 0 18 0;
+#X connect 18 0 16 0;
+#X restore 39 323 pd gem;
+#X obj 39 299 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
+;
+#X msg 207 181 force3D 1 0 0;
+#X msg 215 204 force3D 0 1 0;
+#X msg 223 227 force3D 0 0 1;
+#X text 112 160 <- start here;
+#X text 62 296 <- gem simulation;
+#X text 347 205 <- send X \, Y \, Z forces;
+#X obj 82 264 mass3D 0 10;
+#X obj 189 264 link3D 0 1 1 1 0.03;
+#X text 76 61 simulation of a 3D model. The small sphere is link in
+the center of the big one with a 3D link. This link has the same diametter
+than the big sphere.;
+#X obj 74 22 declare -lib Gem;
+#X connect 0 0 11 0;
+#X connect 0 1 12 0;
+#X connect 1 0 0 0;
+#X connect 2 0 1 0;
+#X connect 4 0 3 0;
+#X connect 5 0 11 0;
+#X connect 6 0 11 0;
+#X connect 7 0 11 0;
+#X connect 11 0 12 0;
+#X connect 11 0 3 1;
+#X connect 12 0 11 0;