aboutsummaryrefslogtreecommitdiff
path: root/Gem/pix_texture-help.pd
blob: 5304b2237d1a5df441db29c1025f8a99a8228417 (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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#N canvas 43 49 647 715 10;
#X text 452 8 GEM object;
#X obj 8 392 cnv 15 430 360 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 19 394 Inlets:;
#X text 22 665 Outlets:;
#X obj 8 352 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 351 Arguments:;
#X obj 8 56 cnv 15 430 285 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 600 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 515 572 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 50 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X obj 67 41 route create;
#X msg 67 70 set destroy;
#X msg 142 68 set create;
#X msg 132 112 create \, 1;
#X msg 198 112 destroy;
#X msg 234 221 dimen 500 500;
#X msg 279 189 dimen 1024 768;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 6 0;
#X connect 3 1 5 0;
#X connect 3 1 7 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X connect 8 0 0 0;
#X connect 9 0 0 0;
#X restore 520 611 pd gemwin;
#X msg 520 592 create;
#X text 516 571 Create window:;
#X obj 455 276 cnv 15 160 265 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X text 71 31 Class: pix object;
#X obj 510 85 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#N canvas 0 50 587 366 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 77 205 pix_image examples/data/fractal.JPG;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#X text 312 85 re-send the image to the [pix_]-object;
#X text 231 37 open;
#X text 79 30 gemlist;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X connect 5 0 4 0;
#X restore 451 113 pd image;
#X obj 454 547 pix_texture;
#X text 63 362 <none>;
#X text 57 682 Outlet 1: gemlist;
#X text 33 408 Inlet 1: gemlist;
#X obj 452 571 square 3;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 50 12 Synopsis: [pix_texture];
#X text 29 57 Description: apply texture mapping;
#X text 16 79 enables texture mapping with the current pix. Whatever
pix values are in the network currently will be used (ie \, all processing
after the pix_texture will not have any effect).;
#X msg 461 451 quality \$1;
#X obj 461 432 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 33 423 Inlet 1: 0|1 turn texturing On/off;
#X text 33 437 Inlet 1: quality 0|1 : GL_NEAREST | GL_LINEAR(default)
;
#X text 15 122 Send a quality message to change the quality of the
texture mapping. GL_LINEAR is better than GL_NEAREST (but also more
computationally expensive). However \, on many machines (especially
SGIs) \, there is no speed difference.;
#X text 14 233 [pix_texture] is able to texture images of ANY size
(even non-power of 2);
#X obj 542 472 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 542 491 rectangle \$1;
#X obj 469 497 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 542 432 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 469 516 client_storage \$1;
#X msg 542 451 repeat \$1;
#X text 33 453 Inlet 1: repeat 0|1 : CLAMP_TO_EDGE or REPEAT(default)
;
#X text 32 470 Inlet 1: rectangle 0|1 : use rectangle-texturing if
available (default=1);
#X text 32 498 Inlet 1: client_storage 0|1 : use client-storage if
available (default=1);
#X msg 493 407 env \$1;
#X obj 493 387 hradio 15 1 0 6 empty empty empty 0 -6 0 8 -262144 -1
-1 0;
#X obj 472 222 pack 0 0 1;
#X obj 452 243 color 0 0.5 0;
#X obj 498 196 t b f;
#X obj 499 177 nbx 3 14 0 1 0 0 empty empty green 0 -6 0 10 -262144
-1 -1 0 256;
#X obj 540 196 t b f;
#X obj 541 177 nbx 3 14 0 1 0 0 empty empty blue 0 -6 0 10 -262144
-1 -1 0 256;
#X obj 458 196 nbx 3 14 0 1 0 0 empty empty red 0 -6 0 10 -262144 -1
-1 0 256;
#X text 14 262 [pix_texture] tries to use the fastest way to get a
pix onto a texture. This implies using "rectangle"-texturing if available.
This \, in turn \, can lead to some problems with several geos. Try
using "rectangle 0" if you experience problems. Rectangle textures
cannot be REPEATed (they are always clamped-to-edge);
#X text 32 526 Inlet 1: env 0|1|2|3|4|5 : texture environment mode
;
#X text 57 541 0=GL_REPLACE \, 1=GL_DECAL \, 2=GL_BLEND \, 3=GL_ADD
\,;
#X text 57 556 4=GL_COMBINE \, >4=GL_MODULATE (default);
#X text 16 176 - env message changes the texture environment mode.
Some modes allow mixing with fragment colors (BLEND \, ADD \, COMBINE
\, MODULATE) \, while REPLACE and DECAL ignore the current fragment/texture
color.;
#X text 457 149 set base fragment color;
#X text 57 700 Outlet 2: texture info : <id> <width> <height> <type>
<upsidedown flag>;
#X text 32 576 Inlet 1: message: texunit <f>;
#X text 112 611 (useful only with shader);
#X text 112 594 (change texunit of the texture);
#X floatatom 463 286 5 0 0 0 - - -;
#X msg 463 305 texunit \$1;
#X obj 473 331 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 473 351 yuv \$1;
#X text 32 646 Inlet 1: message: pbo : change pixel buffer object number
;
#X floatatom 537 332 5 0 0 0 - - -;
#X msg 537 351 pbo \$1;
#X text 32 626 Inlet 1: message: yuv : use native YUV-mode if available (default: 1);
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 17 0;
#X connect 16 0 17 1;
#X connect 17 0 46 0;
#X connect 18 0 22 0;
#X connect 28 0 18 0;
#X connect 29 0 28 0;
#X connect 34 0 35 0;
#X connect 35 0 18 0;
#X connect 36 0 38 0;
#X connect 37 0 39 0;
#X connect 38 0 18 0;
#X connect 39 0 18 0;
#X connect 43 0 18 0;
#X connect 44 0 43 0;
#X connect 45 0 46 1;
#X connect 46 0 18 0;
#X connect 47 0 45 0;
#X connect 47 1 45 1;
#X connect 48 0 47 0;
#X connect 49 0 45 0;
#X connect 49 1 45 2;
#X connect 50 0 49 0;
#X connect 51 0 45 0;
#X connect 62 0 63 0;
#X connect 63 0 18 0;
#X connect 64 0 65 0;
#X connect 65 0 18 0;
#X connect 67 0 68 0;
#X connect 68 0 18 0;