forked from patricksebastien/mtl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
3dPanTilt-help.pd
71 lines (71 loc) · 2.04 KB
/
3dPanTilt-help.pd
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
#N canvas 278 82 874 639 10;
#X obj 18 96 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 174 429 gemhead;
#X obj 20 262 gemhead;
#X obj 20 470 cube;
#X floatatom 110 291 5 0 0 0 - - -, f 5;
#X floatatom 209 293 5 0 0 0 - - -, f 5;
#X obj 20 407 translateXYZ 1 0 0;
#X obj 20 441 scaleXYZ 1 0.1 0.1;
#X obj 195 513 colorRGB 1 0 0;
#X text 15 239 The rectangle pointer.;
#X text 172 408 The sphere.;
#X text 505 134 Inlet_1: First set of 3D coordinates.;
#X text 504 155 Inlet_2: Reference set of 3D coordinates.;
#X text 504 175 Outlet_1: Pan angle.;
#X text 504 196 Outlet_2: Tilt angle.;
#X text 504 218 The angles are imagined with a top down perspective
of the standard Gem window.;
#X obj 110 270 mtl/3dPanTilt 0 0 0;
#X obj 14 22 cnv 15 380 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 19 64 tags: 3d;
#X text 21 25 Description: Calculate the pan and tilt between two 3D
coordinates.;
#X obj 265 273 mtl/gemsMouse;
#X obj 265 368 pack f f 0;
#X obj 266 396 t l l;
#X obj 195 487 translateXYZ;
#X obj 293 424 unpack f f f;
#X text 14 179 Note how 2 rotateXYZ are used to transfer the pan &
tilt angles to Gem angles.;
#X obj 290 300 route 0 1;
#X msg 290 325 \$1 \$2 0;
#X obj 195 538 sphere 0.2;
#X msg 353 326 \$1 \$2 -2;
#X obj 20 345 rotateXYZ;
#X obj 20 378 rotateXYZ;
#X obj 507 112 mtl/3dPanTilt 0 0 0;
#X obj 516 327 gemhead;
#X obj 516 399 light;
#X obj 18 119 mtl/gemsWin /lighting 1;
#X obj 516 363 translateXYZ 0 0 1;
#X text 258 255 Move the mouse in the gem window;
#X connect 0 0 35 0;
#X connect 1 0 23 0;
#X connect 2 0 30 0;
#X connect 4 0 30 3;
#X connect 5 0 31 2;
#X connect 6 0 7 0;
#X connect 7 0 3 0;
#X connect 8 0 28 0;
#X connect 16 0 4 0;
#X connect 16 1 5 0;
#X connect 20 0 21 0;
#X connect 20 1 26 0;
#X connect 21 0 22 0;
#X connect 22 0 16 0;
#X connect 22 1 24 0;
#X connect 23 0 8 0;
#X connect 24 0 23 1;
#X connect 24 1 23 2;
#X connect 24 2 23 3;
#X connect 26 0 27 0;
#X connect 26 1 29 0;
#X connect 27 0 21 0;
#X connect 29 0 21 0;
#X connect 30 0 31 0;
#X connect 31 0 6 0;
#X connect 33 0 36 0;
#X connect 36 0 34 0;