- Reestructuración de ficheros y directorios general

- merge v0.01 --> Añadido fileselector
- Añadidas fuentes de Gem y Pure Data
- pix2jpg incluído en Gem. Archivos de construcción de Gem modificados.
- Añadido fichero ompiling.txt con instrucciones de compilación
This commit is contained in:
Santi Noreña 2013-02-04 18:00:17 +01:00
parent c9adfd020b
commit e85d191b46
3100 changed files with 775434 additions and 3073 deletions

View file

@ -0,0 +1,14 @@
#N canvas 144 70 497 292 10;
#X text 21 22 GEMglBegin - delimit the vertices of a primitive or a
group of like primitives;
#X text 21 61 C Specification: void glBegin( GLenum mode );
#X text 21 91 Parameters;
#X text 42 115 mode;
#X text 77 116 Specifies the primitive or primitives that will be created
from vertices presented between glBegin and the subsequent glEnd. Ten
symbolic constants are accepted: GL_POINTS \, GL_LINES \, GL_LINE_STRIP
\, GL_LINE_LOOP \, GL_TRIANGLES \, GL_TRIANGLE_STRIP \, GL_TRIANGLE_FAN
\, GL_QUADS \, GL_QUAD_STRIP \, and GL_POLYGON.;
#X text 71 244 http://www.glprogramming.com/blue/ch05.html#id5450783
;
#X text 22 228 OpenGL Reference page:;

65
Gem/help/GLdefine-help.pd Normal file
View file

@ -0,0 +1,65 @@
#N canvas 78 37 701 310 10;
#X obj 519 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 584 234 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 589 273 pd gemwin;
#X msg 589 254 create;
#X text 585 233 Create window:;
#X text 525 29 Example:;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 11 217 Inlets:;
#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 452 8 GEM object;
#X text 11 266 Outlets:;
#X obj 522 71 cnv 15 150 140 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 530 192 GEMglBegin;
#X obj 534 77 loadbang;
#X text 54 30 Class: GEMgl object;
#X text 33 14 Synopsis: [GLdefine];
#X text 15 88 Send an OpenGL configuration constant to a GEMglBegin
to set up the OpenGL environment. These constants are defined in GL/gl.h
in the OpenGL C++ code.;
#X floatatom 584 167 5 0 0 0 - - -;
#X text 29 229 Inlet 1: bang;
#X text 23 279 Outlet 1: float;
#X text 14 137 for more \, see: http://www.glprogramming.com/blue/ch04.html
;
#X text 7 69 Description: gets the value of a OpenGL constant;
#X text 29 245 Inlet 1: message - the name of the constant;
#X text 17 175 Arguments:;
#X text 29 189 the name of a OpenGL constant (e.g. GL_LINES or GL_POLYGON)
;
#X msg 542 98 GL_LINES;
#X obj 534 142 GLdefine GL_ADD;
#X msg 553 119 symbol GL_ACCUM;
#X connect 2 0 3 0;
#X connect 3 0 2 0;
#X connect 14 0 27 0;
#X connect 26 0 27 0;
#X connect 27 0 13 1;
#X connect 27 0 18 0;
#X connect 28 0 27 0;

220
Gem/help/Makefile.am Normal file
View file

@ -0,0 +1,220 @@
AUTOMAKE_OPTIONS = foreign
SUFFIXES = .pd
gemhelpdir=$(pkglibdir)
dist_gemhelp_DATA = \
accumrotate-help.pd \
alpha-help.pd \
ambient-help.pd \
ambientRGB-help.pd \
camera-help.pd \
circle-help.pd \
color-help.pd \
colorRGB-help.pd \
colorSquare-help.pd \
cone-help.pd \
cube-help.pd \
cuboid-help.pd \
curve3d-help.pd \
curve-help.pd \
cylinder-help.pd \
depth-help.pd \
diffuse-help.pd \
diffuseRGB-help.pd \
disk-help.pd \
emission-help.pd \
emissionRGB-help.pd \
fragment_program-help.pd \
gemframebuffer-help.pd \
GEMglBegin-help.pd \
gemhead-help.pd \
gemkeyboard-help.pd \
gemkeyname-help.pd \
gemlist-help.pd \
gemlist_info-help.pd \
gemlist_matrix-help.pd \
gemmouse-help.pd \
gemorb-help.pd \
gemreceive-help.pd \
gemtablet-help.pd \
gemvertexbuffer-help.pd \
gemwin-help.pd \
GLdefine-help.pd \
glsl_fragment-help.pd \
glsl_geometry-help.pd \
glsl_program-help.pd \
glsl_vertex-help.pd \
imageVert-help.pd \
light-help.pd \
linear_path-help.pd \
mesh_line-help.pd \
mesh_square-help.pd \
model-help.pd \
multimodel-help.pd \
newWave-help.pd \
ortho-help.pd \
part_color-help.pd \
part_damp-help.pd \
part_draw-help.pd \
part_follow-help.pd \
part_gravity-help.pd \
part_head-help.pd \
part_info-help.pd \
part_killold-help.pd \
part_killslow-help.pd \
part_orbitpoint-help.pd \
part_render-help.pd \
part_sink-help.pd \
part_size-help.pd \
part_source-help.pd \
part_targetcolor-help.pd \
part_targetsize-help.pd \
part_velcone-help.pd \
part_velocity-help.pd \
part_velsphere-help.pd \
part_vertex-help.pd \
pix_2grey-help.pd \
pix_a_2grey-help.pd \
pix_add-help.pd \
pix_aging-help.pd \
pix_alpha-help.pd \
pix_background-help.pd \
pix_backlight-help.pd \
pix_biquad-help.pd \
pix_bitmask-help.pd \
pix_blob-help.pd \
pix_blur-help.pd \
pix_buffer-help.pd \
pix_buffer_read-help.pd \
pix_buffer_write-help.pd \
pix_buf-help.pd \
pix_chroma_key-help.pd \
pix_clearblock-help.pd \
pix_coloralpha-help.pd \
pix_color-help.pd \
pix_colorclassify-help.pd \
pix_colormatrix-help.pd \
pix_colorreduce-help.pd \
pix_compare-help.pd \
pix_composite-help.pd \
pix_contrast-help.pd \
pix_convert-help.pd \
pix_convolve-help.pd \
pix_coordinate-help.pd \
pix_crop-help.pd \
pix_curve-help.pd \
pix_data-help.pd \
pix_deinterlace-help.pd \
pix_delay-help.pd \
pix_diff-help.pd \
pix_dot-help.pd \
pix_draw-help.pd \
pix_dump-help.pd \
pix_duotone-help.pd \
pix_film-help.pd \
pix_flip-help.pd \
pix_freeframe-help.pd \
pix_frei0r-help.pd \
pix_gain-help.pd \
pix_grey-help.pd \
pix_halftone-help.pd \
pix_histo-help.pd \
pix_hsv2rgb-help.pd \
pix_image-help.pd \
pix_imageInPlace-help.pd \
pix_indycam-help.pd \
pix_info-help.pd \
pix_invert-help.pd \
pix_kaleidoscope-help.pd \
pix_levels-help.pd \
pix_lumaoffset-help.pd \
pix_mask-help.pd \
pix_mean_color-help.pd \
pix_metaimage-help.pd \
pix_mix-help.pd \
pix_motionblur-help.pd \
pix_movement2-help.pd \
pix_movement-help.pd \
pix_movie-help.pd \
pix_multiblob-help.pd \
pix_multiimage-help.pd \
pix_multitexture-help.pd \
pix_multiply-help.pd \
pix_noise-help.pd \
pix_normalize-help.pd \
pix_offset-help.pd \
pix_pix2sig~-help.pd \
pix_posterize-help.pd \
pix_puzzle-help.pd \
pix_rds-help.pd \
pix_record-help.pd \
pix_rectangle-help.pd \
pix_refraction-help.pd \
pix_resize-help.pd \
pix_rgb2hsv-help.pd \
pix_rgba-help.pd \
pix_roi-help.pd \
pix_roll-help.pd \
pix_rtx-help.pd \
pix_scanline-help.pd \
pix_set-help.pd \
pix_share_read-help.pd \
pix_share_write-help.pd \
pix_sig2pix~-help.pd \
pix_snap2tex-help.pd \
pix_snap-help.pd \
pix_subtract-help.pd \
pix_takealpha-help.pd \
pix_texture-help.pd \
pix_threshold_bernsen-help.pd \
pix_threshold-help.pd \
pix_tIIR-help.pd \
pix_videoDS-help.pd \
pix_video-help.pd \
pix_write-help.pd \
pix_yuv-help.pd \
pix_zoom-help.pd \
polygon-help.pd \
polygon_smooth-help.pd \
pqtorusknots-help.pd \
primTri-help.pd \
rectangle-help.pd \
render_trigger-help.pd \
ripple-help.pd \
rotate-help.pd \
rotateXYZ-help.pd \
rubber-help.pd \
scale-help.pd \
scaleXYZ-help.pd \
scopeXYZ~-help.pd \
separator-help.pd \
shearXY-help.pd \
shearXZ-help.pd \
shearYX-help.pd \
shearYZ-help.pd \
shearZX-help.pd \
shearZY-help.pd \
shininess-help.pd \
slideSquares-help.pd \
specular-help.pd \
specularRGB-help.pd \
sphere3d-help.pd \
sphere-help.pd \
spline_path-help.pd \
spot_light-help.pd \
square-help.pd \
surface3d-help.pd \
teapot-help.pd \
text2d-help.pd \
text3d-help.pd \
textextruded-help.pd \
textoutline-help.pd \
torus-help.pd \
translate-help.pd \
translateXYZ-help.pd \
triangle-help.pd \
tube-help.pd \
vertex_program-help.pd \
world_light-help.pd

View file

@ -0,0 +1,75 @@
#N canvas 57 47 634 374 10;
#X text 452 8 GEM object;
#X text 50 12 Synopsis: [accumrotate];
#X obj 8 197 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 63 225 Inlet 1: message: reset;
#X text 64 254 Inlet 3: float: delta-rotation around Y-axis (in deg)
;
#X text 64 242 Inlet 2: float: delta-rotation around X-axis (in deg)
;
#X text 64 266 Inlet 4: float: delta-rotation around Z-axis (in deg)
;
#X text 39 198 Inlets:;
#X text 63 211 Inlet 1: gemlist;
#X text 39 282 Outlets:;
#X text 57 295 Outlet 1: gemlist;
#X obj 8 156 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 155 Arguments:;
#X text 63 166 initial rotations around X \, Y \, Z-axes;
#X obj 8 76 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 42 95 [accumrotate] accepts a gemList and changes the current
transformation matrix by the specified delta-rotation;
#X text 41 130 the delta-values add to the current rotation-matrix.
;
#X text 29 77 Description: accumulated rotation;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 158 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X obj 451 233 square;
#X msg 478 108 reset;
#X msg 531 163 10;
#X text 490 139 click repeatedly;
#X obj 451 186 accumrotate 45 0 0;
#X msg 491 163 5;
#X msg 572 163 15;
#X text 34 335 see also:;
#X obj 143 337 rotateXYZ;
#X obj 95 337 rotate;
#X connect 21 0 22 0;
#X connect 22 0 21 0;
#X connect 26 0 31 0;
#X connect 28 0 31 0;
#X connect 29 0 31 2;
#X connect 31 0 27 0;
#X connect 32 0 31 1;
#X connect 33 0 31 3;

109
Gem/help/alpha-help.pd Normal file
View file

@ -0,0 +1,109 @@
#N canvas 50 237 711 539 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 330 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 37 195 Inlets:;
#X text 453 355 Outlets:;
#X text 461 366 Outlet 1: gemlist;
#X obj 8 161 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 160 Arguments:;
#X obj 8 76 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 250 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 584 254 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 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 restore 589 293 pd gemwin;
#X msg 589 274 create;
#X text 585 253 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 451 197 cnv 15 80 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 579 186 color 1 0 0 0.5;
#X text 60 219 Inlet 1: float: turn alpha blending on/off;
#X text 50 12 Synopsis: [alpha];
#X text 29 77 Description: enable alpha blending;
#X obj 458 310 square;
#X obj 458 233 alpha;
#X obj 458 108 color 0 1 0 0.5;
#X text 61 208 Inlet 1: gemlist;
#X text 60 231 Inlet 1: message "auto 1" | "auto 0" turn on/off automatic
depth detection;
#X floatatom 583 139 5 0 0 0 - - -;
#X obj 458 86 gemhead 51;
#X obj 579 211 sphere;
#X obj 458 137 rotate 114 0 1 0;
#X obj 579 162 gemhead 50;
#X msg 474 176 auto \$1;
#X obj 474 158 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 583 108 0 1 0 \$1;
#X floatatom 583 88 5 0 1 0 - - -;
#X obj 628 88 hsl 64 15 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X text 22 91 [alpha] turns on and off alpha blending. Be aware that
the rendering order matters \, so you probably want to set the gemhead
order number high so that the object is rendered after all of the non-alpha
blended ones.;
#X text 63 171 float : blending function (default: GL_ONE_MINUS_SRC_ALPHA)
;
#X text 60 260 Inlet 2: float: blending function;
#X text 70 272 0=GL_ONE_MINUS_SOURCE_ALPHA;
#X text 70 282 1=GL_ONE;
#X text 70 294 2=GL_ZERO;
#X text 70 306 3=GL_SRC_COLOR;
#X text 70 318 4=GL_ONE_MINUS_SRC_COLOR;
#X text 70 330 5=GL_DST_COLOR;
#X text 70 342 6=GL_ONE_MINUS_DST_COLOR;
#X text 70 354 7=GL_SRC_ALPHA;
#X text 70 366 8=GL_ONE_MINUS_SRC_ALPHA;
#X text 70 378 9=GL_DST_ALPHA;
#X text 70 390 10=GL_ONE_MINUS_DST_ALPHA;
#X text 70 402 11=GL_CONSTANT_COLOR;
#X text 70 414 12=GL_ONE_MINUS_CONSTANT_COLOR;
#X text 70 426 13=GL_CONSTANT_ALPHA;
#X text 70 438 14=GL_ONE_MINUS_CONSTANT_ALPHA;
#X text 70 450 15=GL_SRC_ALPHA_SATURATE;
#X text 70 462 16=GL_SRC1_COLOR;
#X text 70 474 17=GL_ONE_MINUS_SRC1_COLOR;
#X text 70 486 18=GL_SRC1_ALPHA;
#X text 70 498 19=GL_ONE_MINUS_SRC1_ALPHA;
#X obj 477 210 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 501 210 2 0 19 0 - - -;
#X connect 11 0 12 0;
#X connect 12 0 11 0;
#X connect 16 0 27 0;
#X connect 21 0 20 0;
#X connect 22 0 28 0;
#X connect 25 0 28 1;
#X connect 26 0 22 0;
#X connect 28 0 21 0;
#X connect 29 0 16 0;
#X connect 30 0 21 0;
#X connect 31 0 30 0;
#X connect 32 0 22 1;
#X connect 33 0 32 0;
#X connect 34 0 33 0;
#X connect 58 0 21 0;
#X connect 59 0 21 1;

68
Gem/help/ambient-help.pd Normal file
View file

@ -0,0 +1,68 @@
#N canvas 260 145 639 369 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 63 211 Inlet 1: gemlist;
#X text 39 252 Outlets:;
#X text 57 265 Outlet 1: gemlist;
#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, lighting 1 \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X text 29 77 Description: ambient colouring;
#X obj 451 193 cube;
#X obj 500 192 gemhead;
#X obj 500 230 world_light;
#X obj 500 211 rotate 180 1 0 0;
#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.;
#X text 60 171 defaults: 0.2 0.2 0.2 1;
#X text 22 91 [ambient] accepts a gemList and sets the ambient-color
for all subsequent vertex-operations. You have to enable lighting to
see any effects.;
#X text 50 12 Synopsis: [ambient];
#X obj 451 156 ambient 0 1 0;
#X msg 478 130 0.4 0.8 1;
#X text 63 229 Inlet 2: list: 3(RGB) or 4(RGBA) float values;
#X floatatom 549 193 5 0 0 0 - - -;
#X obj 84 332 ambientRGB;
#X text 21 332 see also:;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 17 0 27 0;
#X connect 20 0 22 0;
#X connect 22 0 21 0;
#X connect 27 0 19 0;
#X connect 28 0 27 1;
#X connect 30 0 22 1;

View file

@ -0,0 +1,77 @@
#N canvas 4 49 641 366 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 63 211 Inlet 1: gemlist;
#X text 39 292 Outlets:;
#X text 57 305 Outlet 1: gemlist;
#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, lighting 1 \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X text 29 77 Description: ambient colouring;
#X obj 451 193 cube;
#X obj 500 192 gemhead;
#X obj 500 230 world_light;
#X text 50 12 Synopsis: [ambientRGB];
#X text 22 91 [ambientRGB] accepts a gemList and sets the ambient-color
for all subsequent vertex-operations. You have to enable lighting to
see any effects.;
#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.;
#X text 60 171 defaults: 0.2 0.2 0.2 1;
#X text 63 229 Inlet 2: float: red value;
#X text 63 244 Inlet 3: float: green value;
#X text 63 259 Inlet 4: float: blue value;
#X text 63 274 Inlet 5: float: alpha value;
#X obj 451 156 ambientRGB 0 1 0;
#X floatatom 477 122 3 0 1 0 - - -;
#X floatatom 504 122 3 0 1 0 - - -;
#X floatatom 531 122 3 0 1 0 - - -;
#X floatatom 558 122 3 0 1 0 - - -;
#X floatatom 548 192 5 0 0 0 - - -;
#X obj 500 211 rotate 70 1 0 0;
#X text 20 333 see also:;
#X obj 93 332 ambient;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 17 0 30 0;
#X connect 20 0 36 0;
#X connect 30 0 19 0;
#X connect 31 0 30 1;
#X connect 32 0 30 2;
#X connect 33 0 30 3;
#X connect 34 0 30 4;
#X connect 35 0 36 1;
#X connect 36 0 21 0;

81
Gem/help/camera-help.pd Normal file
View file

@ -0,0 +1,81 @@
#N canvas 0 22 630 494 10;
#X obj 179 157 camera;
#X obj 179 45 gemhead;
#X obj 162 82 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 185 63 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 234 108 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 260 86 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 234 124 left \$1;
#X msg 260 102 right \$1;
#X obj 75 120 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 101 98 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 101 114 up \$1;
#X msg 75 136 down \$1;
#X msg 267 58 reset;
#X msg 185 80 forward \$1;
#X msg 162 98 reverse \$1;
#X msg 66 252 speed \$1;
#X floatatom 66 234 5 0 0 0 - - -;
#X floatatom 67 195 5 0 0 0 - - -;
#X msg 379 150 lookX \$1;
#X msg 379 187 lookY \$1;
#X msg 379 223 lookZ \$1;
#X floatatom 379 134 5 0 0 0 - - -;
#X floatatom 379 207 5 0 0 0 - - -;
#X floatatom 379 170 5 0 0 0 - - -;
#X msg 67 213 distance \$1;
#X obj 170 305 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 175 344 pd gemwin;
#X msg 175 325 create;
#X text 171 304 Create window:;
#X connect 1 0 0 0;
#X connect 2 0 14 0;
#X connect 3 0 13 0;
#X connect 4 0 6 0;
#X connect 5 0 7 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X connect 8 0 11 0;
#X connect 9 0 10 0;
#X connect 10 0 0 0;
#X connect 11 0 0 0;
#X connect 12 0 0 0;
#X connect 13 0 0 0;
#X connect 14 0 0 0;
#X connect 15 0 0 0;
#X connect 16 0 15 0;
#X connect 17 0 24 0;
#X connect 18 0 0 0;
#X connect 19 0 0 0;
#X connect 20 0 0 0;
#X connect 21 0 18 0;
#X connect 22 0 20 0;
#X connect 23 0 19 0;
#X connect 24 0 0 0;
#X connect 26 0 27 0;
#X connect 27 0 26 0;

65
Gem/help/circle-help.pd Normal file
View file

@ -0,0 +1,65 @@
#N canvas 291 154 710 345 10;
#X text 33 14 Synopsis: [circle];
#X text 54 30 Class: geometric object;
#X text 525 29 Example:;
#X obj 7 65 cnv 15 450 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 7 69 Description: Renders a circle.;
#X text 16 86 The circle object renders a circle flat disc at the current
position with current color. The look of the circle can be changed
with the draw message \, its size can be changed via the second inlet.
;
#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 166 cnv 15 450 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 165 Arguments:;
#X text 27 261 Inlet 2: float: size;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 280 Outlets:;
#X text 21 293 Outlet 1: gemlist;
#X text 63 177 size of the circle;
#X obj 519 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 584 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 589 263 pd gemwin;
#X msg 589 244 create;
#X text 585 223 Create window:;
#X obj 525 80 cnv 15 150 100 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 593 159 circle;
#X msg 535 95 draw line;
#X msg 535 116 draw fill;
#X msg 535 138 draw point;
#X obj 593 54 gemhead;
#X floatatom 626 130 5 0 0 2 size - -;
#X text 64 191 default: 1;
#X text 27 247 Inlet 1: message: draw [line|fill|point|default];
#X connect 18 0 19 0;
#X connect 19 0 18 0;
#X connect 23 0 22 0;
#X connect 24 0 22 0;
#X connect 25 0 22 0;
#X connect 26 0 22 0;
#X connect 27 0 22 1;

62
Gem/help/color-help.pd Normal file
View file

@ -0,0 +1,62 @@
#N canvas 48 102 639 342 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 63 211 Inlet 1: gemlist;
#X text 39 292 Outlets:;
#X text 57 305 Outlet 1: gemlist;
#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X obj 8 66 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 66 cnv 15 170 200 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 49 Example:;
#X obj 510 183 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 515 222 pd gemwin;
#X msg 515 203 create;
#X text 511 182 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 107 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 73 gemhead;
#X obj 451 182 cube;
#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.;
#X text 60 171 defaults: 0 0 0 1;
#X obj 451 145 color 0 1 0;
#X msg 487 116 0 0 1;
#X text 63 229 Inlet 2: list: 3(RGB) or 4(RGBA) float values;
#X text 22 81 [color] sets the colour of all subsequent shape and vertex
operations until reset by another [color]/[colorRGB] object. If you
set the alpha-value \, you will need an [alpha] object to enable alpha-blending
;
#X text 50 12 Synopsis: [color];
#X text 29 67 Description: colouring;
#X text 449 272 see also:;
#X obj 452 301 colorRGB;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 17 0 21 0;
#X connect 21 0 18 0;
#X connect 22 0 21 1;

71
Gem/help/colorRGB-help.pd Normal file
View file

@ -0,0 +1,71 @@
#N canvas 42 24 639 342 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 63 211 Inlet 1: gemlist;
#X text 39 292 Outlets:;
#X text 57 305 Outlet 1: gemlist;
#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X obj 8 66 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 66 cnv 15 170 200 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 49 Example:;
#X obj 514 190 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 519 229 pd gemwin;
#X msg 519 210 create;
#X text 515 189 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 107 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 73 gemhead;
#X obj 451 182 cube;
#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.;
#X text 63 229 Inlet 2: float: red value;
#X text 63 244 Inlet 3: float: green value;
#X text 63 259 Inlet 4: float: blue value;
#X text 63 274 Inlet 5: float: alpha value;
#X floatatom 479 111 3 0 1 0 - - -;
#X floatatom 508 111 3 0 1 0 - - -;
#X floatatom 536 111 3 0 1 0 - - -;
#X floatatom 565 111 3 0 1 0 - - -;
#X text 60 171 defaults: 0 0 0 1;
#X text 50 12 Synopsis: [colorRGB];
#X obj 451 145 colorRGB 0 1 0;
#X text 29 67 Description: colouring;
#X text 22 81 [colorRGB] sets the colour of all subsequent shape and
vertex operations until reset by another [color]/[colorRGB] object.
If you set the alpha-value \, you will need an [alpha] object to enable
alpha-blending;
#X text 447 272 see also:;
#X obj 449 297 color;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 17 0 30 0;
#X connect 24 0 30 1;
#X connect 25 0 30 2;
#X connect 26 0 30 3;
#X connect 27 0 30 4;
#X connect 30 0 18 0;

View file

@ -0,0 +1,82 @@
#N canvas 130 41 696 468 10;
#X text 54 30 Class: geometric object;
#X obj 479 107 cnv 15 200 250 empty empty empty 20 12 0 14 -228992
-66577 0;
#X obj 494 284 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 499 323 pd gemwin;
#X msg 499 304 create;
#X text 495 283 Create window:;
#X obj 7 65 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 196 cnv 15 450 200 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 201 Inlets:;
#X obj 8 156 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 155 Arguments:;
#X text 27 227 Inlet 1: message: draw [line|fill|point];
#X text 27 241 Inlet 2: float: size;
#X text 452 8 GEM object;
#X text 27 213 Inlet 1: gemlist;
#X text 9 350 Outlets:;
#X text 21 363 Outlet 1: gemlist;
#X text 485 89 Example:;
#X obj 482 137 cnv 15 190 110 empty empty empty 20 12 0 14 -81876 -66577
0;
#X text 33 14 Synopsis: [colorSquare];
#X obj 534 252 cnv 15 100 30 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 485 145 draw line;
#X msg 485 166 draw fill;
#X msg 485 188 draw point;
#X obj 543 114 gemhead;
#X floatatom 557 143 5 0 0 1 size - -;
#X text 7 69 Description: Renders a square with several colors.;
#X text 63 166 size of the square;
#X obj 543 259 colorSquare;
#X msg 615 222 1 1 0;
#X msg 600 203 0 0 1;
#X msg 586 184 0 1 0;
#X msg 571 165 1 0 0;
#X text 27 268 Inlet 3: list: 3(RGB) float values for the lowerleft
corner;
#X text 27 285 Inlet 4: list: 3(RGB) float values for the lowerright
corner;
#X text 27 305 Inlet 5: list: 3(RGB) float values for the upperright
corner;
#X text 27 322 Inlet 6: list: 3(RGB) float values for the upperleft
corner;
#X text 16 86 The colorSquare object renders a square at the current
position. The size of the square can be changed via the second inlet.
The colors of the 4 corners can be specified separately and are drawn
as gradients.;
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 21 0 28 0;
#X connect 22 0 28 0;
#X connect 23 0 28 0;
#X connect 24 0 28 0;
#X connect 25 0 28 1;
#X connect 29 0 28 5;
#X connect 30 0 28 4;
#X connect 31 0 28 3;
#X connect 32 0 28 2;

69
Gem/help/cone-help.pd Normal file
View file

@ -0,0 +1,69 @@
#N canvas 290 157 710 345 10;
#X text 54 30 Class: geometric object;
#X obj 479 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 544 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 549 263 pd gemwin;
#X msg 549 244 create;
#X text 545 223 Create window:;
#X text 485 29 Example:;
#X obj 7 65 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 146 cnv 15 450 50 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X text 27 261 Inlet 2: float: size;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 287 Outlets:;
#X text 21 300 Outlet 1: gemlist;
#X text 33 14 Synopsis: [cone];
#X text 7 69 Description: Renders a cone.;
#X text 14 86 The cone object renders a cone at the current position
with current color. The look of the cone can be changed with the draw
message \, its size can be changed via the second inlet.;
#X obj 542 130 cnv 15 100 80 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 485 65 draw line;
#X msg 485 86 draw fill;
#X msg 485 108 draw point;
#X obj 553 54 gemhead;
#X floatatom 569 144 5 0 0 2 size - -;
#X obj 553 79 rotateXYZ 90 0 0;
#X floatatom 586 171 5 0 0 2 segments - -;
#X text 27 272 Inlet 3: int: number of segments;
#X obj 553 189 cone 1;
#X text 64 180 defaults: 1 10;
#X text 63 162 size of the cone \, number of segments;
#X text 27 247 Inlet 1: message: draw [line|fill|point|default];
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 21 0 29 0;
#X connect 22 0 29 0;
#X connect 23 0 29 0;
#X connect 24 0 26 0;
#X connect 25 0 29 1;
#X connect 26 0 29 0;
#X connect 27 0 29 2;

64
Gem/help/cube-help.pd Normal file
View file

@ -0,0 +1,64 @@
#N canvas 289 160 710 345 10;
#X text 54 30 Class: geometric object;
#X obj 519 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 584 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 589 263 pd gemwin;
#X msg 589 244 create;
#X text 585 223 Create window:;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X text 27 247 Inlet 1: message: draw [line|fill|point];
#X text 27 261 Inlet 2: float: size;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 280 Outlets:;
#X text 21 293 Outlet 1: gemlist;
#X text 33 14 Synopsis: [cube];
#X text 7 69 Description: Renders a cube.;
#X text 63 186 size of the cube;
#X text 16 86 The cube object renders a cube at the current position
with current color. The size of the cube can be changed via the second
inlet.;
#X text 525 29 Example:;
#X obj 522 78 cnv 15 150 100 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 525 128 draw point;
#X obj 593 54 gemhead;
#X floatatom 624 114 5 0 0 0 - - -;
#X text 624 98 size;
#X obj 593 159 cube;
#X msg 525 106 draw line;
#X msg 525 85 draw default;
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 23 0 27 0;
#X connect 24 0 27 0;
#X connect 25 0 27 1;
#X connect 28 0 27 0;
#X connect 29 0 27 0;

73
Gem/help/cuboid-help.pd Normal file
View file

@ -0,0 +1,73 @@
#N canvas 289 160 710 363 10;
#X text 54 30 Class: geometric object;
#X obj 519 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 584 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 589 263 pd gemwin;
#X msg 589 244 create;
#X text 585 223 Create window:;
#X text 525 29 Example:;
#X obj 7 65 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 156 cnv 15 450 50 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 155 Arguments:;
#X text 27 247 Inlet 1: message: draw [line|fill|point];
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 310 Outlets:;
#X text 21 323 Outlet 1: gemlist;
#X obj 522 82 cnv 15 160 120 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 525 95 draw line;
#X msg 525 116 draw fill;
#X msg 525 138 draw point;
#X obj 593 54 gemhead;
#X floatatom 605 104 5 0 0 0 - - -;
#X obj 593 179 cuboid;
#X floatatom 617 134 5 0 0 0 - - -;
#X floatatom 630 162 5 0 0 0 - - -;
#X text 605 88 length;
#X text 617 118 height;
#X text 630 146 depth;
#X text 63 167 dimensions of the cuboid (length width height);
#X text 7 69 Description: Renders a cuboid box.;
#X text 16 86 The cuboid object renders a cuboid (box) at the current
position with current color. The dimensions of the cuboid can be changed
via the last three inlets.;
#X text 33 14 Synopsis: [cuboid];
#X text 27 260 Inlet 2: float: length (dimX);
#X text 27 275 Inlet 3: float: height (dimY);
#X text 27 289 Inlet 4: float: depth (dimZ);
#X text 65 181 default: 1 1 0;
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 18 0 23 0;
#X connect 19 0 23 0;
#X connect 20 0 23 0;
#X connect 21 0 23 0;
#X connect 22 0 23 1;
#X connect 24 0 23 2;
#X connect 25 0 23 3;

112
Gem/help/curve-help.pd Normal file
View file

@ -0,0 +1,112 @@
#N canvas 65 18 762 461 10;
#X text 54 30 Class: geometric object;
#X text 475 39 Example:;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 180 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 358 Outlets:;
#X text 21 371 Outlet 1: gemlist;
#X obj 469 58 cnv 15 200 295 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 568 359 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 \, reset;
#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 restore 573 398 pd gemwin;
#X msg 573 379 create;
#X text 569 358 Create window:;
#X obj 474 112 cnv 15 190 200 empty empty empty 20 12 0 14 -85973 -66577
0;
#X obj 521 319 cnv 15 100 30 empty empty empty 20 12 0 14 -24198 -66577
0;
#X text 21 138 Each (additional) inlet will accept an X Y Z point which
is where the control point will be.;
#X text 28 323 Inlet 2: list: 3(XYZ) float values;
#X text 28 344 Inlet N: list: 3(XYZ) float values;
#X text 52 330 ...;
#X text 33 14 Synopsis: [curve];
#X text 7 69 Description: Renders a bezier-curve;
#X text 63 187 number of control-points of the curve (mandatory);
#X text 27 247 Inlet 1: message: draw [line|linestrip|fill|point|tri|tristrip|trifan|quad|quadstrip]
;
#X text 22 88 [curve] creates a bezier curve. The initial argument
is the number of control-points of the curve. There is no maximum number
of control-points.;
#X text 27 306 Inlet 1: message: res <int> : interpolation-resolution(30)
;
#X text 27 293 Inlet 1: message: width <int> : line-width(1);
#X obj 596 233 cnv 15 65 75 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 479 163 draw line;
#X msg 479 118 draw fill;
#X msg 479 140 draw point;
#X obj 537 64 gemhead;
#X msg 585 115 1 1 0;
#X msg 593 135 1 -1 0;
#X floatatom 605 196 5 0 0 0 - - -;
#X msg 603 175 -2 1 0;
#X msg 599 155 -1 -1 -3;
#X msg 479 183 draw linestrip;
#X msg 479 203 draw tri;
#X msg 479 225 draw tristrip;
#X msg 478 248 draw trifan;
#X msg 478 269 draw quad;
#X msg 478 291 draw quadstrip;
#X obj 537 88 rotateXYZ;
#X floatatom 595 65 5 0 0 0 - - -;
#X obj 537 326 curve 5;
#X obj 608 89 loadbang;
#X floatatom 599 237 5 0 10 0 - - -;
#X msg 599 253 width \$1;
#X floatatom 600 274 5 0 100 0 - - -;
#X msg 600 291 res \$1;
#X msg 605 213 \$1 \$1 \$1;
#X connect 13 0 14 0;
#X connect 14 0 13 0;
#X connect 30 0 47 0;
#X connect 31 0 47 0;
#X connect 32 0 47 0;
#X connect 33 0 45 0;
#X connect 34 0 47 1;
#X connect 35 0 47 2;
#X connect 36 0 53 0;
#X connect 37 0 47 4;
#X connect 38 0 47 3;
#X connect 39 0 47 0;
#X connect 40 0 47 0;
#X connect 41 0 47 0;
#X connect 42 0 47 0;
#X connect 43 0 47 0;
#X connect 44 0 47 0;
#X connect 45 0 47 0;
#X connect 46 0 45 1;
#X connect 46 0 45 3;
#X connect 48 0 34 0;
#X connect 49 0 50 0;
#X connect 50 0 47 0;
#X connect 51 0 52 0;
#X connect 52 0 47 0;
#X connect 53 0 47 5;

1659
Gem/help/curve3d-help.pd Normal file

File diff suppressed because it is too large Load diff

70
Gem/help/cylinder-help.pd Normal file
View file

