blob: ccaf22daa975aa5f26fd59cdf2bb0b7b4c41abb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
|
#N canvas 545 167 607 718 10;
#X obj 22 40 3dp_windowcontext;
#X obj 22 15 metro 40;
#X obj 22 -5 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 22 67 3dp_push;
#X obj 180 126 3dp_light;
#X floatatom 301 85 5 0 0 0 - - -;
#X obj 22 97 3dp_mouserotate;
#X floatatom 151 228 5 0 0 0 - - -;
#X obj 180 104 3dp_view transz 10;
#X floatatom 81 165 5 0 0 0 - - -;
#X obj 23 191 3dp_for 3;
#X obj 23 251 3dp_view transx 1.5;
#X floatatom 130 280 5 0 0 0 - - -;
#X obj 23 302 3dp_view roty 45;
#X obj 23 389 3dp_draw sphere 1;
#X obj 81 365 + 1;
#X obj 81 343 *;
#X floatatom 129 327 5 0 0 0 - - -;
#X text 135 159 3dp_for sends a rendering context trough a chain multiple
times. the second outlet is the current number \, starting from zero
\, and can be used to change the parameters parameters of the chain.
(i.e. by reading from a table);
#X text 222 252 all the geometry operations are accumulative \,;
#X text 222 266 if you don't want that \, insert a 3dp_push object:
;
#X obj 314 313 3dp_for 3;
#X obj 314 336 3dp_push;
#X obj 365 400 3dp_draw cube 0.5;
#X obj 23 140 3dp_push;
#X obj 365 374 3dp_view transy;
#X obj 465 343 * 1;
#X floatatom 481 319 5 0 0 0 - - -;
#X obj 86 569 pdp_t p p p;
#X obj 86 606 3dp_view transy 1;
#X obj 86 630 3dp_draw cube 0.5;
#X obj 177 465 3dp_for 3;
#X text 72 492 so \, in short \,;
#X text 313 492 is equivalent to;
#X obj 177 491 3dp_view transy 1;
#X obj 177 515 3dp_draw cube 0.5;
#X obj 354 539 3dp_view transy 1;
#X obj 354 563 3dp_draw cube 0.5;
#X obj 354 589 3dp_view transy 1;
#X obj 354 613 3dp_draw cube 0.5;
#X obj 354 638 3dp_view transy 1;
#X obj 354 662 3dp_draw cube 0.5;
#X text 256 596 and;
#X obj 180 84 3dp_view roty;
#X floatatom 266 66 5 0 0 0 - - -;
#X connect 0 0 3 0;
#X connect 0 1 6 1;
#X connect 1 0 0 0;
#X connect 2 0 1 0;
#X connect 3 0 6 0;
#X connect 3 1 43 0;
#X connect 5 0 8 1;
#X connect 6 0 24 0;
#X connect 7 0 11 1;
#X connect 8 0 4 0;
#X connect 9 0 10 1;
#X connect 10 0 11 0;
#X connect 10 1 16 0;
#X connect 11 0 13 0;
#X connect 12 0 13 1;
#X connect 13 0 14 0;
#X connect 15 0 14 2;
#X connect 16 0 15 0;
#X connect 17 0 16 1;
#X connect 21 0 22 0;
#X connect 21 1 26 0;
#X connect 22 1 25 0;
#X connect 24 0 10 0;
#X connect 24 1 21 0;
#X connect 25 0 23 0;
#X connect 26 0 25 1;
#X connect 27 0 26 1;
#X connect 28 0 29 0;
#X connect 28 1 29 0;
#X connect 28 2 29 0;
#X connect 29 0 30 0;
#X connect 31 0 34 0;
#X connect 34 0 35 0;
#X connect 36 0 37 0;
#X connect 37 0 38 0;
#X connect 38 0 39 0;
#X connect 39 0 40 0;
#X connect 40 0 41 0;
#X connect 43 0 8 0;
#X connect 44 0 43 1;
|