diff options
Diffstat (limited to 'Gem/gemframebuffer-help.pd')
-rw-r--r-- | Gem/gemframebuffer-help.pd | 237 |
1 files changed, 237 insertions, 0 deletions
diff --git a/Gem/gemframebuffer-help.pd b/Gem/gemframebuffer-help.pd new file mode 100644 index 0000000..7ab036c --- /dev/null +++ b/Gem/gemframebuffer-help.pd @@ -0,0 +1,237 @@ +#N canvas 125 98 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 50 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 50 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 50 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 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 text 31 557 Outlet 2: texture info : <id> <width> <height> <type> +<0.>; +#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 85 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 83 0 3 0; +#X connect 84 0 85 1; +#X connect 85 0 17 0; +#X connect 86 0 85 3; +#X connect 87 0 85 2; +#X connect 88 0 38 0; +#X connect 89 0 38 0; |