@ -0,0 +1,70 @@
#N canvas 291 154 710 345 10;
#X text 54 30 Class: geometric object;
#X obj 479 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 544 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 549 263 pd gemwin;
#X msg 549 244 create;
#X text 545 223 Create window:;
#X text 485 29 Example:;
#X obj 7 65 cnv 15 450 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 156 cnv 15 450 50 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 155 Arguments:;
#X text 27 261 Inlet 2: float: size;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 287 Outlets:;
#X text 21 300 Outlet 1: gemlist;
#X obj 546 130 cnv 15 100 80 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 485 65 draw line;
#X msg 485 86 draw fill;
#X msg 485 108 draw point;
#X obj 553 54 gemhead;
#X floatatom 575 144 5 0 0 2 size - -;
#X obj 553 79 rotateXYZ 90 0 0;
#X floatatom 598 172 3 0 0 2 segments - -;
#X text 27 272 Inlet 3: int: number of segments;
#X text 33 14 Synopsis: [cylinder];
#X obj 553 189 cylinder;
#X text 7 69 Description: Renders a cylinder.;
#X text 14 86 The cylinder object renders a cylinder at the current
position with current color. The look of the cylinder can be changed
with the draw message \, its size can be changed via the second inlet.
;
#X text 63 167 size of the cylinder \, segments;
#X text 63 182 defaults: 1 \, 10;
#X text 27 247 Inlet 1: message: draw [line|fill|point|default];
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 18 0 27 0;
#X connect 19 0 27 0;
#X connect 20 0 27 0;
#X connect 21 0 23 0;
#X connect 22 0 27 1;
#X connect 23 0 27 0;
#X connect 24 0 27 2;

85
Gem/help/depth-help.pd Normal file
View file

@ -0,0 +1,85 @@
#N canvas 15 24 724 431 10;
#X obj 17 299 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 28 302 Inlets:;
#X text 28 339 Outlets:;
#X obj 17 264 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 26 263 Arguments:;
#X obj 17 69 cnv 15 430 190 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 46 352 Outlet 1: gemlist;
#X text 52 316 Inlet 1: gemlist;
#X text 466 15 GEM object;
#X obj 459 77 cnv 15 250 300 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 463 60 Example:;
#X obj 604 313 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 16 419 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 268 112 destroy;
#X msg 132 112 create \, 1;
#X obj 264 174 gemhead;
#X obj 264 200 world_light;
#X obj 238 68 r \$0-gemwin;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 9 0;
#X connect 10 0 0 0;
#X restore 609 352 pd gemwin;
#X msg 609 333 create;
#X text 605 312 Create window:;
#X obj 460 106 cnv 15 240 90 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 461 84 gemhead 51;
#X obj 461 172 depth;
#X text 60 22 Synopsis: [depth];
#X text 81 41 Class: manips object;
#X text 27 72 Description: Activate / Deactivate depth test;
#X text 26 93 [depth] turns on and off depth test (also known as Z-buffering).
This is very useful if you are in single-buffer mode \, because then
a painting effect can be achieved. In double-buffered mode \, you probably
do not want to turn off the depth test \, unless you have taken control
of the rendering order by setting the priority of each gemhead (see
the gemhead example for explanation).;
#X obj 496 114 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 26 189 By default \, this object will turn OFF depth buffering
for the objects "below".;
#X text 72 274 float (0/1) : depth test on/off;
#X text 52 329 Inlet 1: float (0/1) : depth test on/off;
#X obj 461 293 cube;
#X obj 461 260 rotateXYZ 0 30 30;
#X floatatom 560 239 5 0 0 0 - - -;
#X floatatom 494 202 5 0 0 0 - - -;
#X floatatom 527 218 5 0 0 0 - - -;
#X obj 607 210 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 607 229 lighting \$1;
#X obj 607 252 s \$0-gemwin;
#X text 630 210 lighting;
#X text 516 113 turn depth test on/off;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 16 0 17 0;
#X connect 17 0 27 0;
#X connect 22 0 17 0;
#X connect 27 0 26 0;
#X connect 28 0 27 3;
#X connect 29 0 27 1;
#X connect 30 0 27 2;
#X connect 31 0 32 0;
#X connect 32 0 33 0;

68
Gem/help/diffuse-help.pd Normal file
View file

@ -0,0 +1,68 @@
#N canvas 61 22 630 385 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 180 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 34 198 Inlets:;
#X text 58 211 Inlet 1: gemlist;
#X text 34 252 Outlets:;
#X text 52 265 Outlet 1: gemlist;
#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, lighting 1 \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X obj 451 193 cube;
#X obj 500 192 gemhead;
#X obj 500 230 world_light;
#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.;
#X msg 478 130 0.4 0.8 1;
#X text 58 229 Inlet 2: list: 3(RGB) or 4(RGBA) float values;
#X text 50 12 Synopsis: [diffuse];
#X text 29 77 Description: diffuse colouring;
#X text 61 170 defaults: 0.8 0.8 0.8 1;
#X text 22 91 [diffuse] accepts a gemList and sets the diffuse-color
for all subsequent vertex-operations. You have to enable lighting to
see any effects.;
#X floatatom 561 190 5 0 0 0 - - -;
#X obj 500 211 rotate 66 1 0 0;
#X obj 451 156 diffuse 0 1 0;
#X obj 451 355 diffuseRGB;
#X text 448 332 see also:;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 17 0 30 0;
#X connect 19 0 29 0;
#X connect 22 0 30 1;
#X connect 28 0 29 1;
#X connect 29 0 20 0;
#X connect 30 0 18 0;

View file

@ -0,0 +1,75 @@
#N canvas 61 22 632 388 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 180 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 63 211 Inlet 1: gemlist;
#X text 39 292 Outlets:;
#X text 57 305 Outlet 1: gemlist;
#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, lighting 1 \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X obj 451 193 cube;
#X obj 500 192 gemhead;
#X obj 500 230 world_light;
#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.;
#X text 63 229 Inlet 2: float: red value;
#X text 63 244 Inlet 3: float: green value;
#X text 63 259 Inlet 4: float: blue value;
#X text 63 274 Inlet 5: float: alpha value;
#X floatatom 477 122 3 0 1 0 - - -;
#X floatatom 504 122 3 0 1 0 - - -;
#X floatatom 531 122 3 0 1 0 - - -;
#X floatatom 558 122 3 0 1 0 - - -;
#X text 50 12 Synopsis: [diffuseRGB];
#X text 29 77 Description: diffuse colouring;
#X text 22 91 [diffuseRGB] accepts a gemList and sets the diffuse-color
for all subsequent vertex-operations. You have to enable lighting to
see any effects.;
#X obj 451 156 diffuseRGB 0 1 0;
#X text 60 171 defaults: 0.8 0.8 0.8 1;
#X obj 500 211 rotate 63 1 0 0;
#X text 447 331 see also:;
#X obj 449 353 diffuse;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 17 0 33 0;
#X connect 19 0 35 0;
#X connect 26 0 33 1;
#X connect 27 0 33 2;
#X connect 28 0 33 3;
#X connect 29 0 33 4;
#X connect 33 0 18 0;
#X connect 35 0 20 0;

72
Gem/help/disk-help.pd Normal file
View file

@ -0,0 +1,72 @@
#N canvas 291 154 710 345 10;
#X text 54 30 Class: geometric object;
#X obj 479 47 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 544 224 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 549 263 pd gemwin;
#X msg 549 244 create;
#X text 545 223 Create window:;
#X text 485 29 Example:;
#X obj 7 65 cnv 15 450 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 166 cnv 15 450 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 165 Arguments:;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 307 Outlets:;
#X text 21 320 Outlet 1: gemlist;
#X obj 481 81 cnv 15 160 140 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 485 95 draw line;
#X msg 485 116 draw fill;
#X msg 485 138 draw point;
#X obj 553 54 gemhead;
#X floatatom 564 102 5 0 0 1 R - -;
#X floatatom 576 122 3 0 0 1 segments - -;
#X floatatom 589 147 5 0 0 1 r - -;
#X text 27 261 Inlet 2: float: size (= outer radius);
#X text 33 14 Synopsis: [disk];
#X text 7 69 Description: Renders a disk.;
#X text 14 86 The disk object renders a flat disk with a hole in the
middle at the current position with current color. The look of the
disk can be changed with the draw message \, its size can be changed
via the second inlet \, the size of the hole via the third inlet.;
#X text 26 286 Inlet 4: float: inner radius (default: 0);
#X obj 553 199 disk 1;
#X text 27 273 Inlet 3: int: number of segments (default: 10);
#X text 28 177 disk size(=outer radius) \, segments \, hole size(=inner
radius);
#X text 29 191 defaults: 1 \, 10 \, 0;
#X text 27 247 Inlet 1: message: draw [line|fill|point|default];
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 17 0 29 0;
#X connect 18 0 29 0;
#X connect 19 0 29 0;
#X connect 20 0 29 0;
#X connect 21 0 29 1;
#X connect 22 0 29 2;
#X connect 23 0 29 3;

66
Gem/help/emission-help.pd Normal file
View file

@ -0,0 +1,66 @@
#N canvas 61 22 639 342 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 63 211 Inlet 1: gemlist;
#X text 39 252 Outlets:;
#X text 57 265 Outlet 1: gemlist;
#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 200 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 510 209 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, lighting 1 \, create \, 1;
#X msg 277 206 lighting \$1;
#X obj 313 182 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 8 0;
#X restore 515 248 pd gemwin;
#X msg 515 229 create;
#X text 511 208 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X obj 451 193 cube;
#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.;
#X msg 478 130 0.4 0.8 1;
#X text 63 229 Inlet 2: list: 3(RGB) or 4(RGBA) float values;
#X text 60 171 defaults: 0 0 0 1;
#X text 50 12 Synopsis: [emission];
#X obj 451 156 emission 0 1 0;
#X text 29 77 Description: emission colouring;
#X text 21 91 [emission] accepts a gemList and sets the emission-color
for all subsequent vertex-operations. You have to enable lighting to
see any effects.;
#X text 448 285 see also:;
#X obj 450 308 emissionRGB;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 17 0 24 0;
#X connect 20 0 24 1;
#X connect 24 0 18 0;

View file

@ -0,0 +1,70 @@
#N canvas 61 22 639 342 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 63 211 Inlet 1: gemlist;
#X text 39 292 Outlets:;
#X text 57 305 Outlet 1: gemlist;
#X obj 8 146 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 145 Arguments:;
#X obj 8 76 cnv 15 430 60 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 200 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 509 208 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, lighting 1 \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 514 247 pd gemwin;
#X msg 514 228 create;
#X text 510 207 Create window:;
#X text 71 31 Class: manipulation object;
#X obj 450 118 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X obj 451 193 cube;
#X text 62 156 a list of 3 (RGB) or 4 (RGBA) float-values.;
#X text 63 229 Inlet 2: float: red value;
#X text 63 244 Inlet 3: float: green value;
#X text 63 259 Inlet 4: float: blue value;
#X text 63 274 Inlet 5: float: alpha value;
#X floatatom 479 122 3 0 1 0 - - -;
#X floatatom 508 122 3 0 1 0 - - -;
#X floatatom 536 122 3 0 1 0 - - -;
#X floatatom 565 122 3 0 1 0 - - -;
#X obj 451 156 emissionRGB 0 1 0;
#X text 60 171 defaults: 0 0 0 1;
#X text 29 77 Description: emission colouring;
#X text 50 12 Synopsis: [emissionRGB];
#X text 22 91 [emissionRGB] accepts a gemList and sets the emission-color
for all subsequent vertex-operations. You have to enable lighting to
see any effects.;
#X text 449 284 see also:;
#X obj 451 307 emission;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 17 0 28 0;
#X connect 24 0 28 1;
#X connect 25 0 28 2;
#X connect 26 0 28 3;
#X connect 27 0 28 4;
#X connect 28 0 18 0;

View file

@ -0,0 +1,86 @@
#N canvas 35 199 694 458 10;
#X text 452 8 GEM object;
#X obj 8 335 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 11 334 Inlets:;
#X text 10 386 Outlets:;
#X obj 8 296 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 295 Arguments:;
#X obj 7 76 cnv 15 430 210 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 444 77 cnv 15 200 230 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 474 334 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 479 373 pd gemwin;
#X msg 479 354 create;
#X text 475 333 Create window:;
#X obj 450 178 cnv 15 190 70 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X text 63 306 <none>;
#X text 28 399 Outlet 1: gemlist;
#X text 35 346 Inlet 1: gemlist;
#X obj 10 211 cnv 15 420 70 empty empty empty 20 12 0 14 -225280 -66577
0;
#X text 71 31 Class: shader object;
#X obj 516 184 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 open 0;
#X obj 75 103 openpanel;
#X obj 75 173 outlet;
#X obj 75 127 t b s;
#X msg 105 152 set open \$1;
#X obj 75 80 inlet;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 2 1 3 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X restore 459 183 pd open;
#X text 14 219 IMPORTANT NOTE: your openGL-implementation (gfx-card
driver \, ...) has to support either (or both) the ARB shader extensions
or the NV shader extensions in order to make use of this object.;
#X text 10 176 Of course \, you also have to supply anything else needed
for the shader to work (like textures \, ...);
#X obj 451 266 teapot;
#X msg 459 203 open examples/data/random.fp;
#X text 50 12 Synopsis: [fragment_program];
#X text 12 76 Description: load and apply an ARB fragment shader;
#X text 24 95 [fragment_program] loads and applies an ARB (or NV) fragment
shader.;
#X text 11 123 If you want to modify the parameters of the shader-program
\, you have to set the modification up yourself \, via [GEMglProgramEnvParameter*]
working on GL_FRAGMENT_PROGRAM_ARB.;
#X text 35 358 Inlet 1: messsage: open <filename> : fragment shader
program to load;
#X text 443 406 see also;
#X obj 508 406 vertex_program;
#X obj 451 226 fragment_program random.fp;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 33 0;
#X connect 20 0 21 0;
#X connect 21 0 25 0;
#X connect 25 0 33 0;
#X connect 33 0 24 0;

View file

@ -0,0 +1,236 @@
#N canvas 131 3 893 604 10;
#X obj 465 9 cnv 15 420 570 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 472 293 cnv 15 300 60 empty empty empty 20 12 0 14 -191407 -66577
0;
#X obj 474 18 cnv 15 400 250 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 477 41 gemhead 20;
#X obj 664 306 gemhead;
#X msg 615 106 dimen 320 240;
#X obj 477 468 rotateXYZ;
#X floatatom 794 427 5 0 0 0 - - -;
#X msg 762 114 color 0 0 1 0;
#X msg 602 87 dimen 1024 1024;
#X msg 751 74 color 0 0 0 0;
#X obj 477 422 t a b;
#X floatatom 717 469 5 0 0 0 - - -;
#X msg 549 232 rectangle \$1;
#X obj 549 214 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 509 101 type FLOAT;
#X obj 664 274 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 477 382 translateXYZ 0 0 -4;
#X obj 477 298 gemframebuffer;
#X obj 664 331 pix_texture;
#X obj 664 358 t a b;
#X msg 531 187 texunit \$1;
#X msg 495 62 type BYTE;
#X msg 503 82 type INT;
#X msg 658 179 format YUV;
#X msg 649 158 format RGB;
#X msg 668 200 format RGBA;
#X msg 680 220 format RGB32;
#X obj 664 487 square 2;
#X obj 664 449 rotateXYZ -40 0 200;
#X floatatom 707 429 5 0 0 0 - - -;
#X obj 477 487 pqtorusknots;
#N canvas 0 22 450 300 rotation 0;
#X obj 33 19 inlet;
#X obj 33 110 % 360;
#X obj 33 62 i;
#X obj 33 88 + 5;
#X obj 33 136 outlet;
#X obj 84 111 % 360;
#X obj 84 63 i;
#X obj 84 137 outlet;
#X obj 134 112 % 360;
#X obj 134 64 i;
#X obj 134 138 outlet;
#X obj 84 89 + 3;
#X obj 134 90 + 7;
#X connect 0 0 2 0;
#X connect 0 0 6 0;
#X connect 0 0 9 0;
#X connect 1 0 2 1;
#X connect 1 0 4 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 5 0 6 1;
#X connect 5 0 7 0;
#X connect 6 0 11 0;
#X connect 8 0 9 1;
#X connect 8 0 10 0;
#X connect 9 0 12 0;
#X connect 11 0 5 0;
#X connect 12 0 8 0;
#X restore 509 443 pd rotation;
#X floatatom 531 167 5 0 0 0 - - -;
#N canvas 125 20 450 300 rotation 0;
#X obj 112 29 inlet;
#X obj 112 105 % 360;
#X obj 112 57 i;
#X obj 112 131 outlet;
#X obj 112 83 + 1;
#X connect 0 0 2 0;
#X connect 1 0 2 1;
#X connect 1 0 3 0;
#X connect 2 0 4 0;
#X connect 4 0 1 0;
#X restore 794 402 pd rotation;
#X obj 762 93 loadbang;
#X obj 477 402 color 1 0 0;
#X obj 649 245 t a;
#X obj 585 124 t a;
#X obj 751 135 t a;
#X obj 495 130 t a;
#X floatatom 563 361 5 0 0 0 - - -;
#X floatatom 607 362 5 0 0 0 - - -;
#X floatatom 520 361 5 0 0 0 - - -;
#X obj 495 154 t a;
#X obj 470 514 cnv 15 410 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#X msg 757 544 color 0 0 0 0;
#X msg 746 522 color 0 1 1 0;
#X msg 637 525 lighting \$1;
#X obj 615 526 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#N canvas 0 22 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X msg 67 70 set destroy;
#X msg 142 68 set create;
#X msg 198 112 destroy;
#X msg 132 112 create \, 1;
#X obj 67 40 route create destroy;
#X obj 20 217 gemhead 1;
#X obj 20 237 world_light;
#X connect 2 0 7 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 0 0;
#X connect 6 0 0 0;
#X connect 7 0 3 0;
#X connect 7 0 6 0;
#X connect 7 1 4 0;
#X connect 7 1 5 0;
#X connect 7 2 0 0;
#X connect 8 0 9 0;
#X restore 473 554 pd gemwin;
#X msg 473 529 destroy;
#X text 471 513 Create window:;
#X obj 637 552 t a;
#X text 476 22 Example:;
#X text 379 -10 GEM object;
#X obj 7 41 cnv 15 450 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 7 208 cnv 15 450 370 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 10 214 Inlets:;
#X obj 7 175 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 14 174 Arguments:;
#X text 28 233 Inlet 1: gemlist;
#X text 15 523 Outlets:;
#X text 31 539 Outlet 1: gemlist;
#X text 60 187 <none>;
#X text 102 -1 Synopsis: [gemframebuffer];
#X text 122 15 Class: framebuffer object;
#X text 12 50 Description: Renders a scenne in a texture \, for later
use.;
#X text 12 68 this example renders a scene (pqtorusknots) into a framebuffer
\, which is then used as a texture onto a square.;
#X text 13 98 you need framebuffer support (and its driver) on your
gfx-card;
#X text 28 247 Inlet 1: message: type [BYTE | INT | FLOAT];
#X text 27 315 Inlet 1: message: dimen <x> <y>;
#X text 27 349 Inlet 1: message: color <r> <g> <b> <a>;
#X text 26 430 Inlet 1: message: texunit <f>;
#X text 27 280 Inlet 1: message: format [RGB|RGBA|RGB32|YUV];
#X text 26 385 Inlet 1: message: rectangle [0|1];
#X text 103 262 (type of the framebuffer data);
#X text 102 330 (dimension of the framebuffer texture);
#X text 106 465 (usefull only with shader);
#X text 106 448 (change texunit of the texture);
#X text 31 557 Outlet 2: texture Id;
#X text 104 402 (texturing mode \; rectangle (1) or normalized (0))
;
#X text 100 296 (color format of the framebuffer);
#X text 102 365 (background color of the framebuffer);
#X obj 556 41 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X floatatom 493 323 5 0 0 0 - - -;
#X obj 477 342 scaleXYZ;
#X floatatom 563 326 5 0 0 0 - - -;
#X floatatom 528 325 5 0 0 0 - - -;
#X msg 585 30 perspec -1 1 -1 1 1 20;
#X msg 593 56 perspec -1 1 -1 1 3 75;
#X text 98 497 (frustum of the framebuffer);
#X text 752 29 default;
#X text 11 130 NOTE: the default view-point of [gemframebuffer] is
at the origin 0/0/0 \, unlike [gemwin] where it is at 0/0/4. You might
want to manually insert a [translateXYZ 0 0 -4].;
#X text 23 482 Inlet 1: message: perspec <left><right><bottom><top><near>
;
#X text 428 482 <far>;
#X connect 3 0 18 0;
#X connect 4 0 19 0;
#X connect 5 0 38 0;
#X connect 6 0 31 0;
#X connect 7 0 29 3;
#X connect 8 0 39 0;
#X connect 9 0 38 0;
#X connect 10 0 39 0;
#X connect 11 0 6 0;
#X connect 11 1 32 0;
#X connect 12 0 28 1;
#X connect 13 0 18 0;
#X connect 14 0 13 0;
#X connect 15 0 40 0;
#X connect 16 0 4 0;
#X connect 17 0 36 0;
#X connect 18 0 86 0;
#X connect 18 1 19 1;
#X connect 19 0 20 0;
#X connect 20 0 29 0;
#X connect 20 1 34 0;
#X connect 21 0 18 0;
#X connect 22 0 40 0;
#X connect 23 0 40 0;
#X connect 24 0 37 0;
#X connect 25 0 37 0;
#X connect 26 0 37 0;
#X connect 27 0 37 0;
#X connect 29 0 28 0;
#X connect 30 0 29 1;
#X connect 32 0 6 1;
#X connect 32 1 6 2;
#X connect 32 2 6 3;
#X connect 33 0 21 0;
#X connect 34 0 7 0;
#X connect 35 0 8 0;
#X connect 36 0 11 0;
#X connect 37 0 18 0;
#X connect 38 0 44 0;
#X connect 39 0 44 0;
#X connect 40 0 44 0;
#X connect 41 0 17 2;
#X connect 42 0 17 3;
#X connect 43 0 17 1;
#X connect 44 0 18 0;
#X connect 46 0 53 0;
#X connect 47 0 53 0;
#X connect 48 0 53 0;
#X connect 49 0 48 0;
#X connect 50 0 51 0;
#X connect 51 0 50 0;
#X connect 53 0 50 0;
#X connect 84 0 3 0;
#X connect 85 0 86 1;
#X connect 86 0 17 0;
#X connect 87 0 86 3;
#X connect 88 0 86 2;
#X connect 89 0 38 0;
#X connect 90 0 38 0;

116
Gem/help/gemhead-help.pd Normal file
View file

@ -0,0 +1,116 @@
#N canvas 32 22 937 572 10;
#X text 452 8 GEM object;
#X obj 8 438 cnv 15 430 130 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 18 440 Inlets:;
#X text 18 518 Outlets:;
#X text 36 531 Outlet 1: gemlist;
#X obj 8 393 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 398 Arguments:;
#X obj 8 76 cnv 15 430 310 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 50 12 Synopsis: [gemhead];
#X text 71 31 Class: control object;
#X text 29 77 Description: start a rendering chain;
#X obj 607 371 cnv 15 140 65 empty empty empty 20 12 0 14 -195568 -66577
0;
#X msg 622 391 create;
#X text 618 370 Create window:;
#N canvas 0 22 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 93 create \, 1 \, frame 2;
#X msg 198 112 destroy \, reset;
#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 restore 622 411 pd gemwin (2fps);
#X text 21 91 [gemhead] connects the gem objects to the window manager.
The start of any gemList begins with the gemhead. Without the gemhead
\, gem objects will not receive the render command.;
#X text 20 366 example: "1" before "50" before "-10" before "-23";
#X text 22 149 Any gem object connected after the gemhead will receive
one render command per frame.;
#X text 20 294 The rendering-order value can also be negative. Negative
numbered [gemhead]s will be rendered AFTER all positive [gemhead]s.
Note \, that Higher values (-3) will be rendered BEFORE lower values
(-10). [gemhead]s with negative numbers will NOT be affected by view-point
changes !!!;
#X text 62 409 float : priority (default : 50);
#X text 42 471 Inlet 1: bang : force rendering now.;
#X text 42 453 Inlet 1: float (1/0): turn rendering on/off (default
1);
#X text 42 490 Inlet 1: set <priority> : change priority value of this
chain.;
#X obj 442 74 cnv 15 160 240 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 451 79 enable/disable rendering;
#X obj 451 123 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 470 240 gemList;
#X obj 470 134 gemhead;
#X msg 470 101 1;
#X msg 506 101 0;
#X obj 470 281 print ENABLE;
#X obj 470 199 square 0.5;
#X obj 606 74 cnv 15 160 240 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 770 74 cnv 15 160 240 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 617 81 force rendering;
#X text 789 79 set rendering order;
#X obj 621 128 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 781 135 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 630 101 bang;
#X msg 791 101 set 45;
#X obj 791 286 print SETTABLE;
#X obj 630 284 print FORCEABLE;
#X msg 630 243 gemList;
#X msg 791 245 gemList;
#X obj 630 202 circle 0.5;
#X obj 791 204 triangle 0.5;
#X obj 791 144 gemhead 105;
#X text 21 188 All chain will be rendered one after the other. You
can control precisely the rendering order by giving [gemhead] a priority
value (argument or message). The default value is 50 The lower the
value is \, the sooner the gemhead will receive the rendering command
(a value of 1 is the lowest possible value). This value is important
when you are doing alpha blending and for certain objects (such as
light).;
#X obj 470 178 translateXYZ -2 0 0;
#X msg 854 101 set 105;
#X obj 630 181 translateXYZ 0 2 0;
#X obj 630 138 gemhead 50;
#X obj 791 183 translateXYZ 2 0 0;
#X connect 12 0 14 0;
#X connect 14 0 12 0;
#X connect 26 0 30 0;
#X connect 27 0 48 0;
#X connect 28 0 27 0;
#X connect 29 0 27 0;
#X connect 31 0 26 0;
#X connect 38 0 51 0;
#X connect 39 0 46 0;
#X connect 42 0 41 0;
#X connect 43 0 40 0;
#X connect 44 0 42 0;
#X connect 45 0 43 0;
#X connect 46 0 52 0;
#X connect 48 0 31 0;
#X connect 49 0 46 0;
#X connect 50 0 44 0;
#X connect 51 0 50 0;
#X connect 52 0 45 0;

View file

@ -0,0 +1,62 @@
#N canvas 64 27 679 445 10;
#X obj 27 85 cnv 15 450 170 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 28 303 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 29 308 Inlets:;
#X obj 28 265 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 37 264 Arguments:;
#X text 472 28 GEM object;
#X text 29 337 Outlets:;
#X text 495 49 Example:;
#X text 74 50 Class: control object;
#X obj 486 84 cnv 15 170 180 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 495 101 cnv 15 150 80 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 546 194 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 551 233 pd gemwin;
#X msg 551 214 create;
#X text 547 193 Create window:;
#X text 53 34 Synopsis: [gemkeyboard];
#X text 27 89 Description: output keyboard events in the GEM window
;
#X text 36 106 [gemkeyboard] sends out keyboard events which occur
in the GEM window. Such event will appear on KEY_DOWN and will give
the KeyCode of the button.;
#X text 34 181 Furthermore \, i would like to make this object really
cross-platform one day. Thus the KeyCode might change on one system
or another in future times.;
#X text 34 228 USE AT YOUR OWN RISK !!!;
#X text 35 148 It is not guaranteed \, that Windows / Linux / OSX versions
will give the same KeyCode for the same key pressed !!!;
#X text 83 275 none;
#X text 47 320 Inlet 1: non - used;
#X text 41 350 Outlet 1: keyCode;
#X obj 508 115 gemkeyboard;
#X floatatom 508 153 5 0 0 1 keyCode - -;
#X text 488 274 see also:;
#X obj 489 299 gemkeyname;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 24 0 25 0;

View file

@ -0,0 +1,68 @@
#N canvas 64 27 679 445 10;
#X obj 27 85 cnv 15 450 200 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 27 325 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 35 332 Inlets:;
#X obj 27 290 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 36 291 Arguments:;
#X text 472 28 GEM object;
#X text 35 361 Outlets:;
#X text 495 49 Example:;
#X text 74 50 Class: control object;
#X obj 486 84 cnv 15 170 180 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 495 101 cnv 15 150 80 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 546 194 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 551 233 pd gemwin;
#X msg 551 214 create;
#X text 547 193 Create window:;
#X text 38 89 Description: output keyboard events in the GEM window
;
#X text 37 265 USE AT YOUR OWN RISK !!!;
#X text 82 302 none;
#X text 53 344 Inlet 1: non - used;
#X text 488 274 see also:;
#X text 53 34 Synopsis: [gemkeyname];
#X text 36 108 [gemkeyname] sends out keyboard events which occur in
the GEM window. Such event will give a symbolic description of the
button. The "state"-outlet will be 1 for KEY_DOWN and 0 for KEY_UP.
;
#X text 37 219 Furthermore \, i would like to make this object really
cross-platform one day. Thus the KeyName might change on one system
or another in future times.;
#X text 37 161 It is not guaranteed \, that Windows / Linux / OSX versions
will give the same description for the same key pressed !!! Also \,
there is no guarantee \, that the pd-object [keyname] will return the
same symbols as [gemkeyname];
#X text 53 376 Outlet 1: state;
#X text 53 390 Outlet 2: keyName;
#X obj 489 299 gemkeyboard;
#X floatatom 508 160 2 0 0 1 state - -;
#X symbolatom 565 134 10 0 0 0 keyName - -;
#X obj 508 115 gemkeyname;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 29 0 27 0;
#X connect 29 1 28 0;

73
Gem/help/gemlist-help.pd Normal file
View file

@ -0,0 +1,73 @@
#N canvas 443 181 661 405 10;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 280 Outlets:;
#X text 21 293 Outlet 1: gemlist;
#X text 63 186 none;
#X text 475 29 Example:;
#X text 33 14 Synopsis: [gemlist];
#X text 54 30 Class: control object;
#X text 27 247 Inlet 1: bang;
#X text 27 261 Inlet 2: gemlist;
#X text 7 69 Description: Store a gemlist;
#X text 16 86 The gemlist object stores a gemlist \, which may de output
by sending it a "bang" message.;
#X obj 467 47 cnv 15 170 340 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 475 81 cnv 15 150 130 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 528 320 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 533 359 pd gemwin;
#X msg 533 340 create;
#X text 529 319 Create window:;
#X obj 498 59 gemhead;
#X obj 484 190 gemlist;
#X obj 484 169 until;
#X obj 484 288 scaleXYZ 0.9 0.9 0.9;
#X obj 484 243 translateXYZ 0.5 0 0;
#X msg 484 149 30;
#X obj 484 265 rotateXYZ 0 0 30;
#X obj 484 221 circle 0.3 33;
#X obj 498 107 route gem_state;
#X obj 498 127 route float;
#X obj 498 86 t a a;
#X connect 20 0 21 0;
#X connect 21 0 20 0;
#X connect 23 0 33 0;
#X connect 24 0 30 0;
#X connect 25 0 24 0;
#X connect 27 0 29 0;
#X connect 28 0 25 0;
#X connect 29 0 26 0;
#X connect 30 0 27 0;
#X connect 31 0 32 0;
#X connect 32 1 28 0;
#X connect 33 0 31 0;
#X connect 33 1 24 1;

View file

