aboutsummaryrefslogtreecommitdiff
path: root/opengl/doc/examples/example08.pd
blob: a5f7e9d26829e27c0ba11a1bc744d5f7ae007280 (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
92
93
94
#N canvas 96 78 756 667 10;
#X obj 18 131 3dp_windowcontext;
#X obj 18 159 3dp_push;
#X obj 327 80 metro 40;
#X obj 327 52 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 327 224 pdp_v4l;
#X obj 431 463 pdp_convert texture/*/*;
#X floatatom 488 554 5 0 0;
#X obj 18 215 3dp_view scalex 1.33333;
#X obj 18 189 3dp_mouserotate;
#X floatatom 83 308 5 0 0;
#X msg 83 287 10;
#X obj 69 428 3dp_view rotx;
#X obj 69 475 3dp_view roty;
#X obj 69 523 3dp_view rotz;
#X obj 155 398 random 360;
#X obj 155 453 random 360;
#X obj 155 500 random 360;
#X obj 155 371 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 18 366 3dp_push;
#X text 132 305 nb of squares;
#X floatatom 220 369 5 0 0;
#X obj 431 309 pdp_plasma;
#X obj 431 256 loadbang;
#X obj 327 192 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 397 279 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 417 55 200;
#X floatatom 510 364 5 0 0;
#X msg 378 55 40;
#X obj 327 126 spigot;
#X obj 385 106 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 431 395 pdp_gain 0.3;
#X obj 18 333 3dp_for 10;
#X text 21 12 another example of accumulated blending combined with
a 3dp_for object to render multiple randomly rotated squares.;
#X msg 386 186 open /dev/video1;
#X obj 18 246 3dp_blend;
#X text 411 106 switch between video textures and stills;
#X msg 386 160 open /dev/video0;
#X text 87 246 <-- click for more info;
#X msg 431 281 dim 64 64 \, bang;
#X obj 548 228 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 548 256 metro 2000;
#X obj 374 583 3dp_draw square 8;
#X connect 0 0 1 0;
#X connect 0 1 8 1;
#X connect 1 0 8 0;
#X connect 2 0 0 0;
#X connect 2 0 28 0;
#X connect 3 0 2 0;
#X connect 4 0 30 0;
#X connect 5 0 41 1;
#X connect 6 0 41 2;
#X connect 7 0 34 0;
#X connect 8 0 7 0;
#X connect 9 0 31 1;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X connect 12 0 13 0;
#X connect 13 0 41 0;
#X connect 14 0 11 1;
#X connect 15 0 12 1;
#X connect 16 0 13 1;
#X connect 17 0 14 0;
#X connect 17 0 15 0;
#X connect 17 0 16 0;
#X connect 18 1 11 0;
#X connect 20 0 14 1;
#X connect 20 0 15 1;
#X connect 20 0 16 1;
#X connect 21 0 30 0;
#X connect 22 0 38 0;
#X connect 23 0 4 0;
#X connect 24 0 21 0;
#X connect 25 0 2 1;
#X connect 26 0 30 1;
#X connect 27 0 2 1;
#X connect 28 0 23 0;
#X connect 29 0 28 1;
#X connect 30 0 5 0;
#X connect 31 0 18 0;
#X connect 31 1 17 0;
#X connect 33 0 4 0;
#X connect 34 0 31 0;
#X connect 36 0 4 0;
#X connect 38 0 21 0;
#X connect 39 0 40 0;
#X connect 40 0 21 0;