@ -0,0 +1,297 @@
#N canvas 594 117 688 676 10;
#X text 452 8 GEM object;
#X obj 8 206 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 218 Inlets:;
#X text 63 231 Inlet 1: gemlist;
#X text 38 240 Outlets:;
#X text 62 253 Outlet 1: gemlist;
#X obj 8 156 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 155 Arguments:;
#X obj 8 76 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 453 60 Example:;
#X obj 9 415 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 454 304 gemwin 0;
#X obj 132 160 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 198 133 destroy;
#X obj 288 57 world_light;
#X obj 288 28 gemhead;
#X msg 132 112 create \, 1 \, lighting 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 9 0;
#X connect 3 1 5 0;
#X connect 3 1 6 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 8 0 7 0;
#X connect 9 0 0 0;
#X restore 14 454 pd gemwin;
#X msg 14 435 create;
#X text 10 414 Create window:;
#X text 50 12 Synopsis: [gemlist_info];
#X text 71 31 Class: information object;
#X text 29 77 Description: get curent transformation of a gemlist;
#X text 42 94 [gemlist_info] accepts a gemList decompost the transformation
matrix in basic transformation (translation \, scale \, shear \, rotation)
;
#X text 60 174 no argument;
#X text 62 299 Outlet 5: 3 float list : translationX \, Y and Z;
#X text 62 265 Outlet 2: 3 float list : RotationX \, Y and Z;
#X text 62 277 Outlet 3: 3 float list : shear YX \, YZ and ZX;
#X text 62 288 Outlet 4: 3 float list : scale X \, Y and Z;
#X obj 9 336 cnv 15 430 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 452 890 more 0;
#X obj 30 122 gemhead;
#X floatatom 44 144 5 0 0 0 - - -;
#X floatatom 78 144 5 0 0 0 - - -;
#X floatatom 112 144 5 0 0 0 - - -;
#X floatatom 46 184 5 0 0 0 - - -;
#X floatatom 80 184 5 0 0 0 - - -;
#X floatatom 114 184 5 0 0 0 - - -;
#X floatatom 52 227 5 0 0 0 - - -;
#X floatatom 86 227 5 0 0 0 - - -;
#X floatatom 120 227 5 0 0 0 - - -;
#X obj 30 433 gemlist_info;
#X obj 192 568 unpack f f f;
#X obj 178 396 gemhead;
#X obj 178 536 translateXYZ;
#X floatatom 192 591 5 0 0 0 - - -;
#X floatatom 225 591 5 0 0 0 - - -;
#X floatatom 259 591 5 0 0 0 - - -;
#X floatatom 193 761 5 0 0 0 - - -;
#X floatatom 226 761 5 0 0 0 - - -;
#X floatatom 260 761 5 0 0 0 - - -;
#X floatatom 200 516 5 0 0 0 - - -;
#X floatatom 233 516 5 0 0 0 - - -;
#X floatatom 267 516 5 0 0 0 - - -;
#X obj 193 734 unpack f f f;
#X obj 200 490 unpack f f f;
#X obj 178 421 GEMglLoadIdentity;
#X obj 178 450 color 1 0 0;
#X floatatom 46 336 5 0 0 0 - - -;
#X floatatom 80 336 5 0 0 0 - - -;
#X floatatom 114 336 5 0 0 0 - - -;
#X floatatom 52 379 5 0 0 0 - - -;
#X floatatom 86 379 5 0 0 0 - - -;
#X floatatom 120 379 5 0 0 0 - - -;
#X obj 30 163 scaleXYZ 1 1 1;
#X obj 30 205 rotateXYZ 0 0 0;
#X obj 30 247 translateXYZ 0 0 0;
#X obj 30 357 rotateXYZ 0 0 0;
#X obj 30 399 translateXYZ 0 0 0;
#X floatatom 44 283 5 0 0 0 - - -;
#X floatatom 78 283 5 0 0 0 - - -;
#X floatatom 112 283 5 0 0 0 - - -;
#X obj 30 302 scaleXYZ 1 1 1;
#X obj 30 512 cube;
#X obj 30 484 scaleXYZ 1 1 0.2;
#X floatatom 192 665 8 0 0 0 - - -;
#X floatatom 225 681 8 0 0 0 - - -;
#X floatatom 259 697 8 0 0 0 - - -;
#X obj 192 643 unpack f f f;
#N canvas 296 410 419 328 shear 0;
#X obj 28 17 inlet;
#X obj 28 270 outlet;
#X obj 108 21 inlet;
#X obj 205 20 inlet;
#X obj 297 18 inlet;
#X text 117 38 ShearXY;
#X text 217 37 ShearXZ;
#X text 306 36 ShearYZ;
#X obj 28 104 shearYX;
#X obj 28 153 shearZX;
#X obj 28 212 shearZY;
#X connect 0 0 8 0;
#X connect 2 0 8 1;
#X connect 3 0 9 1;
#X connect 4 0 10 1;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 1 0;
#X restore 178 711 pd shear;
#X obj 178 811 cube 0.5;
#X obj 178 80 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 178 785 rotateXYZ;
#X obj 178 610 scaleXYZ;
#X obj 178 30 loadbang;
#X msg 178 55 0;
#X text 50 844 this show the transformation neaded to create a specific
transformation matrix decomposed with gemlist_info;
#X connect 0 0 33 0;
#X connect 1 0 33 1;
#X connect 2 0 33 2;
#X connect 3 0 33 3;
#X connect 4 0 34 1;
#X connect 5 0 34 2;
#X connect 6 0 34 3;
#X connect 7 0 35 1;
#X connect 8 0 35 2;
#X connect 9 0 35 3;
#X connect 10 0 43 0;
#X connect 10 1 23 0;
#X connect 10 2 47 0;
#X connect 10 3 11 0;
#X connect 10 4 24 0;
#X connect 11 0 14 0;
#X connect 11 1 15 0;
#X connect 11 2 16 0;
#X connect 12 0 25 0;
#X connect 13 0 52 0;
#X connect 14 0 52 1;
#X connect 15 0 52 2;
#X connect 16 0 52 3;
#X connect 17 0 51 1;
#X connect 18 0 51 2;
#X connect 19 0 51 3;
#X connect 20 0 13 1;
#X connect 21 0 13 2;
#X connect 22 0 13 3;
#X connect 23 0 17 0;
#X connect 23 1 18 0;
#X connect 23 2 19 0;
#X connect 24 0 20 0;
#X connect 24 1 21 0;
#X connect 24 2 22 0;
#X connect 25 0 26 0;
#X connect 26 0 13 0;
#X connect 27 0 36 1;
#X connect 28 0 36 2;
#X connect 29 0 36 3;
#X connect 30 0 37 1;
#X connect 31 0 37 2;
#X connect 32 0 37 3;
#X connect 33 0 34 0;
#X connect 34 0 35 0;
#X connect 35 0 41 0;
#X connect 36 0 37 0;
#X connect 37 0 10 0;
#X connect 38 0 41 1;
#X connect 39 0 41 2;
#X connect 40 0 41 3;
#X connect 41 0 36 0;
#X connect 43 0 42 0;
#X connect 44 0 48 1;
#X connect 45 0 48 2;
#X connect 46 0 48 3;
#X connect 47 0 44 0;
#X connect 47 1 45 0;
#X connect 47 2 46 0;
#X connect 48 0 51 0;
#X connect 50 0 0 0;
#X connect 50 0 12 0;
#X connect 51 0 49 0;
#X connect 52 0 48 0;
#X connect 53 0 54 0;
#X connect 54 0 50 0;
#X restore 15 349 pd more;
#X obj 449 77 cnv 15 200 570 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 459 310 cnv 15 180 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 472 89 gemhead;
#X floatatom 494 121 5 0 0 0 - - -;
#X floatatom 528 121 5 0 0 0 - - -;
#X floatatom 562 121 5 0 0 0 - - -;
#X floatatom 488 264 5 0 0 0 - - -;
#X floatatom 522 264 5 0 0 0 - - -;
#X floatatom 556 264 5 0 0 0 - - -;
#X floatatom 486 170 5 0 0 0 - - -;
#X floatatom 520 170 5 0 0 0 - - -;
#X floatatom 554 170 5 0 0 0 - - -;
#X obj 472 320 gemlist_info;
#X obj 488 596 unpack f f f;
#X floatatom 488 619 5 0 0 0 - - -;
#X floatatom 521 619 5 0 0 0 - - -;
#X floatatom 555 619 5 0 0 0 - - -;
#X floatatom 522 470 5 0 0 0 - - -;
#X floatatom 555 470 5 0 0 0 - - -;
#X floatatom 589 470 5 0 0 0 - - -;
#X floatatom 539 394 5 0 0 0 - - -;
#X floatatom 572 394 5 0 0 0 - - -;
#X floatatom 606 394 5 0 0 0 - - -;
#X obj 522 444 unpack f f f;
#X obj 539 371 unpack f f f;
#X text 547 356 position;
#X text 533 428 size;
#X obj 505 520 unpack f f f;
#N canvas 437 191 389 322 shear 0;
#X obj 37 27 inlet;
#X obj 37 280 outlet;
#X obj 118 31 inlet;
#X obj 215 30 inlet;
#X obj 307 28 inlet;
#X text 127 48 ShearXY;
#X text 227 47 ShearXZ;
#X text 316 46 ShearYZ;
#X obj 37 114 shearXY;
#X obj 37 163 shearXZ;
#X obj 37 222 shearYZ;
#X connect 0 0 8 0;
#X connect 2 0 8 1;
#X connect 3 0 9 1;
#X connect 4 0 10 1;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 1 0;
#X restore 472 237 pd shear;
#X obj 472 285 rotateXYZ;
#X obj 472 189 scaleXYZ;
#X obj 472 144 translateXYZ;
#X floatatom 486 216 5 0 0 0 - - -;
#X floatatom 520 216 5 0 0 0 - - -;
#X floatatom 554 216 5 0 0 0 - - -;
#X floatatom 505 545 5 0 0 0 - - -;
#X floatatom 538 545 5 0 0 0 - - -;
#X floatatom 572 545 5 0 0 0 - - -;
#X text 498 580 orientation;
#X text 514 504 shear (YX \, ZX \, ZY);
#X text 76 349 <- more about gemlist_info;
#X text 18 375 see also :;
#X obj 100 375 gemlist_matrix;
#X connect 11 0 12 0;
#X connect 12 0 11 0;
#X connect 27 0 56 0;
#X connect 28 0 56 1;
#X connect 29 0 56 2;
#X connect 30 0 56 3;
#X connect 31 0 54 1;
#X connect 32 0 54 2;
#X connect 33 0 54 3;
#X connect 34 0 55 1;
#X connect 35 0 55 2;
#X connect 36 0 55 3;
#X connect 37 1 38 0;
#X connect 37 2 52 0;
#X connect 37 3 48 0;
#X connect 37 4 49 0;
#X connect 38 0 39 0;
#X connect 38 1 40 0;
#X connect 38 2 41 0;
#X connect 48 0 42 0;
#X connect 48 1 43 0;
#X connect 48 2 44 0;
#X connect 49 0 45 0;
#X connect 49 1 46 0;
#X connect 49 2 47 0;
#X connect 52 0 60 0;
#X connect 52 1 61 0;
#X connect 52 2 62 0;
#X connect 53 0 54 0;
#X connect 54 0 37 0;
#X connect 55 0 53 0;
#X connect 56 0 55 0;
#X connect 57 0 53 1;
#X connect 58 0 53 2;
#X connect 59 0 53 3;

View file

@ -0,0 +1,120 @@
#N canvas 594 117 675 520 10;
#X text 452 8 GEM object;
#X obj 8 206 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 218 Inlets:;
#X text 63 231 Inlet 1: gemlist;
#X text 38 240 Outlets:;
#X text 62 253 Outlet 1: gemlist;
#X obj 8 156 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 155 Arguments:;
#X obj 8 76 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 453 60 Example:;
#X obj 9 385 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 454 304 gemwin 0;
#X obj 132 160 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 198 133 destroy;
#X obj 288 57 world_light;
#X obj 288 28 gemhead;
#X msg 132 112 create \, 1 \, lighting 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 9 0;
#X connect 3 1 5 0;
#X connect 3 1 6 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 0 0 0;
#X connect 8 0 7 0;
#X connect 9 0 0 0;
#X restore 14 424 pd gemwin;
#X msg 14 405 create;
#X text 10 384 Create window:;
#X text 71 31 Class: information object;
#X text 60 174 no argument;
#X obj 9 336 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X obj 449 77 cnv 15 200 400 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 459 310 cnv 15 180 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 472 89 gemhead;
#X floatatom 494 121 5 0 0 0 - - -;
#X floatatom 528 121 5 0 0 0 - - -;
#X floatatom 562 121 5 0 0 0 - - -;
#X floatatom 488 264 5 0 0 0 - - -;
#X floatatom 522 264 5 0 0 0 - - -;
#X floatatom 556 264 5 0 0 0 - - -;
#X floatatom 486 170 5 0 0 0 - - -;
#X floatatom 520 170 5 0 0 0 - - -;
#X floatatom 554 170 5 0 0 0 - - -;
#N canvas 437 191 753 491 shear 0;
#X obj 25 17 inlet;
#X obj 28 270 outlet;
#X obj 108 21 inlet;
#X obj 205 20 inlet;
#X obj 297 18 inlet;
#X text 117 38 ShearXY;
#X text 217 37 ShearXZ;
#X text 306 36 ShearYZ;
#X obj 27 104 shearXY;
#X obj 26 153 shearXZ;
#X obj 26 212 shearYZ;
#X connect 0 0 8 0;
#X connect 2 0 8 1;
#X connect 3 0 9 1;
#X connect 4 0 10 1;
#X connect 8 0 9 0;
#X connect 9 0 10 0;
#X connect 10 0 1 0;
#X restore 472 237 pd shear;
#X obj 472 285 rotateXYZ;
#X obj 472 189 scaleXYZ;
#X obj 472 144 translateXYZ;
#X floatatom 486 216 5 0 0 0 - - -;
#X floatatom 520 216 5 0 0 0 - - -;
#X floatatom 554 216 5 0 0 0 - - -;
#X obj 101 348 gemlist_info;
#X obj 472 320 gemlist_matrix;
#X text 14 351 see also :;
#X text 29 77 Description: get curent transformation matrix of a gemlist
;
#X msg 496 378 \$1 \$2 \$3;
#X msg 503 398 \$5 \$6 \$7;
#X msg 510 419 \$9 \$10 \$11;
#X msg 517 440 \$13 \$14 \$15;
#X text 50 12 Synopsis: [gemlist_matrix];
#X text 42 94 [gemlist_matrix] accepts a gemList and output the transformation
matrix.;
#X text 62 265 Outlet 2: transformation matrix (16 floats);
#X connect 11 0 12 0;
#X connect 12 0 11 0;
#X connect 19 0 32 0;
#X connect 20 0 32 1;
#X connect 21 0 32 2;
#X connect 22 0 32 3;
#X connect 23 0 30 1;
#X connect 24 0 30 2;
#X connect 25 0 30 3;
#X connect 26 0 31 1;
#X connect 27 0 31 2;
#X connect 28 0 31 3;
#X connect 29 0 30 0;
#X connect 30 0 37 0;
#X connect 31 0 29 0;
#X connect 32 0 31 0;
#X connect 33 0 29 1;
#X connect 34 0 29 2;
#X connect 35 0 29 3;
#X connect 37 1 40 0;
#X connect 37 1 41 0;
#X connect 37 1 42 0;
#X connect 37 1 43 0;

115
Gem/help/gemmouse-help.pd Normal file
View file

@ -0,0 +1,115 @@
#N canvas 179 30 929 414 10;
#X obj 7 65 cnv 15 450 170 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 283 cnv 15 450 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 288 Inlets:;
#X obj 8 245 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 244 Arguments:;
#X text 452 8 GEM object;
#X text 9 317 Outlets:;
#X text 475 29 Example:;
#X text 54 30 Class: control object;
#X obj 466 64 cnv 15 170 180 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 466 284 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 471 323 pd gemwin;
#X msg 471 304 create;
#X text 467 283 Create window:;
#X text 27 300 Inlet 1: non - used;
#X text 468 364 see also:;
#X text 33 14 Synopsis: [gemmouse];
#X text 7 69 Description: mouse events in the GEM window;
#X text 16 86 [gemmouse] sends out mouse events which occur in the
GEM window. The X and Y Position go from 0 to the size of the window
in pixels. The point (0 \, 0) is in the top left of the window.;
#X text 15 141 You can also set some normalization of the output coordinates
with arguments.;
#X text 15 170 The button outlets send a 1 when the specified button
is pressed and a 0 when it is released.;
#X text 63 255 [list : x-normalization y-normalization];
#X text 21 330 Outlet 1: x position;
#X text 21 343 Outlet 2: y position;
#X text 21 355 Outlet 3: left button state;
#X text 21 368 Outlet 4: middle button state;
#X text 21 381 Outlet 5: right button state;
#X obj 466 385 gemkeyboard;
#X obj 478 82 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 491 93 gemmouse;
#X floatatom 491 218 9 0 0 1 X-position - -;
#X floatatom 502 196 8 0 0 1 Y-position - -;
#X floatatom 513 174 2 0 0 1 left-Button - -;
#X floatatom 524 153 2 0 0 1 middle-Button - -;
#X floatatom 536 129 2 0 0 1 right-Button - -;
#X obj 642 64 cnv 15 280 180 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 654 82 cnv 15 100 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X floatatom 657 135 9 0 0 1 X-position - -;
#X floatatom 674 113 8 0 0 1 Y-position - -;
#X text 792 134 (normalized to 0..1);
#X obj 657 89 gemmouse 1 1;
#X text 791 111 (normalized to 0..1);
#X obj 656 186 tgl 15 1 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#N canvas 589 352 498 353 follow_mouse 0;
#X obj 112 29 inlet;
#X obj 168 74 * 8;
#X obj 168 97 - 4;
#X obj 168 31 inlet;
#X obj 112 129 gemhead;
#X obj 112 189 translateXYZ;
#X obj 112 217 colorRGB 1 0 0;
#X obj 112 242 square 0.25;
#X obj 214 139 - 4;
#X obj 214 33 inlet;
#X text 253 76 invert y;
#X obj 214 116 * 8;
#X msg 214 57 1 \$1;
#X obj 214 81 -;
#X connect 0 0 4 0;
#X connect 1 0 2 0;
#X connect 2 0 5 1;
#X connect 3 0 1 0;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 7 0;
#X connect 8 0 5 2;
#X connect 9 0 12 0;
#X connect 11 0 8 0;
#X connect 12 0 13 0;
#X connect 13 0 11 0;
#X restore 656 209 pd follow_mouse;
#X connect 11 0 12 0;
#X connect 12 0 11 0;
#X connect 29 0 30 0;
#X connect 29 1 31 0;
#X connect 29 2 32 0;
#X connect 29 3 33 0;
#X connect 29 4 34 0;
#X connect 37 0 43 1;
#X connect 38 0 43 2;
#X connect 40 0 37 0;
#X connect 40 1 38 0;
#X connect 42 0 43 0;

32
Gem/help/gemorb-help.pd Normal file
View file

@ -0,0 +1,32 @@
#N canvas 293 148 600 556 10;
#X text 135 37 part of GEM;
#X obj 157 187 gemorb 1;
#X text 69 93 respond to events of a SpaceOrb on a specified commport.
;
#X msg 157 290 (X Y Z) Position;
#X msg 182 255 (X Y Z) Rotation;
#X msg 208 219 (a b c d e f g) Button;
#X text 152 70 [gemorb];
#X text 67 326 [gemorb] connects to a SpaceOrb onthe commport specified
as the creation-argument.;
#X text 70 358 You have to have a SpaceOrb to make serious use of [gemorb]
;
#X text 66 389 Position and Rotation give you float-triplets specifying
the position/rotation at/for the 3 axis;
#X text 66 426 Button gives a 9tupel with the state \, each button
is in;
#X msg 180 118 reset;
#X msg 180 140 timer <time>;
#X msg 180 162 nullregion <region>;
#X text 65 450 You can reset the SpaceOrb either with the Reset-Button
on the device or with the "reset"-message.;
#X text 67 483 You can define the nullregion with the "nullregion"-message.
;
#X text 67 503 You can set the pause between the polls of the SpaceOrb
with the "timer" message.;
#X connect 1 0 3 0;
#X connect 1 1 4 0;
#X connect 1 2 5 0;
#X connect 11 0 1 0;
#X connect 12 0 1 0;
#X connect 13 0 1 0;

View file

@ -0,0 +1,62 @@
#N canvas 4 52 570 713 10;
#X obj 96 51 gemreceive;
#X text 169 51 ordered receive;
#X obj 72 227 gemreceive foo -1;
#X obj 72 249 print first;
#X obj 412 227 gemreceive foo 12;
#X obj 412 249 print third;
#X obj 282 227 gemreceive foo 1996;
#X obj 282 249 print fourth;
#X obj 182 249 print second;
#X obj 72 196 s foo;
#X text 58 91 [gemreceive] takes an additional argument (compared to
Pd's [receive]) that specifies the priority.;
#X text 61 136 The higher the number \, the later the object will receive!
;
#X obj 182 227 gemreceive foo;
#X text 223 169 the default priority is "0";
#X text 76 298 1st inlet allows you to change the receiver name;
#X obj 107 371 gemreceive bar;
#X obj 107 393 print foobar;
#X msg 235 337 FOO;
#X msg 273 337 BAR;
#X obj 273 359 s bar;
#X msg 123 351 symbol bar;
#X text 80 443 2nd inlet let's you change the priority on the fly;
#X obj 116 610 gemreceive foobar 10;
#X obj 252 610 gemreceive foobar 20;
#X obj 116 632 print left;
#X obj 252 632 print right;
#X msg 116 464 left2right;
#X obj 116 518 t a a;
#X obj 233 520 route left2right right2left;
#X msg 202 464 right2left;
#X msg 233 542 10 20;
#X msg 312 543 20 10;
#X obj 233 564 unpack;
#X obj 116 540 s foobar;
#X msg 72 173 bang;
#X obj 235 359 s fou;
#X msg 107 331 symbol fou;
#X connect 2 0 3 0;
#X connect 4 0 5 0;
#X connect 6 0 7 0;
#X connect 12 0 8 0;
#X connect 15 0 16 0;
#X connect 17 0 35 0;
#X connect 18 0 19 0;
#X connect 20 0 15 0;
#X connect 22 0 24 0;
#X connect 23 0 25 0;
#X connect 26 0 27 0;
#X connect 27 0 33 0;
#X connect 27 1 28 0;
#X connect 28 0 30 0;
#X connect 28 1 31 0;
#X connect 29 0 27 0;
#X connect 30 0 32 0;
#X connect 31 0 32 0;
#X connect 32 0 22 1;
#X connect 32 1 23 1;
#X connect 34 0 9 0;
#X connect 36 0 15 0;

View file

@ -0,0 +1,25 @@
#N canvas 293 148 600 385 10;
#X text 135 37 part of GEM;
#X text 152 70 [gemtablet];
#X text 69 93 respond to events of a graph-tablet;
#X obj 110 118 gemtablet ........;
#X text 67 326 [gemtablet] connects to a graph-tablet. You have to
have a graph-tablet to make any use of [gemtablet];
#X floatatom 110 304 5 0 0 1 X-pos - -;
#X floatatom 125 287 5 0 0 1 Y-pos - -;
#X floatatom 140 267 5 0 0 1 Pressure - -;
#X floatatom 155 246 5 0 0 1 Azimuth - -;
#X floatatom 170 226 5 0 0 1 Altitude - -;
#X floatatom 185 207 5 0 0 1 Twist - -;
#X floatatom 200 178 1 0 0 1 Left_Button - -;
#X floatatom 215 160 1 0 0 1 Middle_Button - -;
#X floatatom 231 140 1 0 0 1 Right_Button - -;
#X connect 3 0 5 0;
#X connect 3 1 6 0;
#X connect 3 2 7 0;
#X connect 3 3 8 0;
#X connect 3 4 9 0;
#X connect 3 5 10 0;
#X connect 3 6 11 0;
#X connect 3 7 12 0;
#X connect 3 8 13 0;

View file

@ -0,0 +1,887 @@
#N canvas 192 122 1084 672 10;
#N canvas 1 84 450 300 fps 0;
#X obj 46 -61 gemhead;
#X obj 46 -21 realtime;
#X obj 46 -41 t b b;
#X obj 46 41 /;
#X msg 46 21 1000 \$1;
#X obj 46 106 outlet;
#X obj 46 63 + 0.5;
#X obj 46 85 i;
#X connect 0 0 2 0;
#X connect 1 0 4 0;
#X connect 2 0 1 0;
#X connect 2 1 1 1;
#X connect 3 0 6 0;
#X connect 4 0 3 0;
#X connect 6 0 7 0;
#X connect 7 0 5 0;
#X restore 466 149 pd fps;
#X floatatom 466 172 5 0 0 1 fps - -;
#X obj 6 76 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 7 236 cnv 15 450 260 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 7 181 cnv 15 450 50 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 59 27 Class: geometric object;
#X text 467 7 GEM object;
#X text 61 7 Synopsis: [gemvertexbuffer];
#X obj 462 76 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 5 76 450 300 gemwin 0;
#X obj 132 246 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 198 142 destroy;
#X msg 132 142 create \, 1;
#X obj 245 38 loadbang;
#X msg 272 82 reset \, frame 100;
#X obj 245 58 t b b;
#X obj 132 117 t b b;
#X msg 376 135 \; pd dsp 1;
#X obj 349 114 t b b;
#X obj 349 181 del 100;
#X obj 349 201 s \$0-init100;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 11 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 10 0;
#X connect 9 0 0 0;
#X connect 10 0 5 0;
#X connect 10 1 9 0;
#X connect 11 0 7 0;
#X connect 11 1 13 0;
#X connect 13 0 14 0;
#X connect 13 1 12 0;
#X connect 14 0 15 0;
#X restore 467 115 pd gemwin;
#X msg 467 96 destroy;
#X text 463 75 Create window:;
#X text 6 80 Description: Renders a vertexbuffer.;
#X text 11 179 Arguments:;
#X text 57 190 number of vertex to be used. nuber in form of 2^n work
better;
#X text 9 241 Inlets:;
#X text 27 253 Inlet 1: gemlist;
#X text 9 450 Outlets:;
#X text 21 463 Outlet 1: gemlist;
#X text 27 409 Inlet 1: message: postion_enable float \, color_enable
float \, texture_enable float \, normal_enable float : enable/disable
the use of this data;
#X obj 569 6 cnv 15 400 600 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 576 568 cnv 15 150 30 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 579 574 gemvertexbuffer;
#X msg 792 483 draw line;
#X msg 802 504 draw points;
#X msg 692 384 color_enable \$1;
#X obj 673 384 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 579 134 GEMglPointSize 1;
#X obj 816 528 loadbang;
#X obj 579 76 translateXYZ 0 0 -2;
#X obj 579 114 rotateXYZ -45 0 -50;
#X obj 579 57 gemhead;
#X text 594 254 update VBO using table value;
#X obj 643 366 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 665 364 position_enable \$1;
#X obj 729 424 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 699 406 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 721 404 texture_enable \$1;
#X msg 748 424 normal_enable \$1;
#X text 612 444 default : all VBO are disabled \, but they are enable
as soon as they are updated;
#X obj 579 215 pix_image;
#X obj 579 234 pix_texture;
#X obj 593 153 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 openpanel 0;
#X obj 114 62 inlet;
#X obj 121 254 outlet;
#X obj 114 125 openpanel;
#X msg 114 162 set open \$1;
#X obj 114 199 t b a;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 4 0 1 0;
#X connect 4 1 1 0;
#X restore 593 170 pd openpanel;
#X msg 593 189;
#X text 671 349 enable / disable specific VBO;
#X obj 579 33 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 577 14 Example:;
#X msg 816 551 resize 128;
#X floatatom 710 88 5 0 0 0 - - -;
#X obj 579 95 scale 3;
#X msg 593 271 position blablax blablay blablaz;
#X msg 604 290 color colorr colorg colorb colora;
#X msg 614 310 texture colorr colorg;
#X msg 627 331 normal colorr blablay blablaz;
#X obj 740 170 bng 15 250 50 0 empty \$0-init100 empty 17 7 0 10 -262144
-1 -1;
#X obj 841 56 cnv 15 120 160 empty empty empty 20 12 0 14 -233017 -66577
0;
#N canvas 614 149 657 666 lorenz 0;
#X floatatom 82 248 5 0 0 0 - - -;
#X floatatom 124 248 5 0 0 0 - - -;
#X floatatom 83 201 5 0 0 0 - - -;
#X floatatom 125 201 5 0 0 0 - - -;
#X floatatom 81 156 5 0 0 0 - - -;
#X floatatom 124 156 5 0 0 0 - - -;
#N canvas 145 116 1131 666 table 0;
#X obj 266 31 loadbang;
#X msg 266 53 dsp 1;
#X obj 266 75 s pd;
#X obj 38 33 loadbang;
#X obj 89 68 sig~ 1;
#X obj 89 140 osc~ 1;
#X obj 88 160 abs~;
#X obj 87 223 osc~ 11;
#X obj 86 243 abs~;
#X obj 38 58 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 87 310 sig~ 0.7;
#X obj 392 275 v pr;
#X obj 523 276 v r;
#X obj 449 277 v b;
#X floatatom 392 246 5 0 0 0 - - -;
#X floatatom 523 248 5 0 0 0 - - -;
#X msg 393 221 10;
#X obj 447 218 expr 8./3;
#X msg 344 344 set 1.2 2.3 4.4;
#X floatatom 449 247 7 0 0 0 - - -;
#X msg 321 308 stop;
#X msg 291 275 start;
#X floatatom 615 248 5 0 0 0 - - -;
#X obj 615 277 v dt;
#X msg 526 220 18;
#X msg 611 221 0.01;
#X obj 344 167 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
-1;
#X text 679 250 <- experiment with these numbers;
#X obj 705 223 line;
#X obj 344 449 /~ 20;
#X obj 450 446 /~ 20;
#X obj 556 445 /~ 20;
#X msg 706 198 0.01 \, 0.04 5000;
#X obj 344 393 fexpr~ $y1+(pr*$y2-pr*$y1)*dt \; $y2 +(-$y1*$y3 + r*$y1-$y2)*dt
\; $y3+($y1*$y2 - b*$y3)*dt;
#X obj 276 164 loadbang;
#X text 329 108 This is an example of how fexpr~ could be used for
solving differential equations \, in this case the lorenz equations
which generate chotic signals;
#X text 577 390 Note the following shorthands:;
#X text 576 406 $y1 -> $y1[-1] \, $y2 -> $y2[-1] \, .....;
#X text 464 344 the 'set' commands sets the initial previous values
;
#X obj 639 442 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 673 437 loadbang;
#X obj 572 473 sig~ -1;
#X obj 673 467 metro 1000;
#X obj 89 391 table \$0blablax2 100000;
#X obj 87 411 table \$0blablay2 100000;
#X obj 87 431 table \$0blablaz2 100000;
#X obj 86 356 table \$0colora2 100000;
#X obj 86 335 tabwrite~ \$0colora2;
#X obj 87 287 table \$0colorb2 100000;
#X obj 86 265 tabwrite~ \$0colorb2;
#X obj 88 203 table \$0colorg2 100000;
#X obj 87 180 tabwrite~ \$0colorg2;
#X obj 87 112 table \$0colorr2 100000;
#X obj 88 91 tabwrite~ \$0colorr2;
#X obj 344 537 tabwrite~ \$0blablax2;
#X obj 451 517 tabwrite~ \$0blablay2;
#X obj 555 497 tabwrite~ \$0blablaz2;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
#X connect 3 0 9 0;
#X connect 4 0 53 0;
#X connect 5 0 6 0;
#X connect 6 0 51 0;
#X connect 7 0 8 0;
#X connect 8 0 49 0;
#X connect 9 0 47 0;
#X connect 9 0 49 0;
#X connect 9 0 51 0;
#X connect 9 0 53 0;
#X connect 10 0 47 0;
#X connect 14 0 11 0;
#X connect 15 0 12 0;
#X connect 16 0 14 0;
#X connect 17 0 19 0;
#X connect 18 0 33 0;
#X connect 19 0 13 0;
#X connect 20 0 33 0;
#X connect 21 0 33 0;
#X connect 22 0 23 0;
#X connect 24 0 15 0;
#X connect 25 0 22 0;
#X connect 26 0 16 0;
#X connect 26 0 17 0;
#X connect 26 0 24 0;
#X connect 26 0 25 0;
#X connect 26 0 18 0;
#X connect 26 0 21 0;
#X connect 28 0 22 0;
#X connect 29 0 54 0;
#X connect 30 0 55 0;
#X connect 31 0 56 0;
#X connect 32 0 28 0;
#X connect 33 0 29 0;
#X connect 33 1 30 0;
#X connect 33 2 31 0;
#X connect 34 0 26 0;
#X connect 39 0 54 0;
#X connect 39 0 55 0;
#X connect 39 0 56 0;
#X connect 40 0 42 0;
#X connect 41 0 56 0;
#X connect 42 0 39 0;
#X restore 259 348 pd table;
#X obj 38 136 alpha;
#X msg 118 577 draw line;
#X msg 184 575 draw points;
#X floatatom 147 288 5 0 0 0 - - -;
#X msg 82 449 color_enable \$1;
#X obj 82 430 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 38 222 scaleXYZ 3 3 3;
#X obj 38 305 GEMglPointSize 1;
#X obj 38 174 translateXYZ 0 0 -2;
#X obj 38 267 rotateXYZ -45 0 -50;
#X obj 38 114 gemhead;
#X obj 56 346 gemhead 10;
#X obj 56 327 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 56 367 t b;
#X obj 98 115 switch~;
#X obj 38 43 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0 1
;
#X obj 116 10 loadbang;
#X obj 90 497 delay 1000;
#X obj 90 475 sel 1;
#X obj 38 13 inlet;
#X obj 218 469 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 218 444 loadbang;
#X obj 38 614 gemvertexbuffer 100000;
#X msg 116 32 0;
#X obj 91 516 i \$0;
#X msg 90 538 colorR \$1colorr2 \, colorG \$1colorg2 \, colorB \$1colorb2
\, colorA \$1colora2;
#X obj 38 69 t f f f f;
#X obj 56 387 i \$0;
#X msg 56 407 posX \$1blablax2 \, posY \$1blablay2 \, posZ \$1blablaz2
;
#X connect 0 0 16 1;
#X connect 1 0 16 2;
#X connect 2 0 13 1;
#X connect 3 0 13 2;
#X connect 4 0 15 1;
#X connect 5 0 15 2;
#X connect 7 0 15 0;
#X connect 8 0 29 0;
#X connect 9 0 29 0;
#X connect 10 0 14 1;
#X connect 11 0 29 0;
#X connect 12 0 11 0;
#X connect 13 0 16 0;
#X connect 14 0 29 0;
#X connect 15 0 13 0;
#X connect 16 0 14 0;
#X connect 17 0 7 0;
#X connect 18 0 20 0;
#X connect 19 0 18 0;
#X connect 20 0 34 0;
#X connect 22 0 33 0;
#X connect 23 0 30 0;
#X connect 24 0 31 0;
#X connect 25 0 24 0;
#X connect 26 0 22 0;
#X connect 27 0 31 0;
#X connect 28 0 27 0;
#X connect 30 0 22 0;
#X connect 31 0 32 0;
#X connect 32 0 29 0;
#X connect 33 0 17 0;
#X connect 33 1 19 0;
#X connect 33 2 25 0;
#X connect 33 3 21 0;
#X connect 34 0 35 0;
#X connect 35 0 29 0;
#X restore 849 100 pd lorenz;
#X obj 849 80 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#N canvas 1285 273 805 628 wave 0;
#X floatatom 87 237 5 0 0 0 - - -;
#X floatatom 129 237 5 0 0 0 - - -;
#X floatatom 172 237 5 0 0 0 - - -;
#X floatatom 88 190 5 0 0 0 - - -;
#X floatatom 130 190 5 0 0 0 - - -;
#X floatatom 173 190 5 0 0 0 - - -;
#X floatatom 86 145 5 0 0 0 - - -;
#X floatatom 129 145 5 0 0 0 - - -;
#X floatatom 173 145 5 0 0 0 - - -;
#X obj 43 592 gemvertexbuffer;
#N canvas 186 169 1131 747 table 0;
#X obj 36 59 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 583 129 until;
#X msg 583 110 100;
#N canvas 0 0 450 300 count 0;
#X obj 47 31 inlet;
#X obj 47 126 f;
#X obj 157 30 inlet;
#X obj 65 104 + 1;
#X obj 47 154 t f f;
#X msg 157 58 0;
#X obj 47 187 outlet;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 2 0 5 0;
#X connect 3 0 1 1;
#X connect 4 0 6 0;
#X connect 4 1 3 0;
#X connect 5 0 1 1;
#X restore 583 148 pd count;
#X obj 440 70 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 583 91 t b b;
#X obj 583 264 until;
#X msg 583 245 100;
#N canvas 0 0 450 300 count 0;
#X obj 47 31 inlet;
#X obj 47 126 f;
#X obj 157 30 inlet;
#X obj 65 104 + 1;
#X obj 47 154 t f f;
#X msg 157 58 0;
#X obj 47 187 outlet;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 2 0 5 0;
#X connect 3 0 1 1;
#X connect 4 0 6 0;
#X connect 4 1 3 0;
#X connect 5 0 1 1;
#X restore 583 283 pd count;
#X obj 583 224 t b b f;
#X obj 583 359 pack f f;
#X obj 583 321 - 0.5;
#X obj 583 302 / 99;
#X obj 583 340 * 2;
#X obj 583 186 - 0.5;
#X obj 583 167 / 99;
#X obj 583 205 * 2;
#X obj 583 383 t a a a a a a;
#X obj 671 404 unpack f f;
#X obj 583 509 + 0.01;
#X obj 796 513 + 0.01;
#N canvas 0 0 450 300 count 0;
#X obj 47 31 inlet;
#X obj 47 126 f;
#X obj 157 30 inlet;
#X obj 65 104 + 1;
#X obj 47 154 t f f;
#X msg 157 58 0;
#X obj 47 187 outlet;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 2 0 5 0;
#X connect 3 0 1 1;
#X connect 4 0 6 0;
#X connect 4 1 3 0;
#X connect 5 0 1 1;
#X restore 692 582 pd count;
#X obj 583 551 t f b;
#N canvas 0 0 450 300 count 0;
#X obj 47 31 inlet;
#X obj 47 126 f;
#X obj 157 30 inlet;
#X obj 65 104 + 1;
#X obj 47 154 t f f;
#X msg 157 58 0;
#X obj 47 187 outlet;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 2 0 5 0;
#X connect 3 0 1 1;
#X connect 4 0 6 0;
#X connect 4 1 3 0;
#X connect 5 0 1 1;
#X restore 905 585 pd count;
#X obj 796 554 t f b;
#X obj 640 508 - 0.01;
#X obj 851 513 - 0.01;
#X obj 653 423 unpack f f;
#X obj 635 442 unpack f f;
#X obj 583 461 unpack f f;
#X obj 440 92 t b b;
#X obj 440 134 until;
#N canvas 0 0 450 300 count 0;
#X obj 47 31 inlet;
#X obj 47 126 f;
#X obj 157 30 inlet;
#X obj 65 104 + 1;
#X obj 47 154 t f f;
#X msg 157 58 0;
#X obj 47 187 outlet;
#X connect 0 0 1 0;
#X connect 1 0 4 0;
#X connect 2 0 5 0;
#X connect 3 0 1 1;
#X connect 4 0 6 0;
#X connect 4 1 3 0;
#X connect 5 0 1 1;
#X restore 440 153 pd count;
#X obj 440 176 t f f f;
#X obj 440 239 t f f;
#X obj 440 261 *;
#X obj 485 240 t f f;
#X obj 485 262 *;
#X obj 440 292 +;
#X obj 440 335 sqrt;
#X obj 440 416 cos;
#X obj 440 313 t f f;
#X obj 477 377 exp;
#X obj 440 442 /;
#X msg 440 115 60000;
#X obj 477 355 * 2;
#X obj 341 46 gemhead 10;
#X obj 341 72 t b b;
#X obj 349 318 f;
#X obj 440 380 +;
#X floatatom 903 395 5 0 0 0 - - -;
#X obj 583 71 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 87 310 sig~ 0.3;
#X obj 903 371 / 99;
#X msg 903 347 1;
#X obj 383 322 - 0.1;
#X obj 440 354 * 7;
#X obj 440 31 t b b b;
#X text 162 619 color and position are updated at every frame. you
just have to change array value....;
#X text 156 504 replace this with iem_tab_* stuf in order to increase
performances if you wish to update point position at every frame;
#X obj 36 -2 inlet;
#X obj 123 122 f;
#X obj 279 120 f;
#X obj 438 6 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
-1;
#X obj 123 56 sin;
#X obj 123 78 + 1;
#X obj 123 100 * 0.5;
#X obj 123 35 * 110;
#X obj 87 244 table \$0colorg3 60000;
#X obj 85 266 table \$0colorr3 60000;
#X obj 86 286 table \$0colorb3 60000;
#X obj 142 196 tabwrite \$0colorg3;
#X obj 141 172 tabwrite \$0colorb3;
#X obj 142 150 tabwrite \$0colorr3;
#X obj 86 335 tabwrite~ \$0colora3;
#X obj 86 356 table \$0colora3 60000;
#X obj 87 393 table \$0blablax3 60000;
#X obj 86 412 table \$0blablay3 60000;
#X obj 87 431 table \$0blablaz3 60000;
#X obj 440 466 tabwrite \$0blablaz3;
#X obj 463 198 tabread \$0blablay3;
#X obj 440 218 tabread \$0blablax3;
#X obj 582 605 tabwrite \$0blablax3;
#X obj 796 607 tabwrite \$0blablay3;
#X connect 0 0 74 0;
#X connect 1 0 3 0;
#X connect 2 0 1 0;
#X connect 3 0 15 0;
#X connect 4 0 30 0;
#X connect 5 0 2 0;
#X connect 5 1 3 1;
#X connect 5 1 21 1;
#X connect 5 1 23 1;
#X connect 6 0 8 0;
#X connect 7 0 6 0;
#X connect 8 0 12 0;
#X connect 9 0 7 0;
#X connect 9 1 8 1;
#X connect 9 2 10 1;
#X connect 10 0 17 0;
#X connect 11 0 13 0;
#X connect 12 0 11 0;
#X connect 13 0 10 0;
#X connect 14 0 16 0;
#X connect 15 0 14 0;
#X connect 16 0 9 0;
#X connect 17 0 29 0;
#X connect 17 1 18 0;
#X connect 17 2 27 0;
#X connect 17 3 28 0;
#X connect 17 4 27 0;
#X connect 17 5 18 0;
#X connect 18 0 25 0;
#X connect 18 1 20 0;
#X connect 19 0 22 0;
#X connect 20 0 24 0;
#X connect 21 0 82 1;
#X connect 22 0 82 0;
#X connect 22 1 21 0;
#X connect 23 0 83 1;
#X connect 24 0 83 0;
#X connect 24 1 23 0;
#X connect 25 0 22 0;
#X connect 26 0 24 0;
#X connect 27 0 19 0;
#X connect 27 1 26 0;
#X connect 28 0 25 0;
#X connect 28 1 26 0;
#X connect 29 0 19 0;
#X connect 29 1 20 0;
#X connect 30 0 44 0;
#X connect 30 1 32 1;
#X connect 31 0 32 0;
#X connect 32 0 33 0;
#X connect 33 0 81 0;
#X connect 33 1 80 0;
#X connect 33 2 62 0;
#X connect 33 2 79 1;
#X connect 34 0 35 0;
#X connect 34 1 35 1;
#X connect 35 0 38 0;
#X connect 36 0 37 0;
#X connect 36 1 37 1;
#X connect 37 0 38 1;
#X connect 38 0 41 0;
#X connect 39 0 56 0;
#X connect 39 0 67 0;
#X connect 40 0 43 0;
#X connect 41 0 39 0;
#X connect 41 1 45 0;
#X connect 42 0 43 1;
#X connect 43 0 79 0;
#X connect 44 0 31 0;
#X connect 45 0 42 0;
#X connect 47 0 30 0;
#X connect 47 1 48 0;
#X connect 48 0 49 1;
#X connect 48 0 55 0;
#X connect 49 0 40 0;
#X connect 50 0 19 1;
#X connect 50 0 25 1;
#X connect 50 0 20 1;
#X connect 50 0 26 1;
#X connect 51 0 5 0;
#X connect 52 0 74 0;
#X connect 53 0 50 0;
#X connect 54 0 53 0;
#X connect 55 0 48 1;
#X connect 56 0 49 0;
#X connect 57 0 4 0;
#X connect 57 1 51 0;
#X connect 57 2 54 0;
#X connect 60 0 0 0;
#X connect 60 0 57 0;
#X connect 61 0 71 0;
#X connect 61 0 72 0;
#X connect 61 0 73 0;
#X connect 62 0 71 1;
#X connect 62 0 72 1;
#X connect 62 0 73 1;
#X connect 63 0 57 0;
#X connect 64 0 65 0;
#X connect 65 0 66 0;
#X connect 66 0 61 0;
#X connect 67 0 64 0;
#X connect 80 0 36 0;
#X connect 81 0 34 0;
#X restore 298 556 pd table;
#X obj 43 125 alpha;
#X msg 98 518 draw points;
#X obj 43 211 scaleXYZ 3 3 3;
#X obj 106 549 loadbang;
#X obj 43 163 translateXYZ 0 0 -2;
#X obj 43 63 gemhead;
#X obj 61 306 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 61 346 t b;
#X msg 106 572 resize 60000;
#X msg 94 495 draw triangle;
#X msg 57 102 auto 1;
#X obj 61 325 gemhead 20;
#X obj 43 285 GEMglShadeModel GL_SMOOTH;
#X obj 94 474 loadbang;
#X obj 43 256 rotateXYZ -65 0 35;
#X obj 57 82 loadbang;
#X obj 43 12 inlet;
#X obj 298 68 sel 1;
#X obj 61 366 i \$0;
#X obj 61 386 t f f;
#X msg 61 416 position \$1blablax3 \$1blablay3 \$1blablaz3;
#X msg 77 438 color \$1colorr3 \$1colorg3 \$1colorb3 \$1colora3;
#X connect 0 0 25 1;
#X connect 1 0 25 2;
#X connect 2 0 25 3;
#X connect 3 0 13 1;
#X connect 4 0 13 2;
#X connect 5 0 13 3;
#X connect 6 0 15 1;
#X connect 7 0 15 2;
#X connect 8 0 15 3;
#X connect 11 0 15 0;
#X connect 12 0 9 0;
#X connect 13 0 25 0;
#X connect 14 0 19 0;
#X connect 15 0 13 0;
#X connect 16 0 11 0;
#X connect 17 0 22 0;
#X connect 18 0 29 0;
#X connect 19 0 9 0;
#X connect 20 0 9 0;
#X connect 21 0 11 0;
#X connect 22 0 18 0;
#X connect 23 0 9 0;
#X connect 24 0 20 0;
#X connect 25 0 23 0;
#X connect 26 0 21 0;
#X connect 27 0 16 0;
#X connect 27 0 28 0;
#X connect 28 0 10 0;
#X connect 29 0 30 0;
#X connect 30 0 31 0;
#X connect 30 1 32 0;
#X connect 31 0 9 0;
#X connect 32 0 9 0;
#X restore 849 184 pd wave;
#X obj 849 162 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#N canvas 1289 235 452 435 oscillo~ 0;
#X obj 47 78 gemhead;
#X obj 122 116 adc~;
#X obj 218 63 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 1
1;
#X obj 218 41 loadbang;
#X obj 47 5 inlet;
#X obj 123 152 *~ 3;
#X obj 47 279 t a b;
#X obj 47 406 gemvertexbuffer 8192;
#X obj 218 82 metro 200;
#X obj 298 167 until;
#X msg 298 143 8192;
#X obj 298 191 f;
#X obj 329 192 + 1;
#X msg 348 163 0;
#X obj 298 234 / 8191;
#X obj 352 111 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
-1 -1;
#X obj 298 213 t f f;
#X obj 298 277 * 7;
#X obj 298 256 - 0.5;
#X msg 82 384 draw linestrip;
#X obj 82 363 loadbang;
#X obj 63 30 loadbang;
#X msg 63 52 0;
#X obj 155 55 osc~ 10;
#X obj 155 75 *~ 0.1;
#X obj 122 178 tabwrite~ \$0sound;
#X obj 121 199 table \$0sound 8192;
#X obj 298 298 tabwrite \$0phasor;
#X obj 118 231 table \$0phasor 8192;
#X obj 79 306 i \$0;
#X msg 79 342 posX \$1phasor \, posY \$1sound;
#X floatatom 150 14 5 0 0 0 - - -;
#X obj 15 157 scale 1;
#X floatatom 52 115 5 0 0 0 - - -;
#X obj 290 118 t b b;
#X msg 227 395 draw points;
#X connect 0 0 32 0;
#X connect 1 0 5 0;
#X connect 1 1 5 0;
#X connect 2 0 8 0;
#X connect 3 0 2 0;
#X connect 3 0 34 0;
#X connect 4 0 0 0;
#X connect 5 0 25 0;
#X connect 6 0 7 0;
#X connect 6 1 29 0;
#X connect 8 0 25 0;
#X connect 9 0 11 0;
#X connect 10 0 9 0;
#X connect 11 0 12 0;
#X connect 11 0 16 0;
#X connect 12 0 11 1;
#X connect 13 0 11 1;
#X connect 14 0 18 0;
#X connect 15 0 34 0;
#X connect 16 0 14 0;
#X connect 16 1 27 1;
#X connect 17 0 27 0;
#X connect 18 0 17 0;
#X connect 19 0 7 0;
#X connect 20 0 19 0;
#X connect 21 0 22 0;
#X connect 22 0 0 0;
#X connect 23 0 24 0;
#X connect 24 0 5 0;
#X connect 29 0 30 0;
#X connect 30 0 7 0;
#X connect 31 0 23 0;
#X connect 32 0 6 0;
#X connect 33 0 32 1;
#X connect 34 0 10 0;
#X connect 34 1 13 0;
#X connect 35 0 7 0;
#X restore 849 141 pd oscillo~;
#X obj 849 121 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 846 60 other examples;
#X text 27 327 Inlet 1: message: texture / textureU / textureV: update
vertex texcoords from tables;
#X text 27 357 Inlet 1: message: normal / normalX / normalY / normalZ:
update vertex normals from tables;
#X text 27 297 Inlet 1: message: color / colorR / colorG / colorB /
colorA: update vertex colors from tables;
#X text 27 267 Inlet 1: message: position / posX / posY / posZ: update
vertex positions from tables;
#N canvas 429 161 679 574 tabledata 0;
#X text 65 43 applying table data as vertex data;
#X msg 30 100 position tabX tabY tabZ 0;
#X msg 30 130 position tabXYZ 0;
#X text 200 102 will read X \, Y & Z values from the 3 tables as position
data \, starting at offset=0 (offset can be omitted);
#X text 200 132 will read interleaved X \, Y & Z values from the table
tabXYZ \, starting at offset=0 (offset can be omitted);
#X text 200 172 will update only X values from given table (starting
at offset=10);
#X msg 31 169 posX tabX 10;
#X msg 31 209 posY tabY;
#X text 200 212 will update only Y values from given table (starting
at default offset=0);
#X text 39 290 the same applies to the other vertex data types:;
#X msg 234 346 colorR r;
#X msg 294 346 colorG g;
#X msg 354 346 colorB b;
#X msg 415 346 colorA a;
#X msg 36 376 texture U V;
#X msg 140 376 texture UV;
#X msg 234 376 textureU U;
#X msg 304 376 textureV V;
#X msg 36 406 normal x y z;
#X msg 36 346 color r g b a;
#X msg 141 346 color rgba;
#X msg 140 406 normal xyz;
#X msg 234 406 normalX x;
#X msg 304 406 normalY y;
#X msg 374 406 normalZ z;
#X msg 36 316 position X Y Z;
#X msg 140 316 position XYZ;
#X msg 234 316 positionX X;
#X msg 314 316 positionY Y;
#X msg 394 316 positionZ Z;
#X text 51 453 offset is always optional (default=0) \, and comes after
the table names;
#X text 50 507 unset table data is initialized to 0.f;
#X restore 371 309 pd tabledata;
#X text 27 384 Inlet 1: message: resize float : change the number of
vertex to use;
#X text 23 98 Vertex position \, color etc can be copy from pd table
to the vertex buffer (VBO = Vertex Buffer Object). This object can
draw lot's of points very efficiently.;
#X obj 740 192 t b b b;
#N canvas 1322 49 450 459 load_tables 0;
#X obj 31 71 noise~;
#X obj 32 94 tabwrite~ colorr;
#X obj 32 114 noise~;
#X obj 33 158 noise~;
#X obj 33 137 tabwrite~ colorg;
#X obj 34 181 tabwrite~ colorb;
#X obj 33 209 noise~;
#X obj 34 252 noise~;
#X obj 35 296 noise~;
#X obj 34 232 tabwrite~ blablax;
#X obj 36 319 tabwrite~ blablaz;
#X obj 35 275 tabwrite~ blablay;
#X msg 288 48 dsp 1;
#X obj 288 68 s pd;
#X obj 288 28 loadbang;
#X obj 266 152 table colorr 1000;
#X obj 266 172 table colorg 1000;
#X obj 266 194 table colorb 1000;
#X obj 266 216 table colora 1000;
#X obj 267 237 table blablax 1000;
#X obj 266 256 table blablay 1000;
#X obj 266 276 table blablaz 1000;
#X obj 119 34 t b;
#X obj 119 13 loadbang;
#X msg 152 34 bang;
#X obj 215 10 inlet;
#X connect 0 0 1 0;
#X connect 2 0 4 0;
#X connect 3 0 5 0;
#X connect 6 0 9 0;
#X connect 7 0 11 0;
#X connect 8 0 10 0;
#X connect 12 0 13 0;
#X connect 14 0 12 0;
#X connect 22 0 1 0;
#X connect 22 0 4 0;
#X connect 22 0 5 0;
#X connect 22 0 9 0;
#X connect 22 0 11 0;
#X connect 22 0 10 0;
#X connect 23 0 22 0;
#X connect 24 0 22 0;
#X connect 25 0 22 0;
#X restore 797 222 pd load_tables;
#X connect 0 0 1 0;
#X connect 9 0 10 0;
#X connect 10 0 9 0;
#X connect 23 0 22 0;
#X connect 24 0 22 0;
#X connect 25 0 22 0;
#X connect 26 0 25 0;
#X connect 27 0 40 0;
#X connect 28 0 48 0;
#X connect 29 0 50 0;
#X connect 30 0 27 0;
#X connect 31 0 29 0;
#X connect 33 0 34 0;
#X connect 34 0 22 0;
#X connect 35 0 38 0;
#X connect 36 0 37 0;
#X connect 37 0 22 0;
#X connect 38 0 22 0;
#X connect 40 0 41 0;
#X connect 41 0 22 0;
#X connect 42 0 43 0;
#X connect 43 0 44 0;
#X connect 44 0 40 0;
#X connect 46 0 31 0;
#X connect 48 0 22 0;
#X connect 49 0 50 1;
#X connect 50 0 30 0;
#X connect 51 0 22 0;
#X connect 52 0 22 0;
#X connect 53 0 22 0;
#X connect 54 0 22 0;
#X connect 55 0 71 0;
#X connect 58 0 57 0;
#X connect 60 0 59 0;
#X connect 62 0 61 0;
#X connect 71 0 51 0;
#X connect 71 1 52 0;
#X connect 71 2 72 0;

799
Gem/help/gemwin-help.pd Normal file
View file

@ -0,0 +1,799 @@
#N canvas 133 50 676 689 10;
#X text 452 8 GEM object;
#X obj 7 193 cnv 15 430 480 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 7 149 cnv 15 430 40 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 16 153 Arguments:;
#X obj 7 53 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 54 cnv 15 210 350 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 451 28 Example:;
#X obj 454 286 cnv 15 160 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X text 50 12 Synopsis: [gemwin];
#X text 17 56 Description: access to the window manager;
#X text 28 79 [gemwin] allows you to interact with Gem's output window.
It passes various messages to the window manager \, controlling the
attributes of the window and controls the render-cycle. Multiple instances
of this object will interact with the same window.;
#X obj 458 320 gemwin;
#X msg 458 103 reset \, dimen 640 480 \, create \, 1;
#X msg 486 195 0 \, destroy;
#X text 16 196 Inlet 1:;
#X text 30 225 reset : reset the graphics manager to the default values
;
#X text 29 432 create : create the graphics window;
#X text 29 446 destroy : destroy the graphics window;
#X text 30 479 float (1/0) : turn on/off rendering;
#X text 30 493 print : show some information on the stderr;
#X text 71 31 Class: window handling;
#N canvas 361 97 456 455 FSAA 0;
#X msg 48 222 0;
#X msg 79 222 2;
#X msg 108 222 4;
#X text 54 129 2 - double resolution (4 times the pixel data);
#X text 43 324 Full-scene anti-aliasing by supersampling usually means
that each full frame is rendered at double (2x) or quadruple (4x) the
display resolution \, and then down-sampled to match the display resolution.
So a 4x FSAA would render 16 supersampled pixels for each single pixel
of each frame.;
#X text 54 189 8 - eight-times resolution (64 times the pixel data)
;
#X text 54 149 4 - quadruple resolution (16 times the pixel data);
#X text 54 109 0 - turn off super sampling for anti-aliasing;
#X text 43 405 http://en.wikipedia.org/wiki/Anti-aliasing#Full-scene_anti-aliasing
;
#X text 200 220 <-- destroy gemwin between clicking these;
#X obj 90 299 s \$0-gemwin-in;
#X text 54 168 5 - quadruple resolution (16 times the pixel data);
#X text 33 6 Gem provides Full Scene Anti-Aliasing for smoothing out
the edges of all things drawn in the OpenGL scene. To enable it \,
send the "FSAA" message to the [gemwin] before creating it.;
#X text 33 61 FSAA might or might not work depending on your graphic
card \, the value of the parameter may also vary.;
#X msg 169 222 8;
#X msg 139 222 5;
#X msg 90 272 destroy \, FSAA \$1 \, create \, 1;
#X connect 0 0 16 0;
#X connect 1 0 16 0;
#X connect 2 0 16 0;
#X connect 14 0 16 0;
#X connect 15 0 16 0;
#X connect 16 0 10 0;
#X restore 356 269 pd FSAA;
#X obj 471 294 r \$0-gemwin-in;
#X text 29 285 fullscreen 0|1 : make fullscreen-window;
#X text 57 302 (if possible with the dimensions passed via "dimen")
;
#N canvas 430 22 405 382 fullscreen 0;
#X text -88 -108 fullscreen 0/1: make fullscreen-window (if possible
with the dimensions passed via "dimen");
#X text -88 -64 on platform's that support it (currently: Mac OS X)
you can specify on which screen you want to go fullscreen (if you have
several screens): e.g. "fullscreen 2" will make a fullscreen-window
on Screen2;
#X text -86 -130 FULLSCREEN SUPPORT;
#X obj -85 -1 vradio 15 1 0 3 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X floatatom -85 50 5 0 0 0 - - -;
#X msg -85 71 reset \, fullscreen \$1 \, create \, 1;
#X text -63 -4 deactivate fullscreen;
#X text -64 13 fullscreen on screen 1;
#X text -64 29 fullscreen on screen 2;
#X msg -72 126 0 \, destroy;
#X text -89 182 BE CAREFUL : when you are in fullscreen mode \, you
have no more access to the other windows of your system.;
#N canvas 107 24 450 300 esc 0;
#X obj 65 20 gemkeyboard;
#X obj 65 167 outlet;
#X obj 89 71 keyname;
#X obj 128 96 sel Escape;
#X obj 65 41 sel 53;
#X obj 189 47 sel Escape;
#X obj 150 22 gemkeyname;
#X connect 0 0 4 0;
#X connect 2 1 3 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 1 0;
#X connect 6 1 5 0;
#X restore -72 104 pd esc;
#X obj -85 155 s \$0-gemwin-in;
#X text 111 11 press ESC to quit;
#X connect 3 0 4 0;
#X connect 4 0 5 0;
#X connect 5 0 12 0;
#X connect 9 0 12 0;
#X connect 11 0 9 0;
#X restore 356 288 pd fullscreen;
#X text 57 253 the x and y dimensions of the window. (default 500 500)
;
#X text 30 166 number of frames per second (default 20);
#X text 29 508 frame <number> : number of frames per second (default
20);
#X text 30 268 FSAA <number> : anti aliasing (default 0);
#X text 30 318 border 1|0 : create a window with/out borders (default
1);
#X text 57 350 the x and y offset of the window. (default 0 0);
#N canvas 641 438 406 148 offset 0;
#X text 53 8 OFFSET SUPPORT;
#X text 21 28 offset might not work on some window managers if the
borders are on;
#X text 20 55 under OSX you must take into account the number of pixel
of the menubar \, title and eventually of your dock.;
#X text 19 82 [offset 0 -60( with [menubar 0( is working in 10.6 to
set the window in the top left of the screen;
#X restore 356 334 pd offset;
#N canvas 230 93 618 505 more 0;
#X text 230 327 title <title_symbol>: set the title for the window
;
#X msg 121 327 title my_window;
#X obj 94 187 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0
1;
#X msg 94 205 menubar \$1;
#X msg 117 187 -1;
#X text 188 190 menubar -1/0/1: hide or show the Mac OS X menubar \,
1 shows \, 0 hides \, and -1 hides by default and shows on mouseover
;
#X msg 44 60 cursor \$1;
#X obj 44 41 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0 1
;
#X text 139 59 cursor 0/1: turn the cursor on/off;
#X obj 109 247 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0
1;
#X msg 109 266 topmost \$1;
#X text 204 255 topmost 0/1: make the gemwin the top most window \,
on top of everything else (Windows only?);
#X msg 126 376 create remotehost:8.0;
#X text 283 369 when using X-windows \, you can also create a window
on a remote display!;
#X obj 44 465 s \$0-gemwin-in;
#X text 41 14 Other messages to [gemwin] regarding the window;
#X msg 55 139 0 \, destroy;
#X msg 110 438 create \, 1;
#X text 188 437 ...and create it after;
#X text 133 140 destroy window before setting window properties...
;
#X text 81 104 All of these messages must be sent to [gemwin] before
the window is created in order to take effect:;
#X connect 1 0 14 0;
#X connect 2 0 3 0;
#X connect 3 0 14 0;
#X connect 4 0 3 0;
#X connect 6 0 14 0;
#X connect 7 0 6 0;
#X connect 9 0 10 0;
#X connect 10 0 14 0;
#X connect 12 0 14 0;
#X connect 16 0 14 0;
#X connect 17 0 14 0;
#X restore 30 367 pd more window properties;
#X text 29 558 lighting 0|1 : turn lighting off/on (default 0);
#N canvas 190 228 580 527 more 0;
#X text 105 134 lighting 1/0 : turn lighting on/off;
#X text 263 186 ambient R G B : the ambient lighting color;
#X text 269 240 specular R G B : the specular lighting color;
#X text 197 277 shininess num : the shininess value;
#X text 132 326 fogmode 0/1/2/3 : set the fog mode (OFF/LINEAR/EXP/EXP^2)
;
#X text 298 447 fogcolor R G B : the color of the fog;
#X text 219 367 fog num : the fog density;
#X text 24 11 messages to the [gemwin] regarding lighting effects;
#X obj 24 116 tgl 15 0 empty empty empty 0 -6 0 10 -262144 -1 -1 0
1;
#X msg 24 134 lighting \$1;
#N canvas 714 134 566 458 color 0;
#X obj 103 100 hsl 128 15 0 1 0 0 empty empty R 12 8 1 12 -261689 -1
-1 0 1;
#X obj 236 100 hsl 128 15 0 1 0 0 empty empty G 12 8 1 12 -225271 -1
-1 0 1;
#X obj 370 100 hsl 128 15 0 1 0 0 empty empty B 12 8 1 12 -228992 -1
-1 0 1;
#X obj 100 329 outlet;
#X obj 132 253 list;
#X msg 132 273 set ambient \$1 \$2 \$3;
#X obj 233 144 t b f;
#X obj 367 144 t b f;
#X obj 100 201 pack 0 0 0;
#X obj 100 230 t b a;
#X connect 0 0 8 0;
#X connect 1 0 6 0;
#X connect 2 0 7 0;
#X connect 4 0 5 0;
#X connect 5 0 3 0;
#X connect 6 0 8 0;
#X connect 6 1 8 1;
#X connect 7 0 8 0;
#X connect 7 1 8 2;
#X connect 8 0 9 0;
#X connect 9 0 3 0;
#X connect 9 1 4 0;
#X coords 0 -1 1 1 400 13 1 100 100;
#X restore 35 165 pd color sliders;
#X msg 35 187 ambient 0 0 0;
#N canvas 714 134 566 366 color 0;
#X obj 103 100 hsl 128 15 0 1 0 0 empty empty R 12 8 1 12 -261689 -1
-1 0 1;
#X obj 236 100 hsl 128 15 0 1 0 0 empty empty G 12 8 1 12 -225271 -1
-1 0 1;
#X obj 370 100 hsl 128 15 0 1 0 0 empty empty B 12 8 1 12 -228992 -1
-1 0 1;
#X obj 100 299 outlet;
#X obj 132 223 list;
#X msg 132 242 set specular \$1 \$2 \$3;
#X obj 233 124 t b f;
#X obj 367 124 t b f;
#X obj 100 171 pack 0 0 0;
#X obj 100 199 t b a;
#X connect 0 0 8 0;
#X connect 1 0 6 0;
#X connect 2 0 7 0;
#X connect 4 0 5 0;
#X connect 5 0 3 0;
#X connect 6 0 8 0;
#X connect 6 1 8 1;
#X connect 7 0 8 0;
#X connect 7 1 8 2;
#X connect 8 0 9 0;
#X connect 9 0 3 0;
#X connect 9 1 4 0;
#X coords 0 -1 1 1 400 13 1 100 100;
#X restore 42 219 pd color sliders;
#X msg 42 241 specular 0 0 0;
#N canvas 710 134 570 462 color 0;
#X obj 103 100 hsl 128 15 0 1 0 0 empty empty R 12 8 1 12 -261689 -1
-1 0 1;
#X obj 236 100 hsl 128 15 0 1 0 0 empty empty G 12 8 1 12 -225271 -1
-1 0 1;
#X obj 370 100 hsl 128 15 0 1 0 0 empty empty B 12 8 1 12 -228992 -1
-1 0 1;
#X obj 100 299 outlet;
#X obj 132 223 list;
#X msg 132 242 set fogcolor \$1 \$2 \$3;
#X obj 233 125 t b f;
#X obj 367 125 t b f;
#X obj 100 171 pack 0 0 0;
#X obj 100 200 t b a;
#X connect 0 0 8 0;
#X connect 1 0 6 0;
#X connect 2 0 7 0;
#X connect 4 0 5 0;
#X connect 5 0 3 0;
#X connect 6 0 8 0;
#X connect 6 1 8 1;
#X connect 7 0 8 0;
#X connect 7 1 8 2;
#X connect 8 0 9 0;
#X connect 9 0 3 0;
#X connect 9 1 4 0;
#X coords 0 -1 1 1 400 13 1 100 100;
#X restore 54 426 pd color sliders;
#X msg 54 448 fogcolor 0 0 0;
#X msg 59 338 fogmode 0;
#N canvas 889 134 348 479 fog 0;
#X obj 84 239 outlet;
#X obj 100 101 hradio 15 1 0 4 empty empty empty 0 -6 0 10 -262144
-1 -1 0;
#X msg 207 182 set fogmode \$1;
#X obj 84 140 trigger bang float;
#X connect 1 0 3 0;
#X connect 2 0 0 0;
#X connect 3 0 0 0;
#X connect 3 1 2 0;
#X coords 0 -1 1 1 60 13 1 100 100;
#X restore 59 314 pd fog;
#X msg 50 288 shininess 0;
#N canvas 889 134 356 487 fog 0;
#X obj 84 239 outlet;
#X obj 84 140 trigger bang float;
#X msg 207 182 set shininess \$1;
#X obj 103 101 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 10 -262144
-1 -1 0 1;
#X connect 1 0 0 0;
#X connect 1 1 2 0;
#X connect 2 0 0 0;
#X connect 3 0 1 0;
#X coords 0 -1 1 1 133 13 1 100 100;
#X restore 50 266 pd fog;
#X msg 60 388 fog 0;
#N canvas 889 134 364 495 fog 0;
#X obj 84 239 outlet;
#X obj 84 140 trigger bang float;
#X obj 103 101 hsl 128 15 0 1 0 0 empty empty empty -2 -6 0 10 -262144
-1 -1 0 1;
#X msg 207 182 set fog \$1;
#X connect 1 0 0 0;
#X connect 1 1 3 0;
#X connect 2 0 1 0;
#X connect 3 0 0 0;
#X coords 0 -1 1 1 133 13 1 100 100;
#X restore 60 366 pd fog;
#X obj 24 68 gemhead;
#X obj 24 90 world_light;
#X obj 24 475 s \$0-gemwin-in;
#X text 23 34 Be careful: when you activate lighting \, you must have
some lights to see something \, such as:;
#X connect 8 0 9 0;
#X connect 9 0 24 0;
#X connect 10 0 11 0;
#X connect 11 0 24 0;
#X connect 12 0 13 0;
#X connect 13 0 24 0;
#X connect 14 0 15 0;
#X connect 15 0 24 0;
#X connect 16 0 24 0;
#X connect 17 0 16 0;
#X connect 18 0 24 0;
#X connect 19 0 18 0;
#X connect 20 0 24 0;
#X connect 21 0 20 0;
#X connect 22 0 23 0;
#X restore 30 575 pd more lighting;
#X obj 490 242 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X msg 490 261 color \$1 \$1 \$1;
#X text 29 635 stereo 0|1|2|3 : set 3D stereo-mode to off(0) \, 2-screen-mode(1)
\, Red/Green-mode(2);
#N canvas 680 259 468 458 draw_geos 0;
#X obj 64 53 gemhead;
#X obj 244 55 gemhead;
#X obj 244 159 rotateXYZ;
#X obj 398 109 f;
#X obj 398 158 % 360;
#X obj 398 134 + 1;
#X obj 398 86 metro 50;
#X obj 64 92 color 0.8 0.8 0.8;
#X obj 244 92 color 0.8 0.8 0.8;
#X obj 64 188 cube 0.75;
#X obj 64 118 translateXYZ 2 2 0;
#X obj 244 117 translateXYZ 2 -2 0;
#X obj 64 157 rotateXYZ 45 0 0;
#X obj 244 190 square 0.75;
#X obj 63 220 gemhead;
#X obj 243 222 gemhead;
#X obj 63 259 color 0.8 0.8 0.8;
#X obj 243 259 color 0.8 0.8 0.8;
#X obj 63 285 translateXYZ -2 2 0;
#X obj 63 308 sphere 0.75 30;
#X obj 243 284 translateXYZ -2 -2 0;
#X obj 243 310 circle 0.75;
#X obj 398 56 inlet;
#X connect 0 0 7 0;
#X connect 1 0 8 0;
#X connect 2 0 13 0;
#X connect 3 0 5 0;
#X connect 4 0 3 1;
#X connect 4 0 2 3;
#X connect 4 0 12 3;
#X connect 5 0 4 0;
#X connect 6 0 3 0;
#X connect 7 0 10 0;
#X connect 8 0 11 0;
#X connect 10 0 12 0;
#X connect 11 0 2 0;
#X connect 12 0 9 0;
#X connect 14 0 16 0;
#X connect 15 0 17 0;
#X connect 16 0 18 0;
#X connect 17 0 20 0;
#X connect 18 0 19 0;
#X connect 20 0 21 0;
#X connect 22 0 6 0;
#X restore 455 378 pd draw_geos;
#X msg 472 152 create \, 1;
#N canvas 255 86 448 630 buffering 0;
#X msg 63 127 buffer 1;
#X msg 78 152 buffer 2;
#X text 134 127 single buffering;
#X text 145 150 double buffering;
#X msg 111 244 bang;
#X text 152 254 swap the buffers (double buffer mode);
#X text 151 235 clear the buffer (single buffer mode);
#X text 30 16 messages to [gemwin] concerning the buffer rendering
mode;
#X msg 17 83 0 \, destroy;
#X msg 117 198 create \, 1;
#X text 195 197 ...and create it after;
#X obj 33 283 s \$0-gemwin-in;
#X text 95 84 destroy window before to set buffer mode...;
#X text 30 323 When you are in single buffer mode \, you must bang
the gemhead each time you want to draw. like:;
#X obj 33 383 loadbang;
#X msg 33 407 0;
#X obj 33 436 gemhead;
#X obj 149 383 metro 50;
#X obj 149 364 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X obj 33 519 rotateXYZ;
#X obj 176 426 f;
#X obj 176 472 % 360;
#X obj 33 580 square 0.75;
#X obj 33 550 translateXYZ 2 0 0;
#X text 172 363 toggle to draw;
#X obj 176 448 + 1;
#X obj 33 472 color 0.8 0.8 0.8;
#X text 29 33 Changing the rendering mode must be done before the window
is created in order to take effect.;
#X obj 176 494 t f f;
#X obj 149 405 t b b;
#X connect 0 0 11 0;
#X connect 1 0 11 0;
#X connect 4 0 11 0;
#X connect 8 0 11 0;
#X connect 9 0 11 0;
#X connect 14 0 15 0;
#X connect 15 0 16 0;
#X connect 16 0 26 0;
#X connect 17 0 29 0;
#X connect 18 0 17 0;
#X connect 19 0 23 0;
#X connect 20 0 25 0;
#X connect 21 0 28 0;
#X connect 23 0 22 0;
#X connect 25 0 21 0;
#X connect 26 0 19 0;
#X connect 28 0 19 3;
#X connect 28 1 20 1;
#X connect 29 0 16 0;
#X connect 29 1 20 0;
#X restore 355 405 pd buffering;
#N canvas 556 191 548 430 stereo-3D 0;
#X text 32 18 messages to [gemwin] regarding stereoscopic appearance:
;
#X msg 31 158 stereo \$1;
#X obj 31 398 s \$0-gemwin-in;
#X obj 31 60 vradio 15 1 0 4 empty empty empty 0 -8 0 10 -262144 -1
-1 0;
#X text 54 77 2 screen mode;
#X text 53 91 Red / Green mode;
#X text 105 158 set stereo-mode;
#X text 54 61 off;
#X msg 48 210 stereoSep \$1;
#X floatatom 48 188 5 0 0 0 - - -;
#X text 137 209 set the stereo-separation (default: -15);
#X msg 66 258 stereoFoc \$1;
#X text 150 259 set the stereo-focal;
#X floatatom 66 234 5 0 0 0 - - -;
#X obj 80 283 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 174 297 turn the seperation-line between the 2 screens in stereo-mode
1 on/off;
#X msg 79 344 0 \, destroy;
#X msg 79 369 create \, 1;
#X text 157 345 destroy window before to set stereo...;
#X text 157 368 ...and create it after;
#X text 53 106 Crystal Glasses mode (needs hardware support!);
#X msg 80 302 stereoLine \$1;
#X connect 1 0 2 0;
#X connect 3 0 1 0;
#X connect 8 0 2 0;
#X connect 9 0 8 0;
#X connect 11 0 2 0;
#X connect 13 0 11 0;
#X connect 14 0 21 0;
#X connect 16 0 2 0;
#X connect 17 0 2 0;
#X connect 21 0 2 0;
#X restore 354 641 pd stereo-3D;
#X text 464 132 basic create and start rendering;
#X text 513 241 change background color;
#X text 56 538 set the background color of the window (default 0 0
0);
#X text 30 238 dimen <x> <y>:;
#X text 30 333 offset <x> <y>:;
#X text 29 593 view <x> <y> <z> : translate the camera (default 0 0
4);
#N canvas 124 233 762 647 more 0;
#X text 43 11 messages to [gemwin] regarding the view-point ("camera")
;
#X text 312 389 perspec <left> <right> <bottom> <top> <front> <back>::
;
#X text 311 407 set the clipping planes of the view-point. this might
be what you need \, if all the objects that re further away than 20
units suddenly disappear;
#X text 311 449 default: -1 1 -1 1 1 20;
#X text 208 51 view <x> <y> <z>::;
#X text 208 70 translate the camera / set the viewpoint:: the viewing-direction
will not be changed.;
#X text 80 119 default: 0 0 4;
#X text 208 98 the viewing direction defaults to "0 0 1" \, with y-axis
as "up";
#X text 303 167 view <x> <y> <z> <azimuth>::;
#X text 303 184 view <x> <y> <z> <azimuth> <elevation>::;
#X text 303 201 translate/rotate camera/viewpoint \; the "up" direction
will still be the y-axis;
#X text 389 284 view <view_x> <view_y> <view_z> <target_x> <target_y>
<target_z> <up_x> <up_y> <up_z>::;
#X text 389 314 set viewpoint (view_X view_Y view_Z). the camera will
look at the target-point (target_X \, target_Y \, target_Z). "up" is
defined via the vector (up_X \, up_Y \, up_Z);
#X text 301 251 default: 0 0 4 0 0;
#X text 389 355 default: 0 0 4 0 0 0 0 1 0;
#X obj 25 588 s \$0-gemwin-in;
#X msg 25 101 view \$1 \$2 \$3;
#X msg 42 190 view \$1 \$2 \$3 \$4;
#X msg 49 250 view \$1 \$2 \$3 \$4 \$5;
#X msg 52 330 view \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8 \$9;
#X msg 101 452 perspec \$1 \$2 \$3 \$4 \$5 \$6;
#X text 310 467 if you want to remove perspective \, see [ortho];
#X msg 66 563 view 0 0 20 \, perspec -1 1 -1 1 4 50;
#N canvas 1299 508 544 500 perspec 0;
#X obj 90 428 outlet;
#X obj 268 273 t f f;
#X obj 268 298 * -1;
#X obj 90 268 t f f;
#X obj 90 293 * -1;
#X obj 90 367 pack -1 1 -1 1 1 20;
#X msg 90 389 set perspec \$1 \$2 \$3 \$4 \$5 \$6 \, bang;
#X msg 172 453 set perspec \, adddollar 1 \, adddollar 2 \, adddollar
3 \, adddollar 4 \, adddollar 5 \, adddollar 6;
#X floatatom 103 117 5 0.1 5 1 x_wideness - -;
#X floatatom 103 134 5 0.1 5 1 y_wideness - -;
#X floatatom 103 151 5 0 0 1 z_depth - -;
#X obj 360 196 select 1;
#X obj 405 219 t b f f;
#X obj 249 226 t b f f;
#X obj 204 203 select 0;
#X obj 360 218 f 20;
#X obj 204 224 f 1;
#X msg 204 246 set \$1;
#X msg 360 240 set \$1;
#X obj 134 216 t b f f;
#X obj 89 193 select 0;
#X obj 89 214 f 1;
#X msg 89 236 set \$1;
#X obj 328 97 loadbang;
#X obj 328 119 t b b;
#X obj 328 141 t b b b;
#X connect 1 0 2 0;
#X connect 1 1 5 3;
#X connect 2 0 5 2;
#X connect 3 0 4 0;
#X connect 3 1 5 1;
#X connect 4 0 5 0;
#X connect 5 0 6 0;
#X connect 6 0 0 0;
#X connect 7 0 0 0;
#X connect 8 0 20 0;
#X connect 9 0 14 0;
#X connect 10 0 11 0;
#X connect 11 0 15 0;
#X connect 11 1 12 0;
#X connect 12 0 5 0;
#X connect 12 1 5 5;
#X connect 12 2 15 1;
#X connect 13 0 5 0;
#X connect 13 1 1 0;
#X connect 13 2 16 1;
#X connect 14 0 16 0;
#X connect 14 1 13 0;
#X connect 15 0 18 0;
#X connect 16 0 17 0;
#X connect 17 0 9 0;
#X connect 18 0 10 0;
#X connect 19 1 3 0;
#X connect 19 2 21 1;
#X connect 20 0 21 0;
#X connect 20 1 19 0;
#X connect 21 0 22 0;
#X connect 22 0 8 0;
#X connect 23 0 24 0;
#X connect 24 0 25 0;
#X connect 24 1 7 0;
#X connect 25 0 21 0;
#X connect 25 1 16 0;
#X connect 25 2 15 0;
#X coords 0 -1 1 1 100 67 1 100 100;
#X restore 101 380 pd perspec;
#X text 292 554 the default camera has a very wide angle. this message
allows to narrow it.;
#N canvas 506 305 612 484 view 0;
#X floatatom 112 114 5 0 0 0 x - -;
#X floatatom 158 114 5 0 0 0 y - -;
#X floatatom 201 114 5 0 0 0 z - -;
#X floatatom 236 114 5 0 0 2 azimuth - -;
#X obj 369 109 loadbang;
#X obj 140 335 outlet;
#X obj 201 226 t b f;
#X obj 150 227 t b f;
#X obj 369 131 t b b;
#X msg 213 342 set view \, adddollar 1 \, adddollar 2 \, adddollar
3 \, adddollar 4;
#X obj 140 274 pack 0 0 4 0;
#X obj 251 226 t b f;
#X msg 398 196 set 4;
#X msg 140 296 set view \$1 \$2 \$3 \$4 \, bang;
#X connect 0 0 10 0;
#X connect 1 0 7 0;
#X connect 2 0 6 0;
#X connect 3 0 11 0;
#X connect 4 0 8 0;
#X connect 6 0 10 0;
#X connect 6 1 10 2;
#X connect 7 0 10 0;
#X connect 7 1 10 1;
#X connect 8 0 12 0;
#X connect 8 1 9 0;
#X connect 9 0 5 0;
#X connect 10 0 13 0;
#X connect 11 0 10 0;
#X connect 11 1 10 3;
#X connect 12 0 2 0;
#X connect 13 0 5 0;
#X coords 0 -1 1 1 180 30 1 100 100;
#X restore 42 156 pd view;
#N canvas 508 299 612 484 view 0;
#X floatatom 112 114 5 0 0 0 x - -;
#X floatatom 158 114 5 0 0 0 y - -;
#X floatatom 201 114 5 0 0 0 z - -;
#X floatatom 236 114 5 0 0 2 azimuth - -;
#X obj 369 109 loadbang;
#X obj 140 335 outlet;
#X obj 201 226 t b f;
#X obj 150 227 t b f;
#X obj 369 131 t b b;
#X obj 251 226 t b f;
#X msg 398 196 set 4;
#X msg 140 296 set view \$1 \$2 \$3 \$4 \$5 \, bang;
#X obj 140 274 pack 0 0 4 0 0;
#X floatatom 286 114 5 0 0 2 elevate - -;
#X obj 291 226 t b f;
#X msg 213 342 set view \, adddollar 1 \, adddollar 2 \, adddollar
3 \, adddollar 4 \, adddollar 5;
#X connect 0 0 12 0;
#X connect 1 0 7 0;
#X connect 2 0 6 0;
#X connect 3 0 9 0;
#X connect 4 0 8 0;
#X connect 6 0 12 0;
#X connect 6 1 12 2;
#X connect 7 0 12 0;
#X connect 7 1 12 1;
#X connect 8 0 10 0;
#X connect 8 1 15 0;
#X connect 9 0 12 0;
#X connect 9 1 12 3;
#X connect 10 0 2 0;
#X connect 11 0 5 0;
#X connect 12 0 11 0;
#X connect 13 0 14 0;
#X connect 14 0 12 0;
#X connect 14 1 12 4;
#X connect 15 0 5 0;
#X coords 0 -1 1 1 230 30 1 100 100;
#X restore 49 216 pd view;
#N canvas 509 296 612 484 view 0;
#X floatatom 112 114 5 0 0 0 x - -;
#X floatatom 158 114 5 0 0 0 y - -;
#X floatatom 201 114 5 0 0 0 z - -;
#X obj 369 109 loadbang;
#X obj 140 335 outlet;
#X obj 201 226 t b f;
#X obj 150 227 t b f;
#X obj 369 131 t b b;
#X msg 398 196 set 4;
#X obj 140 274 pack 0 0 4;
#X msg 140 296 set view \$1 \$2 \$3 \, bang;
#X msg 213 342 set view \, adddollar 1 \, adddollar 2 \, adddollar
3;
#X connect 0 0 9 0;
#X connect 1 0 6 0;
#X connect 2 0 5 0;
#X connect 3 0 7 0;
#X connect 5 0 9 0;
#X connect 5 1 9 2;
#X connect 6 0 9 0;
#X connect 6 1 9 1;
#X connect 7 0 8 0;
#X connect 7 1 11 0;
#X connect 8 0 2 0;
#X connect 9 0 10 0;
#X connect 10 0 4 0;
#X connect 11 0 4 0;
#X coords 0 -1 1 1 140 30 1 100 100;
#X restore 25 65 pd view;
#N canvas 380 50 612 484 view 0;
#X floatatom 214 114 5 0 0 2 X - -;
#X obj 166 22 loadbang;
#X obj 139 335 outlet;
#X obj 174 177 t b f;
#X obj 139 177 t b f;
#X obj 214 177 t b f;
#X msg 174 79 set 4;
#X floatatom 249 114 5 0 0 2 Y - -;
#X obj 249 177 t b f;
#X obj 139 274 pack 0 0 4 0 0 0 0 1 0;
#X floatatom 284 114 5 0 0 2 Z - -;
#X floatatom 104 114 5 0 0 2 x - -;
#X floatatom 139 114 5 0 0 2 y - -;
#X floatatom 174 114 5 0 0 2 z - -;
#X floatatom 324 114 5 0 0 2 upX - -;
#X floatatom 359 114 5 0 0 2 upY - -;
#X floatatom 394 114 5 0 0 2 upZ - -;
#X obj 284 177 t b f;
#X obj 324 177 t b f;
#X obj 359 177 t b f;
#X obj 394 177 t b f;
#X obj 324 199 t b;
#X obj 214 199 t b;
#X msg 139 296 set view \$1 \$2 \$3 \$4 \$5 \$6 \$7 \$8 \$9 \, bang
;
#X msg 251 22 set view \, adddollar 1 \, adddollar 2 \, adddollar 3
\, adddollar 4 \, adddollar 5 \, adddollar 6 \, adddollar 7 \, adddollar
8 \, adddollar 9;
#X obj 166 44 t b b b;
#X msg 359 79 set 1;
#X connect 0 0 5 0;
#X connect 1 0 25 0;
#X connect 3 0 9 0;
#X connect 3 1 9 2;
#X connect 4 0 9 0;
#X connect 4 1 9 1;
#X connect 5 0 22 0;
#X connect 5 1 9 3;
#X connect 6 0 13 0;
#X connect 7 0 8 0;
#X connect 8 0 22 0;
#X connect 8 1 9 4;
#X connect 9 0 23 0;
#X connect 10 0 17 0;
#X connect 11 0 9 0;
#X connect 12 0 4 0;
#X connect 13 0 3 0;
#X connect 14 0 18 0;
#X connect 15 0 19 0;
#X connect 16 0 20 0;
#X connect 17 0 22 0;
#X connect 17 1 9 5;
#X connect 18 0 21 0;
#X connect 18 1 9 6;
#X connect 19 0 21 0;
#X connect 19 1 9 7;
#X connect 20 0 21 0;
#X connect 20 1 9 8;
#X connect 21 0 22 0;
#X connect 22 0 9 0;
#X connect 23 0 2 0;
#X connect 24 0 2 0;
#X connect 25 0 6 0;
#X connect 25 1 26 0;
#X connect 25 2 24 0;
#X connect 26 0 15 0;
#X coords 0 -1 1 1 330 30 2 100 100;
#X restore 52 296 pd view;
#X text 309 229 azimuth and elevation are in degree [°];
#X connect 16 0 15 0;
#X connect 17 0 15 0;
#X connect 18 0 15 0;
#X connect 19 0 15 0;
#X connect 20 0 15 0;
#X connect 22 0 15 0;
#X connect 23 0 20 0;
#X connect 25 0 17 0;
#X connect 26 0 18 0;
#X connect 27 0 16 0;
#X connect 28 0 19 0;
#X restore 30 612 pd more viewing;
#X text 17 211 message to send before creation :;
#X text 17 462 message to send after creation :;
#X text 29 387 buffer 2|1 : set buffer-rendering mode to double (default)
or single (not clearing buffer);
#X text 456 60 reset settings and;
#X text 18 417 message regarding creation :;
#X obj 455 356 tgl 15 1 empty empty empty 17 7 0 10 -262144 -1 -1 0
1;
#X text 474 357 rotate objects;
#X text 554 196 destroy window;
#X text 484 177 (stop rendering and);
#X text 457 83 and start rendering;
#X text 456 72 create window with specific size;
#X text 29 522 color <r> <g> <b> :;
#X connect 12 0 11 0;
#X connect 13 0 11 0;
#X connect 22 0 11 0;
#X connect 36 0 37 0;
#X connect 37 0 11 0;
#X connect 40 0 11 0;
#X connect 55 0 39 0;

View file

@ -0,0 +1,91 @@
#N canvas 90 26 633 413 10;
#X text 452 8 GEM object;
#X obj 8 257 cnv 15 430 140 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 11 258 Inlets:;
#X text 10 348 Outlets:;
#X obj 8 222 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 222 Arguments:;
#X obj 7 66 cnv 15 430 150 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 451 77 cnv 15 170 170 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 456 108 cnv 15 160 130 empty empty empty 35 12 0 14 -24198 -66577
0;
#X text 14 361 Outlet 1: gemlist;
#X text 21 272 Inlet 1: gemlist;
#X obj 10 153 cnv 15 420 50 empty empty empty 20 12 0 14 -225280 -66577
0;
#X text 71 31 Class: shader object;
#X text 451 325 see also:;
#X obj 453 362 glsl_vertex;
#X text 14 157 IMPORTANT NOTE: your openGL-implementation (gfx-card
driver \, ...) has to support the GLSL-standard (which is part of openGL-2.0)
in order to make use of this object.;
#X floatatom 545 216 0 0 0 0 ID - -;
#X obj 459 193 glsl_fragment;
#X obj 453 342 glsl_program;
#X text 50 12 Synopsis: [glsl_fragment];
#X text 13 66 Description: load a GLSL fragment shader;
#X text 14 85 [glsl_fragment] loads and compiles a GLSL fragment shader
into a module \, suitable for linking with [glsl_program];
#X text 17 118 An ID of the generated module is sent to the 2nd outlet.
Use this ID in the "shader" message to [glsl_program];
#X text 63 233 <filename>: filename to load as GLSL fragment shader
;
#X text 21 284 Inlet 1: "open <filename>": filename to load as GLSL
fragment shader module.;
#X text 21 315 Inlet 1: "print": print info about the GLSL-support
in your openGL implementation;
#X text 14 376 Outlet 2: <float>: ID of the GLSL-module;
#X obj 459 86 gemhead;
#X msg 552 170 print;
#X obj 521 261 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 526 300 pd gemwin;
#X msg 526 281 create;
#X text 522 260 Create window:;
#X obj 527 117 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 22 450 300 open 0;
#X obj 312 45 openpanel;
#X obj 311 157 outlet;
#X obj 312 69 t b s;
#X msg 332 94 set open \$1;
#X obj 312 22 inlet;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 2 1 3 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X restore 470 116 pd open;
#X msg 470 136 open Toon.frag;
#X obj 453 382 glsl_geometry;
#X connect 18 1 17 0;
#X connect 28 0 18 0;
#X connect 29 0 18 0;
#X connect 31 0 32 0;
#X connect 32 0 31 0;
#X connect 34 0 35 0;
#X connect 35 0 36 0;
#X connect 36 0 18 0;

View file

@ -0,0 +1,91 @@
#N canvas 40 32 633 413 10;
#X text 452 8 GEM object;
#X obj 8 257 cnv 15 430 140 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 11 258 Inlets:;
#X text 10 348 Outlets:;
#X obj 8 222 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 222 Arguments:;
#X obj 7 66 cnv 15 430 150 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 451 77 cnv 15 170 170 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 456 108 cnv 15 160 130 empty empty empty 35 12 0 14 -24198 -66577
0;
#X text 14 361 Outlet 1: gemlist;
#X text 21 272 Inlet 1: gemlist;
#X obj 10 153 cnv 15 420 50 empty empty empty 20 12 0 14 -225280 -66577
0;
#X text 71 31 Class: shader object;
#X text 451 325 see also:;
#X floatatom 546 219 0 0 0 0 ID - -;
#X obj 460 196 glsl_geometry;
#X obj 453 342 glsl_program;
#X text 50 12 Synopsis: [glsl_geometry];
#X text 13 66 Description: load a GLSL geometry shader;
#X text 14 85 [glsl_geometry] loads and compiles a GLSL geometry shader
into a module \, suitable for linking with [glsl_program];
#X text 17 118 An ID of the generated module is sent to the 2nd outlet.
Use this ID in the "shader" message to [glsl_program];
#X text 63 233 <filename>: filename to load as GLSL geometry shader
;
#X text 21 284 Inlet 1: "open <filename>": filename to load as GLSL
geometry shader module.;
#X text 21 315 Inlet 1: "print": print info about the GLSL-support
in your openGL implementation;
#X text 14 376 Outlet 2: <float>: ID of the GLSL-module;
#X obj 460 86 gemhead;
#X msg 521 174 print;
#X obj 521 261 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 526 300 pd gemwin;
#X msg 526 281 create;
#X text 522 260 Create window:;
#X obj 453 363 glsl_fragment;
#X obj 530 120 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 22 450 300 open 0;
#X obj 312 45 openpanel;
#X obj 312 157 outlet;
#X obj 312 69 t b s;
#X msg 332 94 set open \$1;
#X obj 312 22 inlet;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 2 1 3 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X restore 473 119 pd open;
#X obj 453 383 glsl_geometry;
#X msg 473 141 open Toon.geom;
#X text 14 157 IMPORTANT NOTE: your openGL-implementation (gfx-card
driver \, ...) has to support the GLSL-standard (which is part of openGL-2.1)
in order to make use of this object.;
#X connect 16 1 15 0;
#X connect 26 0 16 0;
#X connect 27 0 16 0;
#X connect 29 0 30 0;
#X connect 30 0 29 0;
#X connect 33 0 34 0;
#X connect 34 0 36 0;
#X connect 36 0 16 0;

View file

@ -0,0 +1,112 @@
#N canvas 23 79 651 581 10;
#X text 452 8 GEM object;
#X obj 8 307 cnv 15 430 260 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 11 308 Inlets:;
#X text 10 524 Outlets:;
#X obj 8 272 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 272 Arguments:;
#X obj 7 56 cnv 15 430 210 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 450 138 cnv 15 160 90 empty empty empty 20 12 0 14 -24198 -66577
0;
#X text 63 283 <none>;
#X text 14 537 Outlet 1: gemlist;
#X text 21 322 Inlet 1: gemlist;
#X obj 10 213 cnv 15 420 50 empty empty empty 20 12 0 14 -225280 -66577
0;
#X text 71 31 Class: shader object;
#X text 451 345 see also:;
#X obj 451 188 glsl_program;
#X msg 451 272 gemList;
#X obj 453 362 glsl_fragment;
#X obj 453 382 glsl_vertex;
#X text 50 12 Synopsis: [glsl_program];
#X text 13 56 Description: link GLSL-modules into a shader program
;
#X text 14 75 [glsl_program] links together GLSL-modules (created by
[glsl_fragment] and [glsl_vertex]) and sets up the resulting openGL-2.0
shader program.;
#X text 16 118 [glsl_program] detects which parameters of the shader
can be modified by the user ("uniform variables") \, and allows the
user to modify them via messages. If the shader-program has a uniform
variable named "bla" of type float \, then you can send a message [bla
0.5( to the [glsl_program] to set this variable to "0.5".;
#X text 14 217 IMPORTANT NOTE: your openGL-implementation (gfx-card
driver \, ...) has to support the GLSL-standard (which is part of openGL-2.0)
in order to make use of this object.;
#X text 21 364 Inlet 1: "shader <list>": list of shader-module IDs
as reported generated by [glsl_fragment] and [glsl_vertex];
#X text 21 395 Inlet 1: "link": link the shader-modules given via the
"shader"-message;
#X text 21 425 Inlet 1: "link <list>": link the shader-modules given
\; (this is the same as "shader <list>"+"link");
#X text 17 198 An ID of the generated program is sent to the 2nd outlet.
;
#X text 14 552 Outlet 2: <float>: ID of the linked glsl_program;
#X text 21 456 Inlet 1: "<uniformName> <uniformParm>...": set the uniform
variable of name uniformName to the (list of) uniformParms. this is
only valid after successfully linking a program;
#X floatatom 530 211 5 0 0 0 ID - -;
#X msg 462 162 link;
#X msg 518 140 shader 1 3;
#X obj 451 86 gemhead;
#X msg 460 140 print;
#X msg 518 161 link 1 3;
#X obj 513 257 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 197 134 destroy;
#X msg 132 112 reset \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 518 296 pd gemwin;
#X msg 518 277 create;
#X text 514 256 Create window:;
#X text 21 335 Inlet 1: "print": print info about the GLSL-support
in your openGL implementation and about the linked program;
#N canvas 74 576 496 338 geometry 0;
#X obj 28 27 cnv 15 430 280 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 33 47 when using geometry-shaders (with [glsl_geometry]) you
have to tell [glsl_program] about the input-type (depending on the
geometry you feed to the glsl-program) \, the output-type (that you
create by the shader) and the number of vertices generated;
#X text 31 158 Inlet 1: "geometry_intype <inputtype>": input type of
geometry (default: GL_TRIANGLES);
#X text 31 188 Inlet 1: "geometry_outtype <outputtype>": output type
of geometry (default: GL_TRIANGLE_STRIP);
#X text 31 223 Inlet 1: "geometry_type <inputtype> <outputtype>": combination
of "intype" and "outtype";
#X text 31 262 Inlet 1: "geometry_outvertices <#vertices> <outputtype>":
number of vertices to be created (default: MAX_OUTPUT_VERTICES);
#X text 38 128 you might want to set these before linking the shaders!!
;
#X restore 29 503 pd geometry shaders;
#X obj 453 402 glsl_geometry;
#X connect 16 0 17 0;
#X connect 16 1 31 0;
#X connect 32 0 16 0;
#X connect 33 0 16 0;
#X connect 34 0 16 0;
#X connect 35 0 16 0;
#X connect 36 0 16 0;
#X connect 38 0 39 0;
#X connect 39 0 38 0;

View file

@ -0,0 +1,90 @@
#N canvas 40 32 633 413 10;
#X text 452 8 GEM object;
#X obj 8 257 cnv 15 430 140 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 11 258 Inlets:;
#X text 10 348 Outlets:;
#X obj 8 222 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 222 Arguments:;
#X obj 7 66 cnv 15 430 150 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 451 77 cnv 15 170 170 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 456 108 cnv 15 160 130 empty empty empty 35 12 0 14 -24198 -66577
0;
#X text 14 361 Outlet 1: gemlist;
#X text 21 272 Inlet 1: gemlist;
#X obj 10 153 cnv 15 420 50 empty empty empty 20 12 0 14 -225280 -66577
0;
#X text 71 31 Class: shader object;
#X text 451 325 see also:;
#X text 14 157 IMPORTANT NOTE: your openGL-implementation (gfx-card
driver \, ...) has to support the GLSL-standard (which is part of openGL-2.0)
in order to make use of this object.;
#X floatatom 546 219 0 0 0 0 ID - -;
#X obj 460 196 glsl_vertex;
#X obj 453 342 glsl_program;
#X text 50 12 Synopsis: [glsl_vertex];
#X text 13 66 Description: load a GLSL vertex shader;
#X text 14 85 [glsl_vertex] loads and compiles a GLSL vertex shader
into a module \, suitable for linking with [glsl_program];
#X text 17 118 An ID of the generated module is sent to the 2nd outlet.
Use this ID in the "shader" message to [glsl_program];
#X text 63 233 <filename>: filename to load as GLSL vertex shader;
#X text 21 284 Inlet 1: "open <filename>": filename to load as GLSL
vertex shader module.;
#X text 21 315 Inlet 1: "print": print info about the GLSL-support
in your openGL implementation;
#X text 14 376 Outlet 2: <float>: ID of the GLSL-module;
#X obj 460 86 gemhead;
#X msg 521 174 print;
#X obj 521 261 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 197 134 destroy;
#X msg 132 112 reset \, create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 526 300 pd gemwin;
#X msg 526 281 create;
#X text 522 260 Create window:;
#X obj 453 362 glsl_fragment;
#X obj 530 120 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 22 450 300 open 0;
#X obj 312 45 openpanel;
#X obj 311 157 outlet;
#X obj 312 69 t b s;
#X msg 332 94 set open \$1;
#X obj 312 22 inlet;
#X connect 0 0 2 0;
#X connect 2 0 1 0;
#X connect 2 1 3 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X restore 473 119 pd open;
#X msg 473 139 open Toon.vert;
#X obj 453 382 glsl_geometry;
#X connect 17 1 16 0;
#X connect 27 0 17 0;
#X connect 28 0 17 0;
#X connect 30 0 31 0;
#X connect 31 0 30 0;
#X connect 34 0 35 0;
#X connect 35 0 36 0;
#X connect 36 0 17 0;

View file

@ -0,0 +1,88 @@
#N canvas 344 47 655 397 10;
#X text 452 8 GEM object;
#X obj 8 216 cnv 15 430 70 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 218 Inlets:;
#X text 39 250 Outlets:;
#X obj 8 176 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X obj 8 76 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 186 cnv 15 80 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 84 gemhead;
#X obj 510 85 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#N canvas 0 22 591 370 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#X obj 77 281 pix_buf;
#X msg 103 257 auto 1;
#X obj 103 236 loadbang;
#X text 156 263 [pix_buf] with auto 1 is important if we want to recalculate
our pix-effect each frame but don't want to reload the image all the
time.;
#X obj 77 205 pix_image examples/data/fractal.JPG;
#X connect 0 0 9 0;
#X connect 2 0 4 0;
#X connect 3 0 9 0;
#X connect 4 0 3 0;
#X connect 5 0 1 0;
#X connect 6 0 5 0;
#X connect 7 0 6 0;
#X connect 9 0 5 0;
#X restore 451 113 pd image;
#X text 63 186 <none>;
#X text 57 263 Outlet 1: gemlist;
#X text 63 232 Inlet 1: gemlist;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X obj 451 196 imageVert;
#X text 10 135 This is still experimental...please report any problems
or suggestions with it.;
#X text 14 91 [imageVert] maps a pix to a series of polygons. The height
of the polygons is the sum of the colors (so brighter pixels will be
taller \, while darker pixels are shorter).;
#X text 29 77 Description: map luminance to height;
#X text 50 12 Synopsis: [imageVertp];
#X text 71 31 Class: geometric object;
#X obj 451 165 rotateXYZ;
#X floatatom 476 144 5 0 0 0 - - -;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 16 0;
#X connect 15 0 16 1;
#X connect 16 0 28 0;
#X connect 28 0 22 0;
#X connect 29 0 28 1;
#X connect 29 0 28 2;

98
Gem/help/light-help.pd Normal file
View file

@ -0,0 +1,98 @@
#N canvas 124 217 710 507 10;
#X text 475 49 Example:;
#X obj 7 64 cnv 15 450 220 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 336 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 339 Inlets:;
#X obj 8 296 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 295 Arguments:;
#X text 452 8 GEM object;
#X text 27 351 Inlet 1: gemlist;
#X text 9 406 Outlets:;
#X text 21 419 Outlet 1: gemlist;
#X obj 469 67 cnv 15 170 320 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 474 321 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 256 112 destroy;
#X obj 322 45 inlet;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 8 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 479 360 pd gemwin;
#X msg 479 341 create;
#X text 475 320 Create window:;
#X obj 475 160 cnv 15 150 100 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 483 74 gemhead;
#X text 33 14 Synopsis: [light];
#X text 53 30 Class: non-geometric object;
#X text 7 69 Description: adds a point-light to the scene;
#X text 18 86 [light] produces a light which is local to the scene
(unlike [world_light] which is at an infinite distance). Because light
is local light \, there is more computation required. Use a world_light
if you don't mind parallel light rays.;
#X text 27 373 Inlet 1: message: debug 1|0;
#X text 28 388 Inlet 2: list: 3(RGB) or 4(RGBA) float values;
#X obj 483 235 light;
#X msg 570 213 1 1 1;
#X obj 527 163 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 527 184 debug \$1;
#X text 19 219 Keep in mind that the attributes have to be set before
rendering the vertices \, so if you are trying for frame accurate rendering
\, you will want to set the gemhead order to a low nuber so that all
of the values of the light get set first.;
#X obj 472 296 sphere;
#X floatatom 563 78 5 0 0 0 - - -;
#X obj 483 139 translateXYZ 2 0 0;
#X obj 483 96 rotateXYZ 0 -120 0;
#X obj 472 274 gemhead 40;
#X floatatom 523 121 5 1 4 0 - - -;
#X obj 549 261 cnv 15 85 50 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 551 288 lighting \$1;
#X obj 551 266 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 17 155 You can place the light with [rotate] and [translate].
If you are lost use "debug" to display the light source as a small
sphere.;
#X msg 513 213 1 1 0;
#X text 18 200 The second inlet sets the color of the light-source.
;
#X text 63 307 light-number;
#X obj 492 175 tgl 20 0 empty \$0-onoff empty 17 7 0 10 -262144 -1
-1 0 1;
#X text 27 362 Inlet 1: float: turn light on(1)/off(0);
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 16 0 31 0;
#X connect 24 0 23 1;
#X connect 25 0 26 0;
#X connect 26 0 23 0;
#X connect 29 0 31 2;
#X connect 30 0 23 0;
#X connect 31 0 30 0;
#X connect 32 0 28 0;
#X connect 33 0 30 1;
#X connect 35 0 12 1;
#X connect 36 0 35 0;
#X connect 38 0 23 1;
#X connect 41 0 23 0;

View file

@ -0,0 +1,69 @@
#N canvas 37 45 711 482 10;
#X text 458 11 GEM object;
#X text 41 430 see also:;
#X obj 115 429 linear_path;
#X text 54 22 Synopsis: [linear_path];
#X obj 504 56 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 510 38 Example:;
#X obj 22 60 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 22 288 cnv 15 450 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 23 288 Inlets:;
#X obj 22 164 cnv 15 450 120 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 31 164 Arguments:;
#X text 22 328 Outlets:;
#X obj 516 212 unpack 0 0 0;
#X floatatom 516 279 0 0 0 0 - - -;
#X floatatom 550 257 0 0 0 0 - - -;
#X floatatom 585 235 0 0 0 0 - - -;
#X floatatom 524 112 5 0 0 0 - - -;
#X text 22 64 Description: reads out a table;
#X text 48 78 You can specify the reading-point by sending a float
between 0.0f (beginning of table) and 1.0f (end of table). Between
points \, a linear interpolation is made.;
#X text 48 120 You can set the table to be read with the "open" message
or as the second creation-argument.;
#X text 89 197 [linear_path] is able to excerpt more than 1 dimension
of a linear table. You can specify the dimension <D> of the table with
the first creation-argument. (default 1);
#X text 44 346 Outlet 1:;
#X text 46 307 Inlet 1: reading point 0.0f...1.0f;
#X obj 519 71 hsl 128 15 0 127 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 516 90 / 127;
#N canvas 0 22 450 300 (subpatch) 0;
#X array array 102 float 1;
#A 0 0 0 0 0 0 0 0 0 0.220005 0.460011 0.520012 0.540012 0.580013 0.580013
0.580013 0.160004 -0.0200005 -0.140003 -0.300007 -0.42001 -0.660015
0.42001 0.44001 0.44001 0.44001 0.560013 0.560013 0.560013 0.260006
0.0800018 -0.280006 0.520012 0.400009 0.313341 0.226672 0.140003 -0.120003
-0.190004 -0.260006 -0.380009 -0.520012 0.300007 0.640015 0.640015
0.640015 0.460011 0.330008 0.200005 -0.760017 -0.760017 -0.760017 -0.760017
-0.760017 -0.760017 -0.760017 -0.760017 -0.760017 -0.760017 -0.760017
-0.760017 0.42001 0.520012 0.560013 0.620014 0.620014 0.620014 0.580013
0.530012 0.480011 0.280006 0.180004 0.130003 -0.0400009 0.44001 0.44001
0.400009 0.320007 0.180004 -0.0400009 -0.180004 -0.160004 -0.0400009
0.0200005 0.0800018 0.160004 0.240005 0.360008 0.520012 0.660015 0.500011
0.380009 0.120003 -0.200005 -0.240005 0 0 0 0 0 0 0 0;
#X coords 0 1 101 -1 170 100 1;
#X restore 503 337 graph;
#X obj 511 132 cnv 15 130 60 empty empty empty 20 12 0 14 -24198 -66577
0;
#X text 48 183 dimensions of the table;
#X text 102 346 a list of <D> floats. A multi-dimensional table stores
its values in n-tuples like: "<r1> <g1> <b1> <r2> <g2> <b2>..." Therefore
\, a table must have the size <D>*<n>;
#X text 50 240 name of the table;
#X obj 516 168 linear_path 3 array;
#X msg 543 140 open array;
#X connect 12 0 13 0;
#X connect 12 1 14 0;
#X connect 12 2 15 0;
#X connect 23 0 24 0;
#X connect 24 0 16 0;
#X connect 24 0 30 0;
#X connect 30 0 12 0;
#X connect 31 0 30 0;

View file

@ -0,0 +1,76 @@
#N canvas 379 171 706 465 10;
#X text 54 30 Class: geometric object;
#X obj 470 65 cnv 15 230 390 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 593 385 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 598 424 pd gemwin;
#X msg 598 405 create;
#X text 594 384 Create window:;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 150 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X text 27 277 Inlet 2: float: size;
#X text 468 21 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 321 Outlets:;
#X text 21 334 Outlet 1: gemlist;
#X text 476 47 Example:;
#X obj 473 96 cnv 15 220 280 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 476 127 draw line;
#X msg 476 146 draw point;
#X obj 544 72 gemhead;
#X floatatom 647 318 5 0 0 0 - - -;
#X text 647 302 size;
#X msg 476 108 draw default;
#X msg 478 223 grid \$1;
#X floatatom 478 205 5 0 0 0 - - -;
#X obj 478 292 t a;
#X obj 476 167 t a;
#X text 7 69 Description: Renders a mesh;
#X text 27 247 Inlet 1: message: draw [line|defaulf|point];
#X text 27 261 Inlet 1: list: grid float : change the grid resolution
;
#X obj 544 340 mesh_line 3;
#X text 32 14 Synopsis: [mesh_line];
#X text 16 86 The [mesh_line] object renders a mesh in a line at the
current position with current color. The size of the line can be changed
via the second inlet. This object is usefull when working with vertex_shader
;
#X text 63 186 resolution of the line mesh;
#X text 575 107 (draw line);
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 18 0 27 0;
#X connect 19 0 27 0;
#X connect 20 0 31 0;
#X connect 21 0 31 1;
#X connect 23 0 27 0;
#X connect 24 0 26 0;
#X connect 25 0 24 0;
#X connect 26 0 31 0;
#X connect 27 0 31 0;

View file

@ -0,0 +1,87 @@
#N canvas 91 105 706 465 10;
#X text 54 30 Class: geometric object;
#X obj 470 65 cnv 15 230 390 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 593 385 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 598 424 pd gemwin;
#X msg 598 405 create;
#X text 594 384 Create window:;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 150 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X text 27 302 Inlet 2: float: size;
#X text 468 21 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 321 Outlets:;
#X text 21 334 Outlet 1: gemlist;
#X text 476 47 Example:;
#X obj 473 96 cnv 15 220 280 empty empty empty 20 12 0 14 -24198 -66577
0;
#X msg 476 127 draw line;
#X msg 476 146 draw point;
#X obj 544 72 gemhead;
#X floatatom 647 318 5 0 0 0 - - -;
#X text 647 302 size;
#X text 32 14 Synopsis: [mesh_square];
#X obj 545 342 mesh_square 3 3;
#X msg 476 108 draw default;
#X msg 478 223 grid \$1;
#X floatatom 478 205 5 0 0 0 - - -;
#X floatatom 483 247 5 0 0 0 - - -;
#X msg 483 265 gridX \$1;
#X floatatom 552 247 5 0 0 0 - - -;
#X msg 552 265 gridY \$1;
#X obj 478 292 t a;
#X obj 476 167 t a;
#X text 7 69 Description: Renders a mesh;
#X text 63 186 resolution of the mesh;
#X text 27 247 Inlet 1: message: draw [line|defaulf|point];
#X text 27 261 Inlet 1: list: grid float : change the grid resolution
;
#X text 27 274 Inlet 1: list: gridX float : change the X grid resolution
;
#X text 27 288 Inlet 1: list: gridY float : change the Y grid resolution
;
#X text 16 86 The [mesh_square] object renders a mesh in a square at
the current position with current color. The size of the square can
be changed via the second inlet. This object is usefull when working
with vertex_shader;
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 18 0 33 0;
#X connect 19 0 33 0;
#X connect 20 0 24 0;
#X connect 21 0 24 1;
#X connect 25 0 33 0;
#X connect 26 0 32 0;
#X connect 27 0 26 0;
#X connect 28 0 29 0;
#X connect 29 0 32 0;
#X connect 30 0 31 0;
#X connect 31 0 32 0;
#X connect 32 0 24 0;
#X connect 33 0 24 0;

121
Gem/help/model-help.pd Normal file
View file

@ -0,0 +1,121 @@
#N canvas 407 65 710 632 10;
#X text 54 30 Class: geometric object;
#X obj 464 77 cnv 15 200 280 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 466 364 cnv 15 200 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 \, lighting 1;
#X msg 298 112 destroy \, reset;
#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 restore 471 403 pd gemwin;
#X msg 471 384 create;
#X text 468 365 Create window:;
#X text 475 59 Example:;
#X obj 7 67 cnv 15 450 200 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 316 cnv 15 450 260 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 321 Inlets:;
#X obj 8 276 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 275 Arguments:;
#X text 452 8 GEM object;
#X text 27 333 Inlet 1: gemlist;
#X text 9 560 Outlets:;
#X text 21 573 Outlet 1: gemlist;
#X obj 472 136 cnv 15 180 165 empty empty empty 20 12 0 14 -106458
-66577 0;
#X text 33 14 Synopsis: [model];
#X text 7 69 Description: Renders an Alias/Wavefront-Model.;
#X text 16 86 The model object renders 3D-models that are saved in
Alias/Wavefront's OBJ-format.;
#X text 63 286 optional: name of a OBJ-file to be loaded;
#X obj 470 313 cnv 15 50 30 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 583 384 gemhead;
#X obj 583 403 world_light;
#X obj 552 302 cnv 15 100 50 empty empty empty 20 12 0 14 -106458 -66577
0;
#X obj 473 84 gemhead;
#X obj 473 319 model;
#X obj 486 140 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X obj 486 158 openpanel;
#X obj 574 144 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 574 164 rescale \$1;
#X msg 490 224 smooth \$1;
#X obj 574 204 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 574 224 revert \$1;
#X msg 486 274 material \$1;
#X msg 574 274 texture \$1;
#X msg 576 326 group \$1;
#X floatatom 490 206 5 0 1 0 - - -;
#X msg 486 179 open \$1;
#X obj 576 308 hradio 15 1 0 3 empty empty empty 0 -6 0 8 -262144 -1
-1 0;
#X text 27 350 Inlet 1: message: open <filename.obj>;
#X text 27 367 Inlet 1: message: rescale 1|0 :: normalize the model
(must be set PRIOR to opening a model (default: 1);
#X text 26 444 Inlet 1: message: material 1|0 :: use material-information
(from the .MTL-file);
#X text 27 522 Inlet 1: message: group <int> :: draw only specified
part of the model (0==all groups);
#X text 16 114 To normalize the size and pivot-point of a loaded model
use the "rescale"-message prior(!) to loading the model.;
#X text 27 426 Inlet 1: message: revert 1|0 :: revert faces;
#X text 16 142 The amount of smoothing of the model-facets can be set
via the "smooth"-message.;
#X text 17 168 Some models have material-information stored in a separate
MTL-file. If these materials should be used instead of GEM's [color]
(and friends) use the "material"-message.;
#X text 16 234 Model can consist of several parts \, so-called "groups".
Normally all groups are rendered \, but you can specify specific groups
to be displayed.;
#X obj 473 115 color 1 0 0;
#X obj 486 254 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 27 397 Inlet 1: message: smooth <float> :: set smoothing factor
( 0.0==flat. 1.0==smooth. default=0.5);
#X text 27 474 Inlet 1: message: texture 0|1|2 :: 0==linear texturing
\, 1==sphere mapping \, 2==UV-mapping (default);
#X obj 574 254 hradio 15 1 0 3 empty empty empty 0 -6 0 8 -262144 -1
-1 0;
#X text 17 210 Images can be applied either as linear \, spheric or
UV textures.;
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 22 0 23 0;
#X connect 25 0 49 0;
#X connect 27 0 28 0;
#X connect 28 0 38 0;
#X connect 29 0 30 0;
#X connect 30 0 26 0;
#X connect 31 0 26 0;
#X connect 32 0 33 0;
#X connect 33 0 26 0;
#X connect 34 0 26 0;
#X connect 35 0 26 0;
#X connect 36 0 26 0;
#X connect 37 0 31 0;
#X connect 38 0 26 0;
#X connect 39 0 36 0;
#X connect 49 0 26 0;
#X connect 50 0 34 0;
#X connect 53 0 35 0;

View file

@ -0,0 +1,69 @@
#N canvas 368 22 710 565 10;
#X text 54 30 Class: geometric object;
#X obj 464 77 cnv 15 200 180 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 466 294 cnv 15 200 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 \, lighting 1;
#X msg 298 112 destroy \, reset;
#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 restore 471 333 pd gemwin;
#X msg 471 314 create;
#X text 468 295 Create window:;
#X text 475 59 Example:;
#X obj 7 67 cnv 15 450 200 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 316 cnv 15 450 160 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 321 Inlets:;
#X obj 8 276 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 275 Arguments:;
#X text 452 8 GEM object;
#X text 27 333 Inlet 1: gemlist;
#X text 9 420 Outlets:;
#X text 21 433 Outlet 1: gemlist;
#X obj 469 146 cnv 15 190 35 empty empty empty 20 12 0 14 -106458 -66577
0;
#X obj 470 203 cnv 15 50 30 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 583 314 gemhead;
#X obj 583 333 world_light;
#X obj 473 84 gemhead;
#X obj 492 413 model;
#X text 472 394 see also:;
#X text 33 14 Synopsis: [multimodel];
#X text 19 117 The open message is the name of the of model file \,
the base model number (ie \, what number to start at) \, the top model
number (what number to end at) \, and the skip rate (how to count).
;
#X text 18 180 When you send the open message \, multimodel looks for
the * in the file name and replaces it with a number.;
#X obj 473 209 multimodel;
#X msg 482 156 open mymodel*.obj 0 10 1;
#X text 27 350 Inlet 1: message: open <filename*.obj> <basenumber>
<topnumber> <skip>;
#X obj 563 412 pix_multiimage;
#X text 7 69 Description: load multiple an Alias/Wavefront-Model and
renders one of them;
#X text 18 386 for other messages to [multimodel] see [model];
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 18 0 19 0;
#X connect 20 0 26 0;
#X connect 27 0 26 0;

158
Gem/help/newWave-help.pd Normal file
View file

@ -0,0 +1,158 @@
#N canvas 402 236 760 620 10;
#X text 54 27 Class: geometric object;
#X obj 479 47 cnv 15 250 550 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 484 533 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 454 304 gemwin 0;
#X obj 131 164 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 198 112 destroy;
#X msg 131 140 create \, 1 \, lighting 1;
#X obj 298 149 world_light;
#X obj 298 122 gemhead;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 9 0 8 0;
#X restore 489 571 pd gemwin;
#X msg 489 552 create;
#X text 485 532 Create window:;
#X text 485 29 Example:;
#X obj 7 47 cnv 15 450 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 199 cnv 15 450 260 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 19 198 Inlets:;
#X obj 8 143 cnv 15 450 50 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 142 Arguments:;
#X text 26 347 Inlet 1: message: draw [line|fill|point];
#X text 452 8 GEM object;
#X text 27 210 Inlet 1: gemlist;
#X text 9 420 Outlets:;
#X text 20 433 Outlet 1: gemlist;
#X obj 484 141 cnv 15 240 380 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 494 54 gemhead;
#X floatatom 592 446 5 0 0 2 size - -;
#X floatatom 593 475 5 0 0 2 height - -;
#X floatatom 526 96 5 0 0 0 - - -;
#X msg 523 172 draw line;
#X msg 523 192 draw fill;
#X msg 523 212 draw point;
#X text 33 11 Synopsis: [newWave];
#X text 26 377 Inlet 2: float: size (dimX & dimY);
#X text 26 391 Inlet 3: float: height (dimZ);
#X text 26 405 Inlet 4: int: action;
#X obj 565 254 vradio 11 1 0 11 empty empty action -10 -6 0 8 -262144
-1 -1 0;
#X floatatom 626 158 5 0 100 0 - - -;
#X obj 626 176 / 100;
#X msg 626 195 K1 \$1;
#X text 16 68 The newWaves object renders a number of waving square
at the current position with current color. The size of the square
can be changed via the inlet2 \, the height of the wave can be set
via the 3rd inlet. You can also set the wave-form (inlet4);
#X text 26 223 Inlet 1: bang: trigger waving;
#X obj 494 459 t a b;
#X floatatom 626 218 5 0 100 0 - - -;
#X obj 626 236 / 100;
#X floatatom 626 278 5 0 100 0 - - -;
#X obj 626 296 / 100;
#X floatatom 676 158 5 0 100 0 - - -;
#X obj 676 176 / 100;
#X floatatom 676 218 5 0 100 0 - - -;
#X obj 676 236 / 100;
#X floatatom 676 278 5 0 100 0 - - -;
#X obj 676 296 / 100;
#X msg 676 195 D1 \$1;
#X msg 676 255 D2 \$1;
#X msg 676 315 D3 \$1;
#X msg 626 315 K3 \$1;
#X msg 626 255 K2 \$1;
#X obj 595 272 t a;
#X obj 595 212 t a;
#X obj 595 332 t a;
#X text 27 237 Inlet 1: K1 \, D1 \, K2 \, D2 \, K3 \, D3: weight/damping
factors (defaults: K1=0.05 D1=0.1 K2=K3=D2=D3=0);
#X msg 590 364 position 1 1 10;
#X text 25 265 Inlet 1: message: position (X Y Z): clamp the node at
(X Y) to a certain height and release it;
#X text 7 51 Description: Renders a waving square (mass-spring-system)
;
#X msg 592 414 noise 1;
#X obj 8 465 cnv 15 450 130 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 13 465 actions:;
#X text 84 471 00..retrigger current action;
#X text 84 482 01..flat;
#X text 84 493 02..spike;
#X text 84 503 03..diagonal wall;
#X text 84 514 04..sidewall;
#X text 84 525 05..hole;
#X text 84 536 06..middleblock;
#X text 84 547 07..diagonalblock;
#X text 84 558 08..cornerblock;
#X text 84 568 09..hill;
#X text 83 579 10..hill4 (default);
#X text 27 318 Inlet 1: message: noise (val) : add a random force;
#X text 42 331 ( -val < force < +val) to all node;
#X obj 493 494 newWave 30 10;
#X msg 502 146 texture 0;
#X msg 591 389 force 15 5 -0.5;
#X obj 494 115 rotateXYZ 135 0 0;
#X text 24 290 Inlet 1: message: force (X Y val): aply a force of value
"val" onto the wave at position (X Y);
#X text 63 159 1 : X grid-resolution \, default : 3;
#X text 63 171 2 : Y grid resolution \, default : X value;
#X text 26 362 Inlet 1 : message texture [1|2] : change texturing mode
;
#X connect 3 0 4 0;
#X connect 4 0 3 0;
#X connect 18 0 77 0;
#X connect 19 0 74 1;
#X connect 20 0 74 2;
#X connect 21 0 77 1;
#X connect 22 0 74 0;
#X connect 23 0 74 0;
#X connect 24 0 74 0;
#X connect 29 0 74 3;
#X connect 30 0 31 0;
#X connect 31 0 32 0;
#X connect 32 0 52 0;
#X connect 35 0 74 0;
#X connect 35 1 74 0;
#X connect 36 0 37 0;
#X connect 37 0 50 0;
#X connect 38 0 39 0;
#X connect 39 0 49 0;
#X connect 40 0 41 0;
#X connect 41 0 46 0;
#X connect 42 0 43 0;
#X connect 43 0 47 0;
#X connect 44 0 45 0;
#X connect 45 0 48 0;
#X connect 46 0 52 0;
#X connect 47 0 51 0;
#X connect 48 0 53 0;
#X connect 49 0 53 0;
#X connect 50 0 51 0;
#X connect 51 0 53 0;
#X connect 52 0 51 0;
#X connect 53 0 74 0;
#X connect 55 0 74 0;
#X connect 58 0 74 0;
#X connect 75 0 74 0;
#X connect 76 0 74 0;
#X connect 77 0 35 0;

83
Gem/help/ortho-help.pd Normal file
View file

@ -0,0 +1,83 @@
#N canvas 397 92 629 343 10;
#X obj 462 275 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 198 112 destroy;
#X msg 132 112 create \, 1;
#X connect 2 0 3 0;
#X connect 3 0 4 0;
#X connect 3 0 7 0;
#X connect 3 1 5 0;
#X connect 3 1 6 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 restore 467 314 pd gemwin;
#X msg 467 295 create;
#X text 463 274 Create window:;
#X text 485 29 Example:;
#X obj 7 65 cnv 15 450 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 216 cnv 15 450 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 9 221 Inlets:;
#X obj 8 176 cnv 15 450 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X text 452 8 GEM object;
#X text 27 233 Inlet 1: gemlist;
#X text 9 304 Outlets:;
#X text 21 316 Outlet 1: gemlist;
#X text 63 187 (none);
#X text 27 247 Inlet 1: 0|1 : turn orthographic rendering ON(default)
or OFF;
#X text 33 14 Synopsis: [ortho];
#X text 54 30 Class: manipulation object;
#X text 7 69 Description: orthographic rendering;
#X text 27 274 Inlet 1: compat 0|1 : switch aspect ratio default: 1
= 1 \, 0 = window width/height;
#X text 19 92 [ortho] changes the current viewing-mode from (evtl.)
"perspective" (objects that are fare away appear smaller than objects
that are near) to "orthographic" (parallels appear parallel) for all
subsequent shapes.;
#X obj 461 66 cnv 15 160 200 empty empty empty 20 12 0 14 -228992 -66577
0;
#X obj 466 157 cnv 15 150 80 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 490 68 gemhead;
#X obj 490 246 cylinder;
#X obj 490 89 t a b;
#X obj 520 108 i;
#X obj 490 200 ortho;
#X obj 470 183 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X obj 565 87 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X obj 549 108 + 0;
#X obj 490 129 rotateXYZ 45 45 0;
#X msg 521 180 compat \$1;
#X obj 521 160 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X connect 1 0 2 0;
#X connect 2 0 1 0;
#X connect 23 0 25 0;
#X connect 25 0 31 0;
#X connect 25 1 26 0;
#X connect 26 0 30 0;
#X connect 26 0 31 1;
#X connect 26 0 31 2;
#X connect 26 0 31 3;
#X connect 27 0 24 0;
#X connect 28 0 27 0;
#X connect 29 0 30 1;
#X connect 30 0 26 1;
#X connect 31 0 27 0;
#X connect 32 0 27 0;
#X connect 33 0 32 0;

View file

@ -0,0 +1,55 @@
#N canvas -64 430 759 378 10;
#X obj 525 177 part_color;
#X text 98 142 sets the color(s) of a particle-system. You can set
2 different colors \, particles will have either the one or the other.
;
#N canvas 0 0 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 obj 287 94 loadbang;
#X msg 294 121 reset \, lighting 0;
#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 9 0;
#X connect 9 0 0 0;
#X restore 546 309 pd gemwin;
#X msg 546 290 create;
#X text 544 269 Create window:;
#X text 31 14 Synopsis: [part_color];
#X text 38 68 Inlet 2: R1 G1 B1;
#X text 51 97 Class: Particle System;
#X text 7 123 Description: Defines color of particles;
#X text 434 16 Example:;
#X obj 525 81 part_source;
#X obj 525 208 part_draw;
#X obj 525 36 gemhead;
#X msg 634 115 0 0 1;
#X msg 634 140 1 0 0;
#X obj 525 57 part_head;
#X obj 525 119 part_killold 5;
#X text 38 41 inlet 1: gemlist (with part_head);
#X obj 524 17 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X connect 0 0 11 0;
#X connect 2 0 3 0;
#X connect 3 0 2 0;
#X connect 10 0 16 0;
#X connect 12 0 15 0;
#X connect 13 0 0 1;
#X connect 14 0 0 2;
#X connect 15 0 10 0;
#X connect 16 0 0 0;
#X connect 18 0 12 0;

View file

@ -0,0 +1,53 @@
#N canvas -48 0 754 404 10;
#X text 540 156 This is the damping vector;
#X text 541 176 To slow particles down;
#X text 99 206 keep all of the values less than one;
#X text 51 97 Class: Particle System;
#X text 38 41 inlet 1: gemlist (with part_head);
#X text 31 14 Synopsis: [part_damp];
#X text 38 68 Inlet 2: V1 V2 V3;
#X text 7 123 Description: Change velocity of Particles;
#X text 99 144 part_damp dampens the velocity of the particles. A damping
vector less than 1 \, 1 \, 1 will slow the particles done. A damping
vector greater than 1 \, 1 \, 1 will speed up the particles.;
#X obj 521 30 gemhead;
#X obj 521 51 part_head;
#X obj 521 113 part_killold 5;
#X obj 521 267 part_draw;
#N canvas 0 0 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 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 restore 521 356 pd gemwin;
#X msg 521 337 create;
#X text 519 316 Create window:;
#X floatatom 663 192 5 0 0 0 - - -;
#X msg 663 211 \$1 1 1;
#X obj 521 10 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1
;
#X obj 521 80 part_source 5;
#X obj 521 237 part_damp 0.1 0.1 0.1;
#X connect 9 0 10 0;
#X connect 10 0 19 0;
#X connect 11 0 20 0;
#X connect 13 0 14 0;
#X connect 14 0 13 0;
#X connect 16 0 17 0;
#X connect 17 0 20 1;
#X connect 18 0 9 0;
#X connect 19 0 11 0;
#X connect 20 0 12 0;

View file

@ -0,0 +1,54 @@
#N canvas 539 315 813 403 10;
#X msg 631 212 draw point;
#X text 536 159 This is the drawing mode: line/point;
#X text 98 109 [part_draw] finally draws a particle system that was
set up with [part_head] and other [part_]-objects.;
#X text 51 65 Class: Particle System;
#X text 10 90 Description: Draw a particle system;
#X text 26 175 See also:;
#X obj 99 176 part_render;
#X obj 521 30 gemhead;
#X obj 521 51 part_head;
#X obj 521 105 part_killold 5;
#X obj 521 78 part_source;
#X obj 521 267 part_draw;
#N canvas 0 0 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 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 restore 521 356 pd gemwin;
#X msg 521 337 create;
#X text 519 316 Create window:;
#X obj 521 10 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#X msg 629 184 draw line;
#X msg 634 241 draw \$1;
#X floatatom 712 227 5 0 0 0 - - -;
#X text 38 41 inlet 1: gemlist (with part_head) \, draw [line|point|<nr>]
;
#X text 31 14 Synopsis: [part_draw];
#X connect 0 0 11 0;
#X connect 7 0 8 0;
#X connect 8 0 10 0;
#X connect 9 0 11 0;
#X connect 10 0 9 0;
#X connect 12 0 13 0;
#X connect 13 0 12 0;
#X connect 15 0 7 0;
#X connect 16 0 11 0;
#X connect 17 0 11 0;
#X connect 18 0 17 0;

View file

@ -0,0 +1,49 @@
#N canvas 22 325 802 373 10;
#X text 583 138 particle acceleration;
#X text 97 112 [part_follow] lets the particles follow each other.
;
#X text 51 65 Class: Particle System;
#X text 38 41 inlet 1: gemlist (with part_head) \, draw [line|point|<nr>]
;
#X text 34 15 Synopsis: [part_follow];
#X text 10 90 Description: Particle follow each other;
#X obj 521 30 gemhead;
#X obj 521 10 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
#N canvas 0 0 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 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 restore 523 326 pd gemwin;
#X msg 523 307 create;
#X text 521 286 Create window:;
#X floatatom 635 166 5 0 0 0 - - -;
#X text 57 214 TODO: how does this work .. example !!!;
#X obj 521 103 part_killold 5;
#X obj 521 187 part_follow 0.001;
#X obj 521 75 part_source 5;
#X obj 521 51 part_head;
#X obj 521 243 part_draw;
#X connect 6 0 16 0;
#X connect 7 0 6 0;
#X connect 8 0 9 0;
#X connect 9 0 8 0;
#X connect 11 0 14 1;
#X connect 13 0 14 0;
#X connect 14 0 17 0;
#X connect 15 0 13 0;
#X connect 16 0 15 0;

View file

@ -0,0 +1,12 @@
#N canvas 23 236 644 359 10;
#X msg 139 109 gemList;
#X text 176 62 GEM object;
#X msg 242 151 x y z;
#X obj 139 207 part_gravity;
#X text 186 26 [part_gravity];
#X text 327 152 This is gravitation vector;
#X text 43 257 [part_gravity] sets the gravity-vector of the particle-system.
No matter in which direction particles are emitted (pE. via [part_velsphere])
in the end \, they have to follow the gravity.;
#X connect 0 0 3 0;
#X connect 2 0 3 1;

View file

@ -0,0 +1,22 @@
#N canvas 174 110 664 498 10;
#X msg 180 101 gemList;
#X text 176 62 GEM object;
#X msg 180 195 gemList;
#X obj 180 152 part_head;
#X text 260 196 partList;
#X text 184 25 [part_head];
#X msg 289 106 speed <speed>;
#X text 45 242 starts a particle-system. The particle-list normally
holds a number of [part_source]s (particle-generators) [part_]-modifiers
and ends with a particle-renderer such as [part_draw];
#X text 45 325 you can set the speed of the particle-emission with
the speed-message.;
#X obj 493 168 part_head 10;
#X text 44 380 [part_head] takes the number of particles that can exist
in one instance of time as a creation-argument. (default=1000);
#X text 53 424 if your particles do not die (e.g.: because the are
killed wiht [part_killold]) \, your particle source will stop emitting
particles after some time.;
#X connect 0 0 3 0;
#X connect 3 0 2 0;
#X connect 6 0 3 0;

View file

@ -0,0 +1,25 @@
#N canvas 162 181 644 454 10;
#X msg 139 99 gemList;
#X text 176 62 GEM object;
#X msg 139 294 gemList;
#X text 186 26 [part_render];
#X obj 139 130 part_info;
#X msg 164 251 x y z;
#X msg 202 184 sizeX sizeY sizeZ;
#X msg 177 230 red green blue alpha;
#X msg 189 208 velX velY velZ;
#X msg 215 160 age;
#X text 35 320 [part_info] gives you all available information of all
the particles in the system draws a particle system set up with [part_head]
and other [part_]-objects.;
#X msg 151 272 ID;
#X text 36 379 If your system contains 15 particles \, then you will
get the information on the outlets 15 times per rendering circle.;
#X connect 0 0 4 0;
#X connect 4 0 2 0;
#X connect 4 1 11 0;
#X connect 4 2 5 0;
#X connect 4 3 7 0;
#X connect 4 4 8 0;
#X connect 4 5 6 0;
#X connect 4 6 9 0;

View file

@ -0,0 +1,13 @@
#N canvas 309 237 664 366 10;
#X msg 199 131 gemList;
#X text 176 62 GEM object;
#X obj 199 182 part_killold;
#X msg 302 147 time;
#X text 184 25 [part_killold];
#X msg 199 225 gemList;
#X text 91 291 kill all particles which are older than the kill time.
The default time is 10 Make the number longer for particles to live
longer and shorter to remove them quicker.;
#X connect 0 0 2 0;
#X connect 2 0 5 0;
#X connect 3 0 2 1;

View file

@ -0,0 +1,10 @@
#N canvas 853 285 600 500 10;
#X msg 199 131 gemList;
#X text 176 62 GEM object;
#X obj 199 229 part_killslow;
#X text 186 27 part_killslow;
#X msg 285 182 speed;
#X text 90 291 kill all particles which are slower than the kill speed.
The default speed is 0.01;
#X connect 0 0 2 0;
#X connect 4 0 2 1;

View file

@ -0,0 +1,13 @@
#N canvas 214 154 600 327 10;
#X msg 110 93 gemList;
#X text 121 50 GEM object;
#X obj 110 190 part_orbitpoint;
#X msg 175 150 x y z;
#X msg 240 150 gravity;
#X text 131 16 [part_orbitpoint];
#X text 65 253 [part_orbitpoint] will make the particles orbit about
the position x \, y \, z. The gravity is how attracted the particles
are to the point. The default gravity is 1;
#X connect 0 0 2 0;
#X connect 3 0 2 1;
#X connect 4 0 2 2;

View file

@ -0,0 +1,19 @@
#N canvas 162 181 644 454 10;
#X msg 139 99 gemList;
#X text 176 62 GEM object;
#X obj 139 207 part_render;
#X msg 139 244 gemList;
#X text 186 26 [part_render];
#X msg 169 134 colorize 1/0;
#X msg 170 160 size 1/0;
#X text 43 296 [part_render] finally draws a particle system that was
set up with [part_head] and other [part_]-objects. The particles are
normal gemLists (for instance a [sphere]);
#X text 39 361 you can turn on/off colouring of paticles (via [part_color])
;
#X text 39 381 you can turn on/off sizing of paticles (via [part_size])
;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 5 0 2 0;
#X connect 6 0 2 0;

View file

@ -0,0 +1,29 @@
#N canvas 142 0 627 488 10;
#X msg 110 73 gemList;
#X text 121 50 GEM object;
#X msg 110 219 gemList;
#X text 181 74 partList;
#X text 180 222 partList;
#X msg 166 132 domain;
#X text 48 337 <domain>: one of "point" \, "line" \, "triangle" \,
"plane" \, "box" \, "sphere" \, "cylinder" \, "cone" \, "blob" \, "disc"
\, "rectangle";
#X msg 222 164 <arguments>;
#X text 49 401 <arguments>: up to 9 floats \, defining the specified
domain (like "x y z" for "point" \, "x1 y1 z1 x2 y2 z2" for "line"
\, "x y z r" for "sphere" \, ...). The meaning of the arguments depends
-of course- on the domain.;
#X obj 110 190 part_sink;
#X msg 169 101 kill 1/0;
#X text 132 16 [part_sink];
#X text 53 245 [part_sink] sets up a sink for the particles within
the system \, where they will vanish. You can set the sink-domain (shape)
and the corresponding arguments.;
#X obj 269 199 part_sink <domain> [<arguments>...];
#X text 56 297 you can turn on/off the killing of particles (default==off)
;
#X connect 0 0 9 0;
#X connect 5 0 9 1;
#X connect 7 0 9 2;
#X connect 9 0 2 0;
#X connect 10 0 9 0;

View file

@ -0,0 +1,16 @@
#N canvas 309 237 664 366 10;
#X msg 180 86 gemList;
#X text 176 62 GEM object;
#X msg 180 195 gemList;
#X text 260 196 partList;
#X obj 180 152 part_size;
#X msg 256 128 size;
#X text 254 89 partList;
#X text 184 25 [part_size];
#X obj 466 148 part_size 2;
#X text 52 254 change the size of the particles of a particle-system.
You can also give an initial value.;
#X text 52 295 the particle-size defaults to 1.0f;
#X connect 0 0 4 0;
#X connect 4 0 2 0;
#X connect 5 0 4 1;

View file

@ -0,0 +1,28 @@
#N canvas 203 0 664 575 10;
#X msg 180 86 gemList;
#X text 176 62 GEM object;
#X msg 180 195 gemList;
#X text 260 196 partList;
#X text 254 89 partList;
#X obj 180 152 part_source;
#X text 184 25 [part_source];
#X text 51 252 add a particle-source. You will need this if you want
any particles in your particle-system.;
#X text 53 290 The initial argument (that can be changed) gives the
number of particles that are emitted at each rendering-frame;
#X msg 340 82 number_of_particles_per_frame;
#X msg 340 107 domain;
#X msg 340 132 <arguments>;
#X obj 489 191 part_source 20;
#X text 48 337 <domain>: one of "point" \, "line" \, "triangle" \,
"plane" \, "box" \, "sphere" \, "cylinder" \, "cone" \, "blob" \, "disc"
\, "rectangle";
#X text 49 401 <arguments>: up to 9 floats \, defining the specified
domain (like "x y z" for "point" \, "x1 y1 z1 x2 y2 z2" for "line"
\, "x y z r" for "sphere" \, ...). The meaning of the arguments depends
-of course- on the domain.;
#X connect 0 0 5 0;
#X connect 5 0 2 0;
#X connect 9 0 5 1;
#X connect 10 0 5 2;
#X connect 11 0 5 3;

View file

@ -0,0 +1,13 @@
#N canvas 853 285 600 500 10;
#X msg 199 131 gemList;
#X text 176 62 GEM object;
#X text 185 27 part_targetcolor;
#X obj 199 224 part_targetcolor;
#X msg 252 156 R G B A;
#X msg 306 185 scale;
#X text 89 291 part_targetcolor changes the color of the particles
by a scale factor every frame. The target color can be an RGB or RGBA
vector. The scale value defaults to 0.05;
#X connect 0 0 3 0;
#X connect 4 0 3 1;
#X connect 5 0 3 2;

View file

@ -0,0 +1,14 @@
#N canvas 853 285 600 500 10;
#X msg 199 131 gemList;
#X text 176 62 GEM object;
#X msg 299 178 scale;
#X text 185 27 part_targetsize;
#X obj 199 225 part_targetsize;
#X msg 249 175 size;
#X text 91 336 part_targetsize changes the size of the particles by
a scale factor every frame. The default size is 1 The scale value defaults
to 0.05;
#X obj 198 277 part_targetsize 3 0.01;
#X connect 0 0 4 0;
#X connect 2 0 4 2;
#X connect 5 0 4 1;

View file

@ -0,0 +1,21 @@
#N canvas 109 126 635 466 10;
#X msg 110 93 gemList;
#X text 121 50 GEM object;
#X msg 170 151 x y z;
#X msg 110 219 gemList;
#X text 181 94 partList;
#X text 180 222 partList;
#X text 41 361 this is obsolete \, use;
#X text 131 16 [part_velcone];
#X obj 110 190 part_velcone;
#X msg 231 152 height;
#X text 65 253 [part_velcone] sets a cone with a specified height and
midpoint to be the velocity-domain of newly emitted particles within
the system.;
#X msg 465 326 x y z height;
#X obj 239 360 part_velocity cone <x> <z> <z> <height>;
#X connect 0 0 8 0;
#X connect 2 0 8 1;
#X connect 8 0 3 0;
#X connect 9 0 8 2;
#X connect 11 0 12 2;

View file

@ -0,0 +1,24 @@
#N canvas 142 -38 627 488 10;
#X msg 110 93 gemList;
#X text 121 50 GEM object;
#X msg 110 219 gemList;
#X text 181 94 partList;
#X text 180 222 partList;
#X obj 110 190 part_velocity;
#X text 132 16 [part_velocity];
#X msg 166 132 domain;
#X text 65 253 [part_velocity] sets velocity of newly emitted particles
within the system. You can set the velocity-domain and the corresponding
arguments.;
#X text 48 337 <domain>: one of "point" \, "line" \, "triangle" \,
"plane" \, "box" \, "sphere" \, "cylinder" \, "cone" \, "blob" \, "disc"
\, "rectangle";
#X msg 222 164 <arguments>;
#X text 49 401 <arguments>: up to 9 floats \, defining the specified
domain (like "x y z" for "point" \, "x1 y1 z1 x2 y2 z2" for "line"
\, "x y z r" for "sphere" \, ...). The meaning of the arguments depends
-of course- on the domain.;
#X connect 0 0 5 0;
#X connect 5 0 2 0;
#X connect 7 0 5 1;
#X connect 10 0 5 2;

View file

@ -0,0 +1,21 @@
#N canvas 109 126 635 466 10;
#X msg 110 93 gemList;
#X text 121 50 GEM object;
#X msg 170 151 x y z;
#X text 131 16 [part_velsphere];
#X obj 110 190 part_velsphere;
#X msg 110 219 gemList;
#X text 181 94 partList;
#X text 180 222 partList;
#X msg 231 152 radius;
#X text 65 253 [part_velsphere] sets a sphere with a specified radius
and midpoint to be the velocity-domain of newly emitted particles within
the system.;
#X text 41 361 this is obsolete \, use;
#X obj 239 360 part_velocity sphere <x> <z> <z> <radius>;
#X msg 465 326 x y z radius;
#X connect 0 0 4 0;
#X connect 2 0 4 1;
#X connect 4 0 5 0;
#X connect 8 0 4 2;
#X connect 12 0 11 2;

View file

@ -0,0 +1,15 @@
#N canvas 318 36 664 366 10;
#X msg 180 86 gemList;
#X text 176 62 GEM object;
#X msg 180 195 gemList;
#X text 260 196 partList;
#X text 254 89 partList;
#X obj 180 152 part_vertex;
#X text 184 25 [part_vertex];
#X msg 274 128 <x y z>;
#X text 51 252 add a particle at the specified offset. You will need
this if you want any particles in your particle-system \, especially
with moving particle sources.;
#X connect 0 0 5 0;
#X connect 5 0 2 0;
#X connect 7 0 5 1;

View file

@ -0,0 +1,77 @@
#N canvas 404 365 654 372 10;
#X text 452 8 GEM object;
#X obj 8 245 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 252 Inlets:;
#X text 38 285 Outlets:;
#X obj 8 206 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 205 Arguments:;
#X obj 7 76 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 158 cnv 15 160 60 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 0 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 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 text 63 216 <none>;
#X text 56 298 Outlet 1: gemlist;
#X text 63 266 Inlet 1: gemlist;
#X obj 451 233 pix_draw;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 50 12 Synopsis: [pix_2grey];
#X text 29 76 Description: convert a pix to greyscale;
#X text 17 151 So \, if you have an RGBA-image \, after [pix_2grey]
the values for R \, G and B will be the same. the chroma-values of
a YUV-image will be set to 127 (no chroma);
#X obj 451 176 pix_2grey;
#X text 17 97 Assuming that you have an image in the gemList (for instance
\, loaded in with pix_image) \, [pix_2grey] will convert the image
into a greyscale \, without changing the actual colorspace.;
#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 27 0;
#X connect 27 0 21 0;

View file

@ -0,0 +1,90 @@
#N canvas 0 0 654 372 10;
#X text 452 8 GEM object;
#X obj 8 275 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 278 Inlets:;
#X text 38 325 Outlets:;
#X obj 8 236 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 235 Arguments:;
#X obj 7 60 cnv 15 430 170 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 167 cnv 15 160 80 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 0 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 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 text 63 246 <none>;
#X text 56 338 Outlet 1: gemlist;
#X text 63 292 Inlet 1: gemlist;
#X obj 451 263 pix_draw;
#X text 516 105 open an image;
#X text 50 12 Synopsis: [pix_a_2grey];
#X text 29 66 Description: convert a pixel to greyscale based on alpha
;
#X text 39 87 Assuming that you have an image in the gemList (for instance
\, loaded in with pix_image) \, pix_a_2grey will convert the image
into a greyscale.;
#X text 39 129 If alphaVal > 0 \, then it will convert to greyscale
where ever the pixel alpha is greater than the alphaVal.;
#X text 38 189 If alphaVal = 0 \, then nothing happens.;
#X text 38 159 If alphaVal < 0 \, then it will convert to greyscale
where ever the pixel alpha is less than the -alphaVal.;
#X text 22 210 Obviously \, this will work for RGBA-images only.;
#X obj 451 226 pix_a_2grey;
#X floatatom 523 206 4 -1 1 2 alpha-thresh - -;
#X text 63 305 Inlet 2: <float>: alpha-threshold (-1..0..+1);
#X text 512 118 (TIFF \, ..);
#X msg 523 171 0.5;
#X msg 479 170 -0.5;
#X obj 451 137 pix_coloralpha;
#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 36 0;
#X connect 30 0 21 0;
#X connect 31 0 30 1;
#X connect 34 0 31 0;
#X connect 35 0 31 0;
#X connect 36 0 30 0;

97
Gem/help/pix_add-help.pd Normal file
View file

@ -0,0 +1,97 @@
#N canvas 270 306 683 381 10;
#X text 452 8 GEM object;
#X obj 8 226 cnv 15 430 135 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 248 Inlets:;
#X text 39 304 Outlets:;
#X obj 8 186 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 185 Arguments:;
#X obj 8 66 cnv 15 430 110 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 280 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 290 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 329 pd gemwin;
#X msg 519 310 create;
#X text 515 289 Create window:;
#X obj 451 168 cnv 15 160 80 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 119 gemhead;
#X obj 502 102 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#N canvas 0 0 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 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 138 pd image;
#X obj 451 263 pix_texture;
#X text 63 196 <none>;
#X text 47 318 Outlet 1: gemlist;
#X text 53 262 Inlet 1: gemlist;
#X obj 451 285 square 3;
#X text 503 88 (JPEG \, TIFF \, ..);
#X obj 541 122 gemhead;
#N canvas 0 0 587 366 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 77 205 pix_image examples/data/dancer.JPG;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#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 541 141 pd image;
#X obj 592 103 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#X text 53 291 Inlet 2: gemlist;
#X text 449 77 open two different images;
#X text 50 12 Synopsis: [pix_add];
#X text 71 31 Class: pix mix object;
#X text 29 67 Description: add 2 images;
#X text 29 91 [pix_add] simply adds two pixes together. It clamps the
images so that they remain in the range of the image. (In other words
\, it is easy to get a white out).;
#X obj 451 198 pix_add;
#X text 33 137 The 2 images have to be of the same size.;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 16 0;
#X connect 15 0 16 1;
#X connect 16 0 32 0;
#X connect 17 0 21 0;
#X connect 23 0 24 0;
#X connect 24 0 32 1;
#X connect 25 0 24 1;
#X connect 32 0 17 0;

115
Gem/help/pix_aging-help.pd Normal file
View file

@ -0,0 +1,115 @@
#N canvas 0 0 654 490 10;
#X text 452 8 GEM object;
#X obj 8 245 cnv 15 430 140 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 248 Inlets:;
#X text 38 345 Outlets:;
#X obj 8 206 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 205 Arguments:;
#X obj 7 76 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 200 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 138 cnv 15 190 100 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 0 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 obj 77 281 pix_buf;
#X msg 103 257 auto 1;
#X obj 103 236 loadbang;
#X text 156 263 [pix_buf] with auto 1 is important if we want to recalculate
our pix-effect each frame but don't want to reload the image all the
time.;
#X connect 0 0 2 0;
#X connect 2 0 6 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X connect 5 0 4 0;
#X connect 6 0 1 0;
#X connect 7 0 6 0;
#X connect 8 0 7 0;
#X restore 451 113 pd image;
#X text 63 216 <none>;
#X text 56 358 Outlet 1: gemlist;
#X text 63 262 Inlet 1: gemlist;
#X text 50 12 Synopsis: [pix_color];
#X obj 451 254 pix_draw;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X obj 451 216 pix_aging;
#X text 11 77 Description: apply a super8-like aging effect;
#X text 16 92 [pix_aging] is an effect that will make your images (better:
films) have a super8-like look.;
#X text 16 123 There are 4 components (color-aging \, light dusts \,
dark pits and vertical scratches) that can be turned on/off individually.
;
#X text 15 168 The number of scratches can be set via the "scratch"
message.;
#X obj 39 399 cnv 15 450 40 empty empty empty 20 12 0 14 -260818 -66577
0;
#X text 51 407 acknowledgment: this effect is based on effecTV by Kentarou
Fukuchi (http://effectv.sourceforge.net);
#X msg 460 160 dust \$1;
#X obj 460 142 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 580 182 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 580 199 pits \$1;
#X msg 480 197 coloraging \$1;
#X obj 481 179 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 1
1;
#X floatatom 525 143 5 0 0 0 - - -;
#X msg 525 161 scratch \$1;
#X text 63 275 Inlet 1: dust 0|1: add "dust";
#X text 63 290 Inlet 1: pits 0|1: add "pits";
#X text 63 324 Inlet 1: scratch <int> : add a maximum of # scratches
;
#X text 63 306 Inlet 1: coloraging 0|1: color-bleaching;
#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 25 0;
#X connect 25 0 22 0;
#X connect 32 0 25 0;
#X connect 33 0 32 0;
#X connect 34 0 35 0;
#X connect 35 0 25 0;
#X connect 36 0 25 0;
#X connect 37 0 36 0;
#X connect 38 0 39 0;
#X connect 39 0 25 0;

107
Gem/help/pix_alpha-help.pd Normal file
View file

@ -0,0 +1,107 @@
#N canvas 42 278 695 523 10;
#X text 452 8 GEM object;
#X obj 8 345 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 348 Inlets:;
#X text 38 435 Outlets:;
#X obj 8 306 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 305 Arguments:;
#X obj 7 56 cnv 15 430 240 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 574 341 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 579 380 pd gemwin;
#X msg 579 361 create;
#X text 575 340 Create window:;
#X obj 450 158 cnv 15 160 120 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 0 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 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 133 pd image;
#X text 63 316 <none>;
#X text 56 448 Outlet 1: gemlist;
#X text 63 362 Inlet 1: gemlist;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 50 12 Synopsis: [pix_alpha];
#X text 29 56 Description: set the alpha values of an RGBA-pix;
#X text 21 229 It defaults to highThresh = 0 0 0 \, lowThresh = 0 0
0 \, passVal = 0 \, and otherVal = 1 This makes any black pixels totally
transparent.;
#X text 22 170 pix_alpha compares at the color component level \, so
if you wanted pixels with any red and no green or blue in them to be
set to the passVal \, make highThresh = 1 0 0 and lowThresh = 0 0 0
;
#X text 21 74 pix_alpha sets the alpha values of a pix based on a simple
thresholding. If a pixel value is between the high and low threshold
RGB values \, then the alpha component of the pixel is set to the pass
value. If the pixel value is below the low threshold or above the high
threshold \, then the pixel alpha is set to the other value.;
#X obj 451 283 pix_texture;
#X obj 451 304 square 3;
#X obj 451 110 alpha;
#X text 10 276 This obviously only works with RGBA-images;
#X floatatom 465 162 5 0 1 1 pass - -;
#X floatatom 480 182 5 0 1 1 other - -;
#X msg 494 207 0.6 0.6 0.6;
#X msg 509 231 0.2 0.2 0.2;
#X obj 445 336 gemhead 1;
#X obj 445 378 rotate 45 1 1 1;
#X obj 445 401 cube;
#X obj 445 357 translate -2 0 0 1;
#X obj 451 256 pix_alpha;
#X text 63 375 Inlet 2: <float>: ALPHA-value if passed;
#X text 63 388 Inlet 3: <float>: ALPHA-value if not passed;
#X text 63 400 Inlet 4: <list>: high-threshold (RGB);
#X text 63 413 Inlet 4: <list>: low-threshold (RGB);
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 30 0;
#X connect 16 0 17 1;
#X connect 17 0 40 0;
#X connect 28 0 29 0;
#X connect 30 0 17 0;
#X connect 32 0 40 1;
#X connect 33 0 40 2;
#X connect 34 0 40 3;
#X connect 35 0 40 4;
#X connect 36 0 39 0;
#X connect 37 0 38 0;
#X connect 39 0 37 0;
#X connect 40 0 28 0;

View file

@ -0,0 +1,107 @@
#N canvas 436 51 655 473 10;
#X text 452 8 GEM object;
#X obj 8 256 cnv 15 430 170 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 258 Inlets:;
#X text 39 390 Outlets:;
#X obj 8 216 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 215 Arguments:;
#X obj 8 76 cnv 15 430 135 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 451 138 cnv 15 160 90 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;
#X obj 451 233 pix_texture;
#X text 63 226 <none>;
#X text 27 403 Outlet 1: gemlist;
#X text 33 272 Inlet 1: gemlist;
#X obj 451 255 square 3;
#X msg 464 154 reset;
#X text 50 12 Synopsis: [pix_background];
#X text 537 192 threshold;
#X text 29 77 Description: separate an objects from background;
#X text 33 309 Inlet 1: bang: alias for reset;
#X text 9 92 [pix_background] 'removes' the background of an image
by comparing a static image in memory to an incoming video stream.
all values withing a given range are turned black. for best effect
\, place a camera on a static scene like a blank wall and hit 'reset'.
then set the range control to cover any variance in the background.
when a new object enters the scene it will be the only thing draw against
a black background. use pix_chroma_key or pix_compare to add in images
in place of the black.;
#X text 33 284 Inlet 1: message: reset : reset the background and capture
a new image;
#X text 34 375 Inlet 2: float: range (<f> == <f> <f> <f>);
#X text 34 322 Inlet 2: list: range \; in RGBA mode this is <+-red>
<+-green> <+-blue> \; in YUV-mode this is <+-luma> <+-Cb> <+-Cr> \;
in Gray-mode only the first value is important <+-gray>;
#X obj 451 207 pix_background;
#X msg 516 177 \$1 \$1 \$1;
#X msg 516 142 0.5;
#X floatatom 516 161 5 0 0 0 - - -;
#N canvas 0 22 599 378 film 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#X msg 94 148 auto 1;
#X obj 94 127 loadbang;
#X obj 77 190 pix_film;
#X obj 146 190 t f;
#X msg 155 149 colorspace rgba;
#X connect 0 0 7 0;
#X connect 2 0 4 0;
#X connect 3 0 7 0;
#X connect 4 0 3 0;
#X connect 5 0 7 0;
#X connect 6 0 5 0;
#X connect 6 0 9 0;
#X connect 7 0 1 0;
#X connect 7 2 8 0;
#X connect 8 0 7 1;
#X connect 9 0 7 0;
#X restore 451 113 pd film;
#X text 516 105 open an movie;
#X text 509 118 (AVI \, MPEG \, MOV);
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 35 0;
#X connect 16 0 35 1;
#X connect 17 0 21 0;
#X connect 22 0 31 0;
#X connect 31 0 17 0;
#X connect 32 0 31 1;
#X connect 33 0 34 0;
#X connect 34 0 32 0;
#X connect 35 0 31 0;

View file

@ -0,0 +1,92 @@
#N canvas 0 0 651 393 10;
#X text 452 8 GEM object;
#X obj 8 216 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 218 Inlets:;
#X text 39 310 Outlets:;
#X obj 8 176 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X obj 8 76 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 451 138 cnv 15 160 90 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 0 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 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 451 233 pix_texture;
#X text 63 186 <none>;
#X text 57 323 Outlet 1: gemlist;
#X text 63 232 Inlet 1: gemlist;
#X obj 451 255 square 3;
#X text 50 12 Synopsis: [pix_backlight];
#X floatatom 469 153 5 0 0 2 scale - -;
#X floatatom 509 153 5 0 255 2 floor - -;
#X obj 509 171 / 255;
#X floatatom 549 153 5 0 255 2 ceiling - -;
#X obj 549 171 / 255;
#X text 29 77 Description: backlighting effect;
#X text 13 91 [pix_backlight] will radially displace pixels depending
on their luminance value \, thus producing a backlighting effect. You
can set the amount of the displacement as well as floor/ceiling limits
\, to produce displacements only within the specified range.;
#X obj 451 207 pix_backlight;
#X text 64 254 Inlet 2: float: scale-factor (default: 0.5);
#X text 64 268 Inlet 3: float: floor (default: 0);
#X text 64 282 Inlet 4: float: ceiling (default: 1);
#X obj 469 172 / 100;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#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 31 0;
#X connect 18 0 22 0;
#X connect 24 0 35 0;
#X connect 25 0 26 0;
#X connect 26 0 31 2;
#X connect 27 0 28 0;
#X connect 28 0 31 3;
#X connect 31 0 18 0;
#X connect 35 0 31 1;

172
Gem/help/pix_biquad-help.pd Normal file
View file

@ -0,0 +1,172 @@
#N canvas 288 289 775 405 10;
#X text 452 8 GEM object;
#X obj 9 265 cnv 15 430 135 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 40 267 Inlets:;
#X text 39 365 Outlets:;
#X obj 9 227 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 18 226 Arguments:;
#X obj 8 56 cnv 15 430 165 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 200 280 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 540 288 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X msg 67 70 set destroy;
#X msg 132 112 create \, 1;
#X msg 198 112 destroy;
#X msg 156 71 set create;
#X obj 67 41 route create;
#X connect 2 0 7 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 1 0;
#X connect 7 0 3 0;
#X connect 7 0 4 0;
#X connect 7 1 6 0;
#X connect 7 1 5 0;
#X restore 545 327 pd gemwin;
#X msg 545 308 create;
#X text 541 287 Create window:;
#X obj 451 172 cnv 15 155 105 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 83 gemhead;
#X text 17 379 Outlet 1: gemlist;
#X text 24 281 Inlet 1: gemlist;
#X obj 451 302 square 3;
#X obj 451 280 pix_texture;
#X text 71 31 Class: pix object (timebased effect);
#X obj 451 151 pix_film;
#X obj 515 151 t f;
#X obj 464 103 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 open 0;
#X obj 85 49 inlet;
#X obj 85 237 outlet;
#X obj 85 145 openpanel;
#X msg 85 179 open \$1;
#X msg 259 213 auto 1;
#X obj 268 179 loadbang;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 4 0;
#X restore 464 131 pd open;
#X text 505 77 open a supported;
#X text 506 88 movie-clip;
#X text 523 114 macOS: quicktime;
#X text 516 104 windos: *.AVI;
#X text 523 124 linux: depends...;
#X text 29 57 Description: timebased IIR-filter;
#X floatatom 457 191 3 0 1 2 fb0 - -;
#X floatatom 481 191 3 0 1 2 fb1 - -;
#X floatatom 505 191 3 0 1 2 fb2 - -;
#X floatatom 534 191 3 0 1 2 ff1 - -;
#X floatatom 558 191 3 0 1 2 ff2 - -;
#N canvas 0 0 450 300 init 0;
#X msg 175 214 0.3;
#X msg 247 215 0.6;
#X obj 104 258 outlet;
#X obj 154 258 outlet;
#X obj 204 258 outlet;
#X obj 254 258 outlet;
#X obj 304 258 outlet;
#X obj 244 59 inlet;
#X obj 388 158 t b;
#X msg 378 201 1;
#X msg 413 201 0;
#X obj 246 88 route 1;
#X msg 104 214 0.2;
#X msg 140 215 0.5;
#X obj 353 258 outlet;
#X msg 277 215 0.2;
#X msg 312 213 0.2;
#X obj 238 127 t b;
#X obj 193 105 t b b;
#X obj 277 115 t b b;
#X msg 277 135 1;
#X connect 0 0 4 0;
#X connect 1 0 5 0;
#X connect 7 0 11 0;
#X connect 8 0 9 0;
#X connect 8 0 10 0;
#X connect 9 0 5 0;
#X connect 10 0 3 0;
#X connect 10 0 4 0;
#X connect 10 0 6 0;
#X connect 10 0 14 0;
#X connect 11 0 18 0;
#X connect 11 1 19 0;
#X connect 12 0 2 0;
#X connect 13 0 3 0;
#X connect 15 0 6 0;
#X connect 16 0 14 0;
#X connect 17 0 13 0;
#X connect 17 0 0 0;
#X connect 17 0 1 0;
#X connect 17 0 15 0;
#X connect 17 0 16 0;
#X connect 18 0 12 0;
#X connect 18 1 17 0;
#X connect 19 0 20 0;
#X connect 19 1 8 0;
#X connect 20 0 2 0;
#X restore 605 174 pd init;
#X obj 605 157 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X msg 534 238 set;
#X text 23 298 Inlet 1: message: set: overwrites the filter-buffers
with the next incoming image.;
#X text 439 378 see also:;
#X obj 509 381 pix_tIIR;
#X text 23 76 basically it works like the pd-object [biquad~] (except
\, that applies to images instead of samples);
#X text 39 134 y(n) = ff1 * w(n) + ff2 * w(n-1) + ff3 * w(n-2);
#X text 40 149 w(n) = fb0 * x(n) + fb1 * w(n-1) + fb2 * w(n-2);
#X text 32 104 the operation can be described by the following difference-equation:
;
#X text 18 166 x(n) describes the input-image \, y(n) is the output-image.
;
#X text 16 183 You can set all buffer-images w(m) to the next input-image
x(n) with the "set"-command.;
#X text 64 237 list:;
#X obj 572 381 biquad~;
#X text 50 12 Synopsis: [pix_biquad];
#X obj 451 258 pix_biquad;
#X floatatom 582 191 3 0 1 2 ff3 - -;
#X obj 457 209 pack 1 0 0 1 0 0;
#X text 22 327 Inlet 1: <list> : the filter-coefficients "fb0 fb1 fb2
ff1 ff2 ff3";
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 20 0;
#X connect 18 0 17 0;
#X connect 20 0 50 0;
#X connect 20 2 21 0;
#X connect 21 0 20 1;
#X connect 22 0 23 0;
#X connect 23 0 20 0;
#X connect 30 0 52 0;
#X connect 31 0 52 1;
#X connect 32 0 52 2;
#X connect 33 0 52 3;
#X connect 34 0 52 4;
#X connect 35 0 30 0;
#X connect 35 1 31 0;
#X connect 35 2 32 0;
#X connect 35 3 33 0;
#X connect 35 4 34 0;
#X connect 35 5 51 0;
#X connect 36 0 35 0;
#X connect 37 0 50 0;
#X connect 50 0 18 0;
#X connect 51 0 52 5;
#X connect 52 0 50 0;

View file

@ -0,0 +1,92 @@
#N canvas 43 367 654 479 10;
#X text 452 8 GEM object;
#X obj 8 245 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 248 Inlets:;
#X text 38 335 Outlets:;
#X obj 8 206 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 205 Arguments:;
#X obj 7 76 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 158 cnv 15 160 60 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 0 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 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 text 63 216 <none>;
#X text 16 348 Outlet 1: gemlist;
#X text 13 262 Inlet 1: gemlist;
#X obj 451 233 pix_draw;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 50 12 Synopsis: [pix_bitmask];
#X text 13 78 Description: mask out pixels;
#X text 36 94 pix_bitmask uses a bit masking to change the pixels.
If a single mask is used \, the alpha mask is assumed to be 255 (or
\, pass everything).;
#X text 35 137 The mask is an unsigned char \, which means it can go
from 0-255 \, with 0 not passing any bits.;
#X text 34 169 You may need to use pix_gain either before or after
since low bit values will reduce the luminance of the pix.;
#X obj 451 196 pix_bitmask;
#X floatatom 487 172 5 0 255 2 single - -;
#X msg 455 158 127;
#X msg 455 176 128;
#X msg 540 163 255 0 128;
#X msg 547 185 0 128 0;
#X text 13 278 Inlet 2: list: mask value for all channels (0..255)
;
#X text 13 295 Inlet 3: list: 3 (RGB) or 4 (RGBA) mask-values in INTeger
(0..255);
#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 29 0;
#X connect 29 0 21 0;
#X connect 30 0 29 1;
#X connect 31 0 30 0;
#X connect 32 0 30 0;
#X connect 33 0 29 2;
#X connect 34 0 29 2;

38
Gem/help/pix_blob-help.pd Normal file
View file

@ -0,0 +1,38 @@
#N canvas 0 0 634 679 10;
#X msg 142 104 gemList;
#X msg 142 307 gemList;
#X text 169 16 part of GEM;
#X floatatom 186 256 3 0 0;
#X floatatom 164 281 3 0 0;
#X obj 142 207 pix_blob;
#X text 176 43 [pix_blob];
#X text 93 73 get the "center of gravity" of an image;
#X msg 175 133 <mode>;
#X msg 209 173 <color-weights>;
#X floatatom 209 232 3 0 0;
#X text 250 231 size;
#X text 232 261 Y;
#X text 210 282 X;
#X text 52 330 [pix_blob] will calculate the "center-of-gravity" of
a certain (combination of) channel(s).;
#X text 52 391 You can choose the combination of channels used for
the calculation by changing the <mode>. Valid modes are: 0(gray)(default)
\, 1(red) \, 2(green) \, 3(blue) \, 4(alpha);
#X text 56 450 pE: selecting "red" (1) will weight position of each
pixel with its red-value. Pixels with "more" red will be weighted stronger
\, thus moving the "center of gravity" -- the blob position -- nearer
to themselves. The total amount of "red" in the image defines the size
of the blob.;
#X text 58 545 You can specify a custom combination of channels with
<color-weights>. pE: "1 0 2" will give more weight to the blue-channel
than to the red-channel \, green- and alpha-values will be ignored.
;
#X text 56 617 Specifing only one single color-weight <w> \, is the
same as "<w> <w> <w> 0";
#X connect 0 0 5 0;
#X connect 5 0 1 0;
#X connect 5 1 4 0;
#X connect 5 2 3 0;
#X connect 5 3 10 0;
#X connect 8 0 5 1;
#X connect 9 0 5 2;

16
Gem/help/pix_blur-help.pd Normal file
View file

@ -0,0 +1,16 @@
#N canvas 100 27 658 384 10;
#X text 452 8 GEM object;
#X obj 8 216 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 8 176 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X obj 8 76 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X text 71 31 Class: pix object;
#X text 50 12 Synopsis: [pix_blur];
#X text 29 77 Description: this object in deprecated \, you should
use [pix_motionblur] instead.;
#X obj 484 189 pix_motionblur;

94
Gem/help/pix_buf-help.pd Normal file
View file

@ -0,0 +1,94 @@
#N canvas 404 68 654 486 10;
#X text 452 8 GEM object;
#X obj 8 325 cnv 15 430 140 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 332 Inlets:;
#X text 38 425 Outlets:;
#X obj 8 286 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 285 Arguments:;
#X obj 7 76 cnv 15 430 200 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 136 cnv 15 160 110 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 0 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 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 text 63 296 <none>;
#X text 16 438 Outlet 1: gemlist;
#X text 23 346 Inlet 1: gemlist;
#X obj 451 273 pix_draw;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 50 12 Synopsis: [pix_buf] \, [pix_separator];
#X text 29 76 Description: buffer a pix;
#X text 11 94 [pix_buf] buffers pixes. This allows you to do some processing
which might require a lot of time (for example \, convolution) and
store it. All images use a pull system \, so as long as nothing is
modified in the pix "upstream" \, the pix_buf is still valid.;
#X text 10 167 [pix_buf] is only effective if it is storing a static
image. If you are continually modifying the buffered pix \, then pix_buf
is going to be spending a lot of time copying pixels.;
#X obj 451 220 pix_buf;
#X obj 487 145 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#X msg 487 190 auto \$1;
#X obj 487 168 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X obj 451 251 pix_rds;
#X text 11 238 [pix_buf] can be used to separate two gemlists processing
the same image-data. Thus is is also called [pix_separator];
#X text 22 362 Inlet 1: bang: copy of input-data to the output and
force all subsequent [pix_]-objects to process.;
#X text 22 391 Inlet 1: auto 1|0: force image-processing in subsequent
objects each render-cycle;
#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 28 0;
#X connect 28 0 32 0;
#X connect 29 0 28 0;
#X connect 30 0 28 0;
#X connect 31 0 30 0;
#X connect 32 0 21 0;

View file

@ -0,0 +1,76 @@
#N canvas 350 148 784 564 10;
#X text 452 8 GEM object;
#X obj 9 263 cnv 15 430 170 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 40 265 Inlets:;
#X obj 9 227 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 18 226 Arguments:;
#X obj 8 56 cnv 15 430 165 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 452 75 cnv 15 200 170 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 461 54 Example:;
#X obj 457 120 cnv 15 190 150 empty empty empty 20 12 0 14 -24198 -66577
0;
#X text 71 31 Class: pix object;
#X text 29 57 Description: a storage place for a number of images;
#X text 11 79 [pix_buffer] is a named storage place for images. It
is quite similar to pd's [table] object (but you cannot open it and
have a look at it's contents).;
#X text 50 11 Synopsis: [pix_buffer];
#X text 23 281 Inlet 1: bang: get the size of the buffer in frames
;
#X text 12 123 The images stored in the [pix_buffer] can have different
dimensions and coulorspaces. Memory is reserved on demand \, but you
can preallocate memory with the [allocate( message.;
#X text 23 481 Outlet 1: int: size of the buffer;
#X msg 464 128 bang;
#X floatatom 464 253 5 0 0 0 - - -;
#X msg 505 154 allocate 256 256 4;
#X text 462 296 see also:;
#X obj 475 348 pix_buffer_read;
#X obj 474 323 pix_buffer_write;
#X text 64 237 list: <buffer_name> <size>;
#X obj 464 230 pix_buffer depot 10;
#X text 10 170 To write data to the [pix_buffer] or get images from
it \, you can use separate objects [pix_buffer_write] and [pix_buffer_read]
or the [open( message.;
#X obj 505 80 bng 15 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 22 450 300 openpanel 0;
#X obj 114 62 inlet;
#X obj 121 254 outlet;
#X obj 114 125 openpanel;
#X obj 114 199 t b a;
#X msg 114 162 set open \$1 0;
#X connect 0 0 2 0;
#X connect 2 0 4 0;
#X connect 3 0 1 0;
#X connect 3 1 1 0;
#X connect 4 0 3 0;
#X restore 505 97 pd openpanel;
#X text 23 300 Inlet 1: message: open <filename> <index>: put an image
into the pix_buffer at the given index;
#X msg 505 132 open somefile.jpg 0;
#X msg 506 174 resize 15;
#X text 23 384 Inlet 1: message: resize <size>: re-allocate slots in
the buffer (slots will survive this);
#X text 23 333 Inlet 1: message: allocate <xsize> <ysize> <bytes_per_pixel>:
assume that all images in the pix_buffer will have the given dimension
and preallocate memory for them (pixes will be set to black);
#X msg 506 193 copy 0 2;
#X msg 506 212 save /tmp/out.jpg 2;
#X text 23 414 Inlet 1: message: copy <src> <target>: copy a pix from
slot <src> to slot <target>;
#X text 23 444 Inlet 1: message: save <filename> <index>: save image
in given slot to harddisk.;
#X connect 16 0 23 0;
#X connect 18 0 23 0;
#X connect 23 0 17 0;
#X connect 25 0 26 0;
#X connect 26 0 28 0;
#X connect 28 0 23 0;
#X connect 29 0 23 0;
#X connect 32 0 23 0;
#X connect 33 0 23 0;

View file

@ -0,0 +1,73 @@
#N canvas 48 174 691 473 10;
#X text 452 8 GEM object;
#X obj 9 265 cnv 15 430 135 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 40 267 Inlets:;
#X text 39 352 Outlets:;
#X obj 9 227 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 18 226 Arguments:;
#X obj 8 56 cnv 15 430 165 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 200 280 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 544 290 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X msg 67 70 set destroy;
#X msg 132 112 create \, 1;
#X msg 198 112 destroy;
#X msg 156 71 set create;
#X obj 67 41 route create;
#X connect 2 0 7 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 1 0;
#X connect 7 0 3 0;
#X connect 7 0 4 0;
#X connect 7 1 6 0;
#X connect 7 1 5 0;
#X restore 549 329 pd gemwin;
#X msg 549 310 create;
#X text 545 289 Create window:;
#X obj 451 109 cnv 15 155 80 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 83 gemhead;
#X text 17 366 Outlet 1: gemlist;
#X text 24 281 Inlet 1: gemlist;
#X obj 451 242 pix_texture;
#X floatatom 560 142 3 0 9 2 index - -;
#X text 71 31 Class: pix object;
#X text 64 237 list: <buffer_name>;
#X text 440 363 see also:;
#X obj 508 382 pix_buffer_write;
#X text 50 12 Synopsis: [pix_buffer_read];
#X text 29 57 Description: read from a [pix_buffer];
#X obj 451 168 pix_buffer_read depot;
#X obj 451 271 translate -2 0 1 0;
#X obj 451 292 square 1.9;
#X text 24 295 Inlet 1: message: set <buffer_name>: read from another
buffer.;
#X text 24 320 Inlet 2: int: index of the frame in the named pix_buffer
to read.;
#X text 11 79 [pix_buffer_read] reads an image from the named buffer
provided by [pix_buffer]. Specify the frame of the buffer you want
to read via the second inlet. If no frame is stored at the specified
index \, you will get no image. (eg: no texture will be applied). You
can change the buffer to read from on the fly via the [set( message.
;
#X msg 464 138 set depot3;
#X obj 508 362 pix_buffer depot3 1;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 25 0;
#X connect 17 0 26 0;
#X connect 18 0 25 1;
#X connect 25 0 17 0;
#X connect 26 0 27 0;
#X connect 31 0 25 0;

View file

@ -0,0 +1,98 @@
#N canvas 19 20 691 473 10;
#X text 452 8 GEM object;
#X obj 9 265 cnv 15 430 135 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 40 267 Inlets:;
#X text 39 352 Outlets:;
#X obj 9 227 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 18 226 Arguments:;
#X obj 8 56 cnv 15 430 165 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 200 280 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 536 293 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 450 300 gemwin 0;
#X obj 132 136 gemwin;
#X obj 67 89 outlet;
#X obj 67 10 inlet;
#X msg 67 70 set destroy;
#X msg 132 112 create \, 1;
#X msg 198 112 destroy;
#X msg 156 71 set create;
#X obj 67 41 route create;
#X connect 2 0 7 0;
#X connect 3 0 1 0;
#X connect 4 0 0 0;
#X connect 5 0 0 0;
#X connect 6 0 1 0;
#X connect 7 0 3 0;
#X connect 7 0 4 0;
#X connect 7 1 6 0;
#X connect 7 1 5 0;
#X restore 541 332 pd gemwin;
#X msg 541 313 create;
#X text 537 292 Create window:;
#X obj 451 179 cnv 15 155 70 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 83 gemhead;
#X text 17 366 Outlet 1: gemlist;
#X text 24 281 Inlet 1: gemlist;
#X obj 451 252 pix_texture;
#X obj 451 151 pix_film;
#X obj 515 151 t f;
#X obj 464 103 bng 25 250 50 0 empty empty empty 0 -6 0 8 -262144 -1
-1;
#N canvas 0 0 450 300 open 0;
#X obj 85 49 inlet;
#X obj 85 237 outlet;
#X obj 85 145 openpanel;
#X msg 85 179 open \$1;
#X msg 259 213 auto 1;
#X obj 268 179 loadbang;
#X connect 0 0 2 0;
#X connect 2 0 3 0;
#X connect 3 0 1 0;
#X connect 4 0 1 0;
#X connect 5 0 4 0;
#X restore 464 131 pd open;
#X text 505 77 open a supported;
#X text 506 88 movie-clip;
#X text 523 114 macOS: quicktime;
#X text 516 104 windos: *.AVI;
#X text 523 124 linux: depends...;
#X floatatom 560 196 3 0 9 2 index - -;
#X text 50 12 Synopsis: [pix_buffer_write];
#X text 71 31 Class: pix object;
#X obj 451 222 pix_buffer_write depot;
#X text 24 320 Inlet 2: int: index in the named pix_buffer.;
#X msg 464 192 set depot2;
#X text 11 79 [pix_buffer_write] writes an image into a named buffer
created by the [pix_buffer] object. When the index of the frame in
the buffer is passed via the second inlet to [pix_buffer_write] \,
the NEXT incoming image will be written to the buffer \, and the internal
state is reset. You have to re-set the index to write again.;
#X text 64 237 list: <buffer_name>;
#X text 24 295 Inlet 1: message: set <buffer_name>: write to another
buffer.;
#X text 440 363 see also:;
#X obj 508 382 pix_buffer_read;
#X obj 507 362 pix_buffer depot2 1;
#X text 29 57 Description: write images to a [pix_buffer];
#X obj 451 272 translate 2 0 1 0;
#X obj 451 292 square 1.9;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 18 0;
#X connect 17 0 40 0;
#X connect 18 0 30 0;
#X connect 18 2 19 0;
#X connect 19 0 18 1;
#X connect 20 0 21 0;
#X connect 21 0 18 0;
#X connect 27 0 30 1;
#X connect 30 0 17 0;
#X connect 32 0 30 0;
#X connect 40 0 41 0;

View file

@ -0,0 +1,144 @@
#N canvas 280 22 628 495 10;
#X text 452 8 GEM object;
#X obj 8 277 cnv 15 430 210 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 277 Inlets:;
#X text 42 451 Outlets:;
#X obj 8 241 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 240 Arguments:;
#X obj 8 56 cnv 15 430 180 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 320 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 518 410 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 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 restore 523 449 pd gemwin;
#X msg 523 430 destroy;
#X text 515 409 Create window:;
#X obj 451 160 cnv 15 160 175 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 119 gemhead;
#X obj 496 101 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#X obj 451 345 pix_texture;
#X text 63 251 <none>;
#X text 18 465 Outlet 1: gemlist;
#X text 15 291 Inlet 1: gemlist;
#X obj 451 373 square 3;
#X obj 546 120 gemhead;
#X obj 591 102 bng 15 250 50 0 empty empty empty 20 8 0 8 -262144 -1
-1;
#X text 16 432 Inlet 2: gemlist;
#X text 71 31 Class: pix mix object;
#X text 50 12 Synopsis: [pix_chroma_key];
#X text 29 57 Description: mix 2 images based on their color;
#X obj 451 313 pix_chroma_key;
#X msg 486 290 direction \$1;
#X obj 486 270 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 16 390 Inlet 1: direction 0|1 : which stream is the key-source
(0=left stream \; 1 = right stream);
#X floatatom 465 178 5 0 255 0 - - -;
#X floatatom 475 230 5 0 255 0 - - -;
#X text 37 197 The 2 images have to be of the same size.;
#X text 14 76 [pix_chroma_key] does compositing using pixel by pixel
comparisons on two video streams. the comparison is based on user a
user supplied RGB or YUV pixel value and +/- range. if the pixel in
the key source lies within the range \, then it is replaced by the
corresponding pixel im the other stream. typically this is most effective
on a static background like a green/blue screen \, but can be effective
when used with other GEM objects like pix_background for live video
processing.;
#X text 15 306 Inlet 1: value <list> : list of 3 floats of the pixel-value
to key out: values are either Red/Green/Blue (in RGBA-Space) or Y(luma)/U(Cb)/V(Cr)
in YUV-Space;
#X text 16 346 Inlet 1: range <list> : list of 3 floats defining the
+/-range of the key: values are either Red/Green/Blue (in RGBA-Space)
or Y(luma)/U(Cb)/V(Cr) in YUV-Space;
#X obj 478 216 hsl 128 12 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X obj 468 163 hsl 128 12 0 1 0 0 empty empty empty -2 -8 0 10 -262144
-1 -1 0 1;
#X msg 465 195 value \$1 \$1 \$1;
#X msg 475 248 range \$1 \$1 \$1;
#N canvas 0 22 587 366 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#X obj 77 212 pix_yuv;
#X text 133 214 we really want YUV;
#X obj 77 174 pix_image examples/data/dancer.JPG;
#X connect 0 0 7 0;
#X connect 2 0 4 0;
#X connect 3 0 7 0;
#X connect 4 0 3 0;
#X connect 5 0 1 0;
#X connect 7 0 5 0;
#X restore 451 138 pd image;
#X text 449 77 open two different images;
#N canvas 0 22 587 366 image 0;
#X obj 77 28 inlet;
#X obj 77 344 outlet;
#X obj 223 35 inlet;
#X msg 223 103 open \$1;
#X obj 223 80 openpanel;
#X obj 77 301 pix_buf;
#X msg 103 277 auto 1;
#X obj 103 256 loadbang;
#X text 166 263 [pix_buf] with auto 1 is important if we want to recalculate
our pix-effect each frame but don't want to reload the image all the
time.;
#X obj 77 230 pix_yuv;
#X obj 77 185 pix_image examples/data/fractal.JPG;
#X connect 0 0 10 0;
#X connect 2 0 4 0;
#X connect 3 0 10 0;
#X connect 4 0 3 0;
#X connect 5 0 1 0;
#X connect 6 0 5 0;
#X connect 7 0 6 0;
#X connect 9 0 5 0;
#X connect 10 0 9 0;
#X restore 546 139 pd image;
#X text 37 215 RGB values are 0-1 \, YUV values are 16/255-239/255
;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 41 0;
#X connect 15 0 41 1;
#X connect 16 0 20 0;
#X connect 21 0 43 0;
#X connect 22 0 43 1;
#X connect 27 0 16 0;
#X connect 28 0 27 0;
#X connect 29 0 28 0;
#X connect 31 0 39 0;
#X connect 32 0 40 0;
#X connect 37 0 32 0;
#X connect 38 0 31 0;
#X connect 39 0 27 0;
#X connect 40 0 27 0;
#X connect 41 0 27 0;
#X connect 43 0 27 1;

View file

@ -0,0 +1,11 @@
#N canvas 159 184 656 313 10;
#X msg 164 109 gemList;
#X msg 164 227 gemList;
#X text 155 10 part of GEM;
#X obj 164 168 pix_clearblock;
#X text 175 43 [pix_clearblock];
#X text 60 78 clear an image without destroying the texture;
#X text 58 255 all texture information/setup will be stored \, whereas
the image itself will be deleted;
#X connect 0 0 3 0;
#X connect 3 0 1 0;

View file

@ -0,0 +1,83 @@
#N canvas 0 0 654 372 10;
#X text 452 8 GEM object;
#X obj 8 245 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 248 Inlets:;
#X text 38 295 Outlets:;
#X obj 8 206 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 205 Arguments:;
#X obj 7 76 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 158 cnv 15 160 60 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 0 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 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 text 63 216 <none>;
#X text 56 308 Outlet 1: gemlist;
#X text 63 262 Inlet 1: gemlist;
#X text 50 12 Synopsis: [pix_color];
#X text 29 76 Description: set the colour-channels of an image;
#X msg 527 165 0 0.5 0.8;
#X obj 451 196 pix_color;
#X obj 451 233 pix_draw;
#X msg 458 164 1 0 0 1;
#X text 42 95 [pix_color] sets each pixel of an image to a certain
RGBA-value. As this is a pix_fx \, you will need an image first \,
to set its pixels to a certain value.;
#X text 63 275 Inlet 2: list: 3 (RGB) or 4 (RGBA) values;
#X text 29 133 Note that this is done by the CPU in the main-memory
of your machine \, while [color] is can be done very fast by your graphics-card.
Generally it is NOT a good idea to use [pix_color] if the same result
can be achieved with the [color] object !;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#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 24 0;
#X connect 23 0 24 1;
#X connect 24 0 25 0;
#X connect 26 0 24 1;

View file

@ -0,0 +1,89 @@
#N canvas 75 13 690 372 10;
#X text 452 8 GEM object;
#X obj 8 245 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 248 Inlets:;
#X text 38 295 Outlets:;
#X obj 8 206 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 205 Arguments:;
#X obj 7 76 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 520 218 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 525 257 pd gemwin;
#X msg 525 238 create;
#X text 521 217 Create window:;
#X obj 450 138 cnv 15 160 50 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 0 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 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 text 63 216 <none>;
#X text 56 308 Outlet 1: gemlist;
#X text 63 262 Inlet 1: gemlist;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X obj 451 162 pix_coloralpha;
#X obj 451 196 pix_texture;
#X obj 451 240 square 3;
#X obj 451 218 alpha;
#X obj 452 265 gemhead 1;
#X obj 452 305 sphere;
#X text 50 12 Synopsis: [pix_coloralpha];
#X text 19 76 Description: calculate the Alpha-channels from the RGB-data
;
#X text 28 102 [pix_coloralpha] will set the alpha-channel to be the
mean-value of the RGB-triple for each pixel.;
#X text 16 155 This of course \, makes only sense with RGBA-images.
;
#X obj 452 285 translate 2 0 0 -1;
#X text 63 275 Inlet 1: 1|0 : turn on/off;
#X obj 467 142 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1
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 23 0;
#X connect 23 0 24 0;
#X connect 24 0 26 0;
#X connect 26 0 25 0;
#X connect 27 0 33 0;
#X connect 33 0 28 0;
#X connect 35 0 23 0;

View file

@ -0,0 +1,89 @@
#N canvas 117 177 850 516 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 39 246 Outlets:;
#X obj 8 158 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 157 Arguments:;
#X obj 8 76 cnv 15 430 75 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 158 cnv 15 160 60 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 0 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 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 451 233 pix_texture;
#X text 63 168 <none>;
#X obj 451 255 square 3;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 29 77 Description: detects color classes in an image;
#X obj 8 324 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 16 323 See Also:;
#X text 62 334 examples/04.video/08.color_detection.pd;
#X text 56 212 Inlet 1: gemlist \, RGBA image;
#X text 57 232 Inlet 2: whether to output unreliable guesses (todo)
;
#X text 57 259 Outlet 1: gemlist \, RGBA image with encoded color class
representatives for each pixel: red [1 0 0] \, green [0 1 0] \, blue
[0 0 1] \, yellow [1 1 0] \, black [0 0 0] \, white [1 1 1] \, unsure
[154/255 \, 115/255 \, 86/255];
#X obj 451 196 pix_colorclassify;
#X text 16 357 Author: Ricardo Fabbri labmacambira.sf.net rfabbri at
gmail;
#X text 42 95 [pix_colorclassify] will detect colors in a pixImage
\, classifying each pixel into 6 classes: red \, green \, blue \, yellow
\, black \, white \, or 'uncertain'. It will only detect a color if
it is unambiguous.;
#X text 50 12 Synopsis: [pix_colorclassify];
#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 30 0;
#X connect 18 0 20 0;
#X connect 30 0 18 0;
#X coords 0 0 1 1 85 60 0;

View file

@ -0,0 +1,158 @@
#N canvas 76 273 636 411 10;
#X text 452 8 GEM object;
#X obj 8 295 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 298 Inlets:;
#X text 38 355 Outlets:;
#X obj 8 256 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 255 Arguments:;
#X obj 7 76 cnv 15 430 170 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 443 77 cnv 15 180 310 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 314 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 353 pd gemwin;
#X msg 519 334 create;
#X text 515 313 Create window:;
#X obj 450 138 cnv 15 160 150 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 0 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 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 text 63 266 <none>;
#X text 56 368 Outlet 1: gemlist;
#X text 63 312 Inlet 1: gemlist;
#X obj 451 293 pix_draw;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 50 12 Synopsis: [pix_colormatrix];
#X text 29 76 Description: transform the pixel values by a matrix;
#X text 63 325 Inlet 2: list: 9 (RGB) or 16 (RGBA) values \, forming
a matrix.;
#X text 12 94 pix_colormatrix transforms the pixel values by a matrix.
The matrix can be either a 3x3 or a 4x4. If the matrix is a 3x3 \,
then the alpha is set to 1;
#X text 12 135 See the HTML file from Paul Haberli for example matrices.
;
#X text 135 159 the matrix;
#X text 194 226 r g b a;
#X text 194 211 r g b a;
#X text 193 194 r g b a;
#X text 193 178 r g b a;
#X text 93 188 r g b;
#X text 93 204 r g b;
#X text 94 221 r g b;
#X obj 451 266 pix_colormatrix;
#X floatatom 495 195 3 -1 2 0 - - -;
#X floatatom 518 195 3 -1 2 0 - - -;
#X floatatom 541 195 3 -1 2 0 - - -;
#X floatatom 495 209 3 -1 2 0 - - -;
#X floatatom 518 209 3 -1 2 0 - - -;
#X floatatom 541 209 3 -1 2 0 - - -;
#X floatatom 495 223 3 -1 2 0 - - -;
#X floatatom 518 223 3 -1 2 0 - - -;
#X floatatom 541 223 3 -1 2 0 - - -;
#N canvas 0 0 450 300 pack 0;
#X obj 69 169 pack 0 0 0 0 0 0 0 0 0;
#X obj 69 139 t b f;
#X obj 106 139 t b f;
#X obj 143 139 t b f;
#X obj 180 139 t b f;
#X obj 217 139 t b f;
#X obj 254 139 t b f;
#X obj 291 139 t b f;
#X obj 328 139 t b f;
#X obj 32 111 inlet;
#X obj 69 111 inlet;
#X obj 106 111 inlet;
#X obj 143 111 inlet;
#X obj 180 111 inlet;
#X obj 217 111 inlet;
#X obj 254 111 inlet;
#X obj 291 111 inlet;
#X obj 328 111 inlet;
#X obj 69 196 outlet;
#X connect 0 0 18 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 2 0 0 0;
#X connect 2 1 0 2;
#X connect 3 0 0 0;
#X connect 3 1 0 3;
#X connect 4 0 0 0;
#X connect 4 1 0 4;
#X connect 5 0 0 0;
#X connect 5 1 0 5;
#X connect 6 0 0 0;
#X connect 6 1 0 6;
#X connect 7 0 0 0;
#X connect 7 1 0 7;
#X connect 8 0 0 0;
#X connect 8 1 0 8;
#X connect 9 0 0 0;
#X connect 10 0 1 0;
#X connect 11 0 2 0;
#X connect 12 0 3 0;
#X connect 13 0 4 0;
#X connect 14 0 5 0;
#X connect 15 0 6 0;
#X connect 16 0 7 0;
#X connect 17 0 8 0;
#X restore 474 236 pd pack 9 . . .;
#X msg 471 164 1;
#X obj 471 145 loadbang;
#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 37 0;
#X connect 37 0 21 0;
#X connect 38 0 47 0;
#X connect 39 0 47 1;
#X connect 40 0 47 2;
#X connect 41 0 47 3;
#X connect 42 0 47 4;
#X connect 43 0 47 5;
#X connect 44 0 47 6;
#X connect 45 0 47 7;
#X connect 46 0 47 8;
#X connect 47 0 37 1;
#X connect 48 0 38 0;
#X connect 48 0 42 0;
#X connect 48 0 46 0;
#X connect 49 0 48 0;

View file

@ -0,0 +1,86 @@
#N canvas 0 0 654 372 10;
#X text 452 8 GEM object;
#X obj 8 196 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 198 Inlets:;
#X text 39 282 Outlets:;
#X obj 8 156 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 155 Arguments:;
#X obj 8 76 cnv 15 430 75 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 158 cnv 15 160 60 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 0 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 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 451 233 pix_texture;
#X text 63 166 <none>;
#X text 57 295 Outlet 1: gemlist;
#X text 63 212 Inlet 1: gemlist;
#X obj 451 196 pix_colorreduce;
#X text 50 12 Synopsis: [pix_colorreduce];
#X text 29 77 Description: reduce the number of colour in the image
;
#X text 42 95 [pix_colorreduce] will reduce the number of colours in
a pixImage \, based on statistical information of the image.;
#X text 64 232 Inlet 2: float: number of colours;
#X text 64 247 Inlet 3: float: perisistency of the palette;
#X text 64 262 Inlet 4: float: edge smoothing;
#X floatatom 464 178 5 0 255 2 number - -;
#X floatatom 516 178 5 0 1 2 persist - -;
#X obj 451 255 square 3;
#X obj 569 176 tgl 15 0 empty empty smooth 0 -6 0 8 -262144 -1 -1 0
1;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#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 22 0;
#X connect 18 0 31 0;
#X connect 22 0 18 0;
#X connect 29 0 22 1;
#X connect 30 0 22 2;
#X connect 32 0 22 3;

View file

@ -0,0 +1,109 @@
#N canvas 69 186 667 394 10;
#X text 452 8 GEM object;
#X obj 8 226 cnv 15 430 120 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 228 Inlets:;
#X text 39 294 Outlets:;
#X obj 8 186 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 185 Arguments:;
#X obj 8 66 cnv 15 430 110 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 66 cnv 15 170 280 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 49 Example:;
#X obj 514 279 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 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 restore 519 318 pd gemwin;
#X msg 519 299 create;
#X text 515 278 Create window:;
#X obj 451 157 cnv 15 160 80 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 108 gemhead;
#X text 71 31 Class: pix object;
#X obj 502 91 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#N canvas 0 22 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 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 127 pd image;
#X obj 451 252 pix_texture;
#X text 63 196 <none>;
#X text 47 308 Outlet 1: gemlist;
#X text 53 242 Inlet 1: gemlist;
#X obj 451 274 square 3;
#X text 503 77 (JPEG \, TIFF \, ..);
#X obj 541 111 gemhead;
#N canvas 0 22 587 366 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 77 205 pix_image examples/data/ducks.png;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#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 541 130 pd image;
#X obj 592 92 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#X msg 491 185 direction \$1;
#X obj 491 167 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
#X text 50 12 Synopsis: [pix_compare];
#X text 29 67 Description: mix 2 images based on their luminance;
#X text 53 281 Inlet 2: gemlist;
#X obj 451 215 pix_compare;
#X text 53 254 Inlet 1: message: direction [0|1]: take lower or higher(default)
valued pixel;
#X text 449 66 open two different images;
#X text 18 81 [pix_compare] compares two images pixel by pixel and
outputs a composite image. [pix_compare] can do a greater than comparison
where a brighter pixel in the right stream will replace the corresponding
pixel in the left stream or the comparison can be reversed and the
dimmer pixel can be replaced. this operation works best using YUV but
can also be effective in RGB.;
#X text 33 354 see also:;
#X obj 99 355 pix_diff;
#X obj 159 355 pix_subtract;
#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 32 0;
#X connect 18 0 22 0;
#X connect 24 0 25 0;
#X connect 25 0 32 1;
#X connect 26 0 25 1;
#X connect 27 0 32 0;
#X connect 28 0 27 0;
#X connect 32 0 18 0;

View file

@ -0,0 +1,98 @@
#N canvas 0 252 683 381 10;
#X text 452 8 GEM object;
#X obj 8 226 cnv 15 430 135 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 248 Inlets:;
#X text 39 304 Outlets:;
#X obj 8 186 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 185 Arguments:;
#X obj 8 66 cnv 15 430 110 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 280 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 290 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 329 pd gemwin;
#X msg 519 310 create;
#X text 515 289 Create window:;
#X obj 451 208 cnv 15 160 40 empty empty empty 20 12 0 14 -24198 -66577
0;
#X obj 451 119 gemhead;
#X obj 502 102 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#N canvas 0 0 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 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 138 pd image;
#X obj 451 263 pix_texture;
#X text 63 196 <none>;
#X text 47 318 Outlet 1: gemlist;
#X text 53 262 Inlet 1: gemlist;
#X obj 451 285 square 3;
#X text 503 88 (JPEG \, TIFF \, ..);
#X obj 541 122 gemhead;
#N canvas 0 0 587 366 image 0;
#X obj 77 48 inlet;
#X obj 77 344 outlet;
#X obj 77 205 pix_image examples/data/dancer.JPG;
#X obj 223 55 inlet;
#X msg 223 123 open \$1;
#X obj 223 100 openpanel;
#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 541 141 pd image;
#X obj 592 103 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#X text 53 291 Inlet 2: gemlist;
#X text 449 77 open two different images;
#X text 71 31 Class: pix mix object;
#X text 33 137 The 2 images have to be of the same size.;
#X obj 451 218 pix_composite;
#X text 50 12 Synopsis: [pix_composite];
#X text 29 67 Description: alpha-blend 2 images;
#X text 13 84 [pix_composite] mixes two pixes together based on the
alpha value of the 1st pix.;
#X obj 451 166 pix_coloralpha;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 14 0 16 0;
#X connect 15 0 16 1;
#X connect 16 0 34 0;
#X connect 17 0 21 0;
#X connect 23 0 24 0;
#X connect 24 0 30 1;
#X connect 25 0 24 1;
#X connect 30 0 17 0;
#X connect 34 0 30 0;

View file

@ -0,0 +1,83 @@
#N canvas 59 276 654 372 10;
#X text 452 8 GEM object;
#X obj 8 225 cnv 15 430 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 232 Inlets:;
#X text 38 295 Outlets:;
#X obj 8 184 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 183 Arguments:;
#X obj 7 76 cnv 15 430 100 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 138 cnv 15 160 80 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 0 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 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 text 63 194 <none>;
#X text 56 308 Outlet 1: gemlist;
#X text 63 246 Inlet 1: gemlist;
#X obj 451 233 pix_draw;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X obj 451 196 pix_contrast;
#X text 50 12 Synopsis: [pix_contrast];
#X text 29 76 Description: change contrast and saturation of an image
;
#X text 17 97 [pix_contrast] will modify the contrast and saturation
of an image. When processing greyscale images \, only the contrast
can be modified (since there is no hue);
#X floatatom 490 148 5 0 10 1 contrast - -;
#X floatatom 530 175 5 0 0 0 saturation - -;
#X text 21 141 A contrast (or saturation) of "1" will not change the
image. Both contrast and saturation modifiers must be >=0!;
#X text 63 261 Inlet 2: float: contrast (>=0.f default=1.f);
#X text 63 274 Inlet 3: float: saturation (>=0.f default=1.f);
#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 24 0;
#X connect 24 0 21 0;
#X connect 28 0 24 1;
#X connect 29 0 24 2;

View file

@ -0,0 +1,103 @@
#N canvas 473 0 654 372 10;
#X text 452 8 GEM object;
#X obj 8 245 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 248 Inlets:;
#X text 38 295 Outlets:;
#X obj 8 206 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 205 Arguments:;
#X obj 7 76 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 135 cnv 15 160 90 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 0 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 obj 77 290 pix_buf;
#X msg 99 267 auto 1;
#X obj 99 246 loadbang;
#X connect 0 0 2 0;
#X connect 2 0 6 0;
#X connect 3 0 5 0;
#X connect 4 0 2 0;
#X connect 5 0 4 0;
#X connect 6 0 1 0;
#X connect 7 0 6 0;
#X connect 8 0 7 0;
#X restore 451 113 pd image;
#X text 63 216 <none>;
#X text 56 308 Outlet 1: gemlist;
#X text 63 262 Inlet 1: gemlist;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X text 22 93 Images can be stored in various formats/color-spaces.
;
#X text 62 339 see also:;
#X obj 205 338 pix_yuv;
#X obj 138 338 pix_grey;
#X text 22 107 GREY-scale images have no color-component \, while YUV
is missing the Alpha-channel.;
#X text 19 133 Traditionally \, RGBA is the native colour-space of
Gem \, although it is quite CPU-consumptive.;
#X obj 451 206 pix_convert;
#X msg 477 183 color \$1;
#X obj 477 163 symbol;
#X msg 477 141 grey;
#X msg 514 141 YUV;
#X msg 546 141 RGBA;
#X text 50 12 Synopsis: [pix_convert];
#X text 15 77 Description: convert the colorspace of an image;
#X obj 265 338 pix_rgba;
#X text 63 276 Inlet 1: color <symbol> :: colorspace to convert to
;
#X text 19 159 You can use [pix_convert] to convert images of any format
into a format you can choose.;
#X obj 451 233 pix_texture;
#X obj 451 256 square 3;
#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 29 0;
#X connect 29 0 40 0;
#X connect 30 0 29 0;
#X connect 31 0 30 0;
#X connect 32 0 31 0;
#X connect 33 0 31 0;
#X connect 34 0 31 0;
#X connect 40 0 41 0;

View file

@ -0,0 +1,243 @@
#N canvas 105 476 664 410 10;
#X text 452 8 GEM object;
#X obj 8 295 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 298 Inlets:;
#X text 38 355 Outlets:;
#X obj 8 256 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 255 Arguments:;
#X obj 7 76 cnv 15 430 170 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 443 77 cnv 15 180 310 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 314 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 353 pd gemwin;
#X msg 519 334 create;
#X text 515 313 Create window:;
#X obj 450 138 cnv 15 160 150 empty empty empty 20 12 0 14 -24198 -66577
0;
#X text 71 31 Class: pix object;
#X text 56 368 Outlet 1: gemlist;
#X text 63 312 Inlet 1: gemlist;
#X text 50 12 Synopsis: [pix_convolve];
#X text 29 76 Description: apply a convolution kernel;
#X text 20 95 pix_convolve accepts a convolution kernel to apply to
a pix. The scale is a divisor for the result (to normal the matrix).
The default is 1.0.;
#X obj 489 183 cnv 15 100 40 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 451 84 gemhead;
#X obj 510 85 bng 15 250 50 0 empty empty pix_load 20 8 0 8 -262144
-1 -1;
#N canvas 0 0 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 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 451 293 pix_draw;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X floatatom 505 182 3 -1 2 0 - - -;
#X floatatom 528 182 3 -1 2 0 - - -;
#X floatatom 551 182 3 -1 2 0 - - -;
#X floatatom 505 196 3 -1 2 0 - - -;
#X floatatom 528 196 3 -1 2 0 - - -;
#X floatatom 551 196 3 -1 2 0 - - -;
#X floatatom 505 210 3 -1 2 0 - - -;
#X floatatom 528 210 3 -1 2 0 - - -;
#X floatatom 551 210 3 -1 2 0 - - -;
#N canvas 0 0 450 469 pack 0;
#X obj 69 169 pack 0 0 0 0 0 0 0 0 0;
#X obj 69 139 t b f;
#X obj 106 139 t b f;
#X obj 143 139 t b f;
#X obj 180 139 t b f;
#X obj 217 139 t b f;
#X obj 254 139 t b f;
#X obj 291 139 t b f;
#X obj 328 139 t b f;
#X obj 32 111 inlet;
#X obj 69 111 inlet;
#X obj 106 111 inlet;
#X obj 143 111 inlet;
#X obj 180 111 inlet;
#X obj 217 111 inlet;
#X obj 254 111 inlet;
#X obj 291 111 inlet;
#X obj 328 111 inlet;
#X obj 61 349 outlet;
#X obj 274 355 outlet;
#X obj 71 190 t l l;
#X obj 257 232 unpack 0 0 0 0 0 0 0 0 0;
#X obj 399 256 +;
#X obj 358 256 +;
#X obj 318 256 +;
#X obj 277 256 +;
#X obj 379 286 +;
#X obj 298 286 +;
#X obj 349 316 +;
#X obj 268 316 +;
#X obj 58 294 select 0;
#X msg 48 323 1;
#X obj 132 391 /;
#X msg 132 365 1 \$1;
#X connect 0 0 20 0;
#X connect 1 0 0 0;
#X connect 1 1 0 1;
#X connect 2 0 0 0;
#X connect 2 1 0 2;
#X connect 3 0 0 0;
#X connect 3 1 0 3;
#X connect 4 0 0 0;
#X connect 4 1 0 4;
#X connect 5 0 0 0;
#X connect 5 1 0 5;
#X connect 6 0 0 0;
#X connect 6 1 0 6;
#X connect 7 0 0 0;
#X connect 7 1 0 7;
#X connect 8 0 0 0;
#X connect 8 1 0 8;
#X connect 9 0 0 0;
#X connect 10 0 1 0;
#X connect 11 0 2 0;
#X connect 12 0 3 0;
#X connect 13 0 4 0;
#X connect 14 0 5 0;
#X connect 15 0 6 0;
#X connect 16 0 7 0;
#X connect 17 0 8 0;
#X connect 20 0 21 0;
#X connect 20 1 19 0;
#X connect 21 0 29 0;
#X connect 21 1 25 0;
#X connect 21 2 25 1;
#X connect 21 3 24 0;
#X connect 21 4 24 1;
#X connect 21 5 23 0;
#X connect 21 6 23 1;
#X connect 21 7 22 0;
#X connect 21 8 22 1;
#X connect 22 0 26 1;
#X connect 23 0 26 0;
#X connect 24 0 27 1;
#X connect 25 0 27 0;
#X connect 26 0 28 1;
#X connect 27 0 28 0;
#X connect 28 0 29 1;
#X connect 29 0 30 0;
#X connect 30 0 31 0;
#X connect 30 1 33 0;
#X connect 31 0 18 0;
#X connect 32 0 18 0;
#X connect 33 0 32 0;
#X restore 484 224 pd pack 9 . . .;
#X obj 451 266 pix_convolve 3 3;
#X floatatom 484 249 5 0 0 1 scale - -;
#N canvas 411 476 605 305 unpack 0;
#X obj 60 270 outlet;
#X obj 111 270 outlet;
#X obj 164 270 outlet;
#X obj 215 270 outlet;
#X obj 266 270 outlet;
#X obj 317 270 outlet;
#X obj 370 270 outlet;
#X obj 421 270 outlet;
#X obj 471 271 outlet;
#X obj 179 173 unpack 0 0 0 0 0 0 0 0 0;
#X obj 130 13 inlet;
#X obj 130 40 route edge1 edge2 smooth none;
#X msg 130 124 -1 -1 -1 -1 8 -1 -1 -1 -1;
#X msg 179 102 -1 -4 -1 -4 20 -4 -1 -4 -1;
#X msg 229 82 1 2 1 2 4 2 1 2 1;
#X msg 278 62 0 0 0 0 1 0 0 0 0;
#X connect 9 0 0 0;
#X connect 9 1 1 0;
#X connect 9 2 2 0;
#X connect 9 3 3 0;
#X connect 9 4 4 0;
#X connect 9 5 5 0;
#X connect 9 6 6 0;
#X connect 9 7 7 0;
#X connect 9 8 8 0;
#X connect 10 0 11 0;
#X connect 11 0 12 0;
#X connect 11 1 13 0;
#X connect 11 2 14 0;
#X connect 11 3 15 0;
#X connect 12 0 9 0;
#X connect 13 0 9 0;
#X connect 14 0 9 0;
#X connect 15 0 9 0;
#X restore 473 165 pd unpack 9 . . .;
#X msg 459 142 none;
#X msg 540 142 edge1;
#X msg 582 142 edge2;
#X msg 493 142 smooth;
#X text 63 325 Inlet 2: <float>: scale-factor;
#X text 63 338 Inlet 2: list: the convolution-kernel;
#X text 20 144 The matrix must have the same size as the arguments
(in this instance \, a 3 x 3 matrix) \, and is given as a single list
of the matrix-values row after row.;
#X text 63 266 <int><int>: matrix dimensions;
#X text 28 190 Currently \, only square matrices are supported.;
#X connect 10 0 11 0;
#X connect 11 0 10 0;
#X connect 21 0 23 0;
#X connect 22 0 23 1;
#X connect 23 0 37 0;
#X connect 27 0 36 0;
#X connect 28 0 36 1;
#X connect 29 0 36 2;
#X connect 30 0 36 3;
#X connect 31 0 36 4;
#X connect 32 0 36 5;
#X connect 33 0 36 6;
#X connect 34 0 36 7;
#X connect 35 0 36 8;
#X connect 36 0 38 0;
#X connect 36 1 37 2;
#X connect 37 0 24 0;
#X connect 38 0 37 1;
#X connect 39 0 27 0;
#X connect 39 1 28 0;
#X connect 39 2 29 0;
#X connect 39 3 30 0;
#X connect 39 4 31 0;
#X connect 39 5 32 0;
#X connect 39 6 33 0;
#X connect 39 7 34 0;
#X connect 39 8 35 0;
#X connect 40 0 39 0;
#X connect 41 0 39 0;
#X connect 42 0 39 0;
#X connect 43 0 39 0;

View file

@ -0,0 +1,98 @@
#N canvas 395 396 694 458 10;
#X text 452 8 GEM object;
#X obj 8 335 cnv 15 430 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 338 Inlets:;
#X text 38 385 Outlets:;
#X obj 8 296 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 295 Arguments:;
#X obj 7 76 cnv 15 430 210 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 474 344 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 22 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 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 restore 479 383 pd gemwin;
#X msg 479 364 destroy;
#X text 475 343 Create window:;
#X obj 450 188 cnv 15 160 100 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 22 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 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 text 63 306 <none>;
#X text 56 398 Outlet 1: gemlist;
#X text 63 352 Inlet 1: gemlist;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#X obj 451 296 square 3;
#X text 50 12 Synopsis: [pix_coordinate];
#X text 13 76 Description: set the texture-coordinates for a pix;
#X text 34 94 pix_coordinate remaps the S \, T texture values from
the default values. For instance \, a texture could repeat by increasing
the texture S \, T values from 1 \, 1 to 2 \, 2 (See the examples).
;
#X text 63 367 Inlet 2: list: 8 values (4 (s \, t)-pairs);
#X obj 538 144 loadbang;
#X msg 461 237 \$1 \$1 0 \$1 0 0 \$1 0;
#X floatatom 461 220 3 0 256 0 - - -;
#X obj 451 136 pix_texture;
#X text 14 159 IMPORTANT NOTE-1: [pix_texture] sets the texture-coordinates
to "appropriate" values \, so you probably want to use [pix_coordinate]
afterwards;
#X obj 10 207 cnv 15 420 70 empty empty empty 20 12 0 14 -225280 -66577
0;
#X text 14 209 IMPORTANT NOTE-2: if your hardware supports it \, Gem
tries to use "rectangle-texturing". This means that normal texture-coordinates
range from 0..xsize (resp. 0..ysize). If it is not supported (or forced-off
with "mode 0" to [pix_texture]) texture-coordinates range from 0..1
;
#X obj 451 266 pix_coordinate;
#X msg 459 193 0 0 1 0 1 1 0 1;
#X msg 468 167 rectangle 0 \, repeat 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 31 0;
#X connect 28 0 37 0;
#X connect 29 0 35 1;
#X connect 30 0 29 0;
#X connect 31 0 35 0;
#X connect 35 0 23 0;
#X connect 36 0 35 1;
#X connect 37 0 31 0;

88
Gem/help/pix_crop-help.pd Normal file
View file

@ -0,0 +1,88 @@
#N canvas 0 0 651 393 10;
#X text 452 8 GEM object;
#X obj 8 216 cnv 15 430 125 empty empty empty 20 12 0 14 -233017 -66577
0;
#X text 39 218 Inlets:;
#X text 39 310 Outlets:;
#X obj 8 176 cnv 15 430 30 empty empty empty 20 12 0 14 -195568 -66577
0;
#X text 17 175 Arguments:;
#X obj 8 76 cnv 15 430 90 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 449 77 cnv 15 170 250 empty empty empty 20 12 0 14 -228992 -66577
0;
#X text 453 60 Example:;
#X obj 514 254 cnv 15 100 60 empty empty empty 20 12 0 14 -195568 -66577
0;
#N canvas 0 0 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 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 restore 519 293 pd gemwin;
#X msg 519 274 create;
#X text 515 253 Create window:;
#X obj 450 146 cnv 15 160 80 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 0 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 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 451 233 pix_texture;
#X text 63 186 <offX=0> <offY=0> <dimX=64> <dimY=64>;
#X text 57 323 Outlet 1: gemlist;
#X text 63 232 Inlet 1: gemlist;
#X obj 451 255 square 3;
#X obj 451 196 pix_crop;
#X text 63 245 Inlet 2: float: dimenX;
#X text 63 258 Inlet 3: float: dimenY;
#X text 63 273 Inlet 4: float: offsetX;
#X text 63 284 Inlet 5: float: offsetY;
#X text 50 12 Synopsis: [pix_crop];
#X floatatom 463 160 5 0 0 1 dimX - -;
#X floatatom 476 177 5 0 0 1 dimY - -;
#X floatatom 543 160 5 0 0 1 offX - -;
#X floatatom 556 177 5 0 0 1 offY - -;
#X text 29 77 Description: get a subimage of an image;
#X text 12 91 [pix_crop]: only passes the selected rectangle further
on. The slection is made by the dimension of the subimage in pixels
and the offset (in pixels) from the lower left corner.;
#X text 516 105 open an image;
#X text 509 118 (JPEG \, TIFF \, ..);
#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 23 0;
#X connect 18 0 22 0;
#X connect 23 0 18 0;
#X connect 29 0 23 1;
#X connect 30 0 23 2;
#X connect 31 0 23 3;
#X connect 32 0 23 4;

Some files were not shown because too many files have changed in this diff Show more