aboutsummaryrefslogtreecommitdiff
path: root/Gem/examples/07.texture
diff options
context:
space:
mode:
authorTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2019-02-07 23:07:46 +0000
committerTravis CI <zmoelnig@travis-ci.umlaeute.mur.at>2019-02-07 23:07:46 +0000
commitaa5a0048ef7a324e85a5704c0e0ea5374b5da3a9 (patch)
treef0115f7a4482f678ae13ef5a0e692a6c51e09629 /Gem/examples/07.texture
parent2d8e19d10be55c6c7f99bb306bec3507b353f485 (diff)
Gem 6ea7a457bfdbafb64c4123cb12882643bcf4109f osx/i386
built 'master:6ea7a457bfdbafb64c4123cb12882643bcf4109f' for osx/i386
Diffstat (limited to 'Gem/examples/07.texture')
-rw-r--r--Gem/examples/07.texture/01.texture.pd4
-rw-r--r--Gem/examples/07.texture/02.TexCoord.pd4
-rw-r--r--Gem/examples/07.texture/04.moveImages.pd4
-rw-r--r--Gem/examples/07.texture/05.newWave.pd2
-rw-r--r--Gem/examples/07.texture/06.ripple.pd4
-rw-r--r--Gem/examples/07.texture/07.feedback.pd4
-rw-r--r--Gem/examples/07.texture/08.MotionBlur.pd4
-rw-r--r--Gem/examples/07.texture/09.sharedTextures.pd4
-rw-r--r--Gem/examples/07.texture/10.framebuffer.pd152
-rw-r--r--Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd4
10 files changed, 103 insertions, 83 deletions
diff --git a/Gem/examples/07.texture/01.texture.pd b/Gem/examples/07.texture/01.texture.pd
index da6dedc..2373f0b 100644
--- a/Gem/examples/07.texture/01.texture.pd
+++ b/Gem/examples/07.texture/01.texture.pd
@@ -1,4 +1,5 @@
-#N canvas 180 41 560 399 10;
+#N canvas 180 61 560 399 10;
+#X declare -lib Gem;
#X floatatom 369 147 0 0 0 0 - - -;
#X obj 325 202 pix_image ../data/fractal.JPG;
#X obj 325 245 pix_texture;
@@ -52,6 +53,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 60 170 pd gemwin;
+#X obj 444 11 declare -lib Gem;
#X connect 0 0 3 1;
#X connect 1 0 2 0;
#X connect 2 0 4 0;
diff --git a/Gem/examples/07.texture/02.TexCoord.pd b/Gem/examples/07.texture/02.TexCoord.pd
index 951c700..4b538e6 100644
--- a/Gem/examples/07.texture/02.TexCoord.pd
+++ b/Gem/examples/07.texture/02.TexCoord.pd
@@ -1,4 +1,5 @@
-#N canvas 127 46 642 483 10;
+#N canvas 127 61 642 483 10;
+#X declare -lib Gem;
#X obj 251 46 gemhead;
#X obj 251 424 square;
#X obj 251 369 pix_coordinate;
@@ -58,6 +59,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 34 255 pd gemwin;
+#X obj 534 11 declare -lib Gem;
#X connect 0 0 4 0;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
diff --git a/Gem/examples/07.texture/04.moveImages.pd b/Gem/examples/07.texture/04.moveImages.pd
index 8107c0c..0ebd71b 100644
--- a/Gem/examples/07.texture/04.moveImages.pd
+++ b/Gem/examples/07.texture/04.moveImages.pd
@@ -1,4 +1,5 @@
-#N canvas 180 41 816 619 10;
+#N canvas 180 61 816 619 10;
+#X declare -lib Gem;
#X text 730 64 on;
#X text 767 62 off;
#X text 513 71 on;
@@ -105,6 +106,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 34 255 pd gemwin;
+#X obj 4 11 declare -lib Gem;
#X connect 4 0 18 0;
#X connect 5 0 25 0;
#X connect 6 0 33 0;
diff --git a/Gem/examples/07.texture/05.newWave.pd b/Gem/examples/07.texture/05.newWave.pd
index 52c631b..1fa1d59 100644
--- a/Gem/examples/07.texture/05.newWave.pd
+++ b/Gem/examples/07.texture/05.newWave.pd
@@ -1,4 +1,5 @@
#N canvas 110 90 876 486 10;
+#X declare -lib Gem;
#X text 653 313 Inlet 1: gemlist;
#X obj 209 277 gemhead;
#X floatatom 622 130 5 0 0 2 size - -;
@@ -136,6 +137,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 502 402 pd gemwin;
+#X obj 744 461 declare -lib Gem;
#X connect 1 0 73 0;
#X connect 2 0 57 1;
#X connect 3 0 36 0;
diff --git a/Gem/examples/07.texture/06.ripple.pd b/Gem/examples/07.texture/06.ripple.pd
index a329550..64b207a 100644
--- a/Gem/examples/07.texture/06.ripple.pd
+++ b/Gem/examples/07.texture/06.ripple.pd
@@ -1,4 +1,5 @@
-#N canvas 153 39 582 638 10;
+#N canvas 153 61 582 638 10;
+#X declare -lib Gem;
#X obj 299 39 openpanel;
#X msg 34 50 dimen 640 480;
#X obj 174 115 gemhead;
@@ -80,6 +81,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 34 185 pd gemwin;
+#X obj 454 611 declare -lib Gem;
#X connect 0 0 10 0;
#X connect 1 0 32 0;
#X connect 2 0 22 0;
diff --git a/Gem/examples/07.texture/07.feedback.pd b/Gem/examples/07.texture/07.feedback.pd
index a402cfe..1ce9673 100644
--- a/Gem/examples/07.texture/07.feedback.pd
+++ b/Gem/examples/07.texture/07.feedback.pd
@@ -1,4 +1,5 @@
-#N canvas 4 50 630 424 10;
+#N canvas 6 61 630 424 10;
+#X declare -lib Gem;
#X msg 320 121 snap;
#X obj 320 68 gemhead 15;
#X obj 39 64 gemhead 10;
@@ -71,6 +72,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 455 355 pd gemwin;
+#X obj 524 11 declare -lib Gem;
#X connect 0 0 10 0;
#X connect 1 0 19 0;
#X connect 2 0 3 0;
diff --git a/Gem/examples/07.texture/08.MotionBlur.pd b/Gem/examples/07.texture/08.MotionBlur.pd
index ca5e121..36b7e82 100644
--- a/Gem/examples/07.texture/08.MotionBlur.pd
+++ b/Gem/examples/07.texture/08.MotionBlur.pd
@@ -1,4 +1,5 @@
-#N canvas 13 0 1023 406 10;
+#N canvas 13 61 1023 406 10;
+#X declare -lib Gem;
#X obj 33 260 world_light;
#X msg 282 164 bang;
#X obj 282 144 metro 500;
@@ -108,6 +109,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 47 160 pd gemwin;
+#X obj 914 11 declare -lib Gem;
#X connect 1 0 19 0;
#X connect 2 0 1 0;
#X connect 3 0 2 0;
diff --git a/Gem/examples/07.texture/09.sharedTextures.pd b/Gem/examples/07.texture/09.sharedTextures.pd
index bd8cb84..b739fc7 100644
--- a/Gem/examples/07.texture/09.sharedTextures.pd
+++ b/Gem/examples/07.texture/09.sharedTextures.pd
@@ -1,4 +1,5 @@
-#N canvas 180 41 1035 404 10;
+#N canvas 180 61 1035 404 10;
+#X declare -lib Gem;
#X floatatom 370 259 0 0 0 0 - - -;
#X obj 325 122 pix_image ../data/fractal.JPG;
#X obj 325 155 pix_texture;
@@ -62,6 +63,7 @@
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
#X restore 91 191 pd gemwin;
+#X obj 914 11 declare -lib Gem;
#X connect 0 0 3 1;
#X connect 1 0 2 0;
#X connect 2 0 6 0;
diff --git a/Gem/examples/07.texture/10.framebuffer.pd b/Gem/examples/07.texture/10.framebuffer.pd
index 7717e47..bf73cc0 100644
--- a/Gem/examples/07.texture/10.framebuffer.pd
+++ b/Gem/examples/07.texture/10.framebuffer.pd
@@ -1,90 +1,91 @@
-#N canvas 446 42 834 667 10;
-#X obj 202 83 gemhead 20;
-#X obj 491 166 gemhead;
-#X floatatom 532 391 5 0 0 0 - - -;
-#X floatatom 481 392 5 0 0 0 - - -;
-#X obj 581 389 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
+#N canvas 226 61 834 813 10;
+#X declare -lib Gem;
+#X obj 272 83 gemhead 20;
+#X obj 561 166 gemhead;
+#X floatatom 602 391 5 0 0 0 - - -;
+#X floatatom 551 392 5 0 0 0 - - -;
+#X obj 651 389 nbx 5 14 -1e+37 1e+37 0 0 empty empty empty 0 -6 0 10
-262144 -1 -1 0 256;
-#X msg 286 97 dim 320 240;
-#X msg 286 117 dim 256 256;
-#X obj 278 634 rotateXYZ;
-#X floatatom 334 617 5 0 0 0 - - -;
-#X floatatom 346 636 5 0 0 0 - - -;
-#X floatatom 295 617 5 0 0 0 - - -;
-#X floatatom 299 443 5 0 0 0 - - -;
-#X floatatom 348 443 5 0 0 0 - - -;
-#X floatatom 250 443 5 0 0 0 - - -;
-#X obj 278 333 separator;
-#X obj -56 319 gemhead 1;
-#X obj -56 339 world_light;
-#X msg 286 137 dim 512 512;
-#X floatatom 507 322 5 0 0 0 - - -;
-#X floatatom 582 333 5 0 0 0 - - -;
-#X msg 289 45 color 0 0 1 0;
-#X msg 286 157 dim 1024 1024;
-#X msg 289 69 color 0 0 0 0;
-#X obj 203 507 rotateXYZ;
-#X floatatom 226 490 5 0 0 0 - - -;
-#X floatatom 269 490 5 0 0 0 - - -;
-#X floatatom 318 496 5 0 0 0 - - -;
-#X msg -21 72 color 0 0 0 0;
-#X obj 278 554 t a b;
-#X msg -33 51 color 0 1 1 0;
-#X msg -12 121 lighting \$1;
-#X obj -12 100 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
-1;
-#X floatatom 554 433 5 0 0 0 - - -;
-#X obj 202 302 t a a;
-#X obj 202 355 color 1 1 1;
-#X obj 203 413 pix_texture;
-#X msg 406 94 mode \$1;
-#X obj 406 67 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
+#X msg 356 97 dim 320 240;
+#X msg 356 117 dim 256 256;
+#X obj 348 634 rotateXYZ;
+#X floatatom 404 617 5 0 0 0 - - -;
+#X floatatom 416 636 5 0 0 0 - - -;
+#X floatatom 365 617 5 0 0 0 - - -;
+#X floatatom 369 443 5 0 0 0 - - -;
+#X floatatom 418 443 5 0 0 0 - - -;
+#X floatatom 320 443 5 0 0 0 - - -;
+#X obj 348 333 separator;
+#X obj 14 319 gemhead 1;
+#X obj 14 339 world_light;
+#X msg 356 137 dim 512 512;
+#X floatatom 577 322 5 0 0 0 - - -;
+#X floatatom 652 333 5 0 0 0 - - -;
+#X msg 359 45 color 0 0 1 0;
+#X msg 356 157 dim 1024 1024;
+#X msg 359 69 color 0 0 0 0;
+#X obj 273 507 rotateXYZ;
+#X floatatom 296 490 5 0 0 0 - - -;
+#X floatatom 339 490 5 0 0 0 - - -;
+#X floatatom 388 496 5 0 0 0 - - -;
+#X msg 49 72 color 0 0 0 0;
+#X obj 348 554 t a b;
+#X msg 37 51 color 0 1 1 0;
+#X msg 58 121 lighting \$1;
+#X obj 58 100 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
+;
+#X floatatom 624 433 5 0 0 0 - - -;
+#X obj 272 302 t a a;
+#X obj 272 355 color 1 1 1;
+#X obj 273 413 pix_texture;
+#X msg 476 94 mode \$1;
+#X obj 476 67 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0 1
;
-#X obj 203 467 translateXYZ -0.5 -0.8 -1;
-#X msg 229 374 open data/fractal.JPG;
-#X floatatom 376 507 5 0 0 0 - - -;
-#X msg 289 10 type FLOAT;
-#X obj 460 131 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
+#X obj 273 467 translateXYZ -0.5 -0.8 -1;
+#X msg 299 374 open data/fractal.JPG;
+#X floatatom 446 507 5 0 0 0 - - -;
+#X msg 359 10 type FLOAT;
+#X obj 530 131 tgl 15 0 empty empty empty 0 -6 0 8 -262144 -1 -1 0
1;
-#X floatatom 342 281 5 0 0 0 - - -;
-#X obj 203 527 sphere 0.4;
-#X obj 491 357 rotateXYZ 28 0 200;
-#X obj 491 431 square 2;
-#X obj 491 410 translateXYZ 0 0 1.53;
-#X obj 202 281 translateXYZ 0 0 -4;
-#X obj 278 681 cube 0.57;
-#X obj 278 527 translateXYZ 2 0 -1;
-#X obj 202 135 color 0 1 0;
-#X obj 179 195 cnv 15 400 60 empty empty empty 20 12 0 14 -233017 -66577
+#X floatatom 412 281 5 0 0 0 - - -;
+#X obj 273 527 sphere 0.4;
+#X obj 561 357 rotateXYZ 28 0 200;
+#X obj 561 431 square 2;
+#X obj 561 410 translateXYZ 0 0 1.53;
+#X obj 272 281 translateXYZ 0 0 -4;
+#X obj 348 681 cube 0.57;
+#X obj 348 527 translateXYZ 2 0 -1;
+#X obj 272 135 color 0 1 0;
+#X obj 249 195 cnv 15 400 60 empty empty empty 20 12 0 14 -233017 -66577
0;
-#X obj 202 200 gemframebuffer;
-#X obj 491 233 pix_texture;
-#X obj -56 410 gemhead;
-#X obj -56 459 teapot 0.3;
-#X obj -56 435 translateXYZ -3 3 0;
-#X text -52 726 this example renders a scene (cube and sphere) into
+#X obj 272 200 gemframebuffer;
+#X obj 561 233 pix_texture;
+#X obj 14 410 gemhead;
+#X obj 14 459 teapot 0.3;
+#X obj 14 435 translateXYZ -3 3 0;
+#X text 18 726 this example renders a scene (cube and sphere) into
a framebuffer \, which is then used as a texture onto a square. teapot
and square live in a "meta"-world in relation to cube and sphere.;
-#X obj 362 575 % 360;
-#X obj 308 575 i;
-#X obj 491 265 t a b;
-#X obj 567 286 + 1;
-#X obj 334 575 + 5;
-#X obj 521 286 i 200;
-#X obj 595 286 % 3600;
-#X obj 582 313 / 10;
-#X text 435 65 <-- click me to change between normalized(0) and rectangle(1)
+#X obj 432 575 % 360;
+#X obj 378 575 i;
+#X obj 561 265 t a b;
+#X obj 637 286 + 1;
+#X obj 404 575 + 5;
+#X obj 591 286 i 200;
+#X obj 665 286 % 3600;
+#X obj 652 313 / 10;
+#X text 505 65 <-- click me to change between normalized(0) and rectangle(1)
textures.;
-#X text 399 717 you need framebuffer support on your gfx-card;
-#X text 395 738 (and its driver!);
-#X obj 202 394 pix_image ../data/fractal.JPG;
+#X text 469 717 you need framebuffer support on your gfx-card;
+#X text 465 738 (and its driver!);
+#X obj 272 394 pix_image ../data/fractal.JPG;
#N canvas 87 154 247 179 Gem.init 0;
#X obj 118 46 loadbang;
#X msg 118 81 reset;
#X obj 118 113 outlet;
#X connect 0 0 1 0;
#X connect 1 0 2 0;
-#X restore -3 160 pd Gem.init;
+#X restore 67 160 pd Gem.init;
#N canvas 340 107 682 322 gemwin 0;
#X obj 102 122 tgl 15 0 \$0-gemstart \$0-gemstart empty 17 7 0 10 -262144
-1 -1 0 1;
@@ -124,7 +125,8 @@ textures.;
#X connect 15 0 16 0;
#X connect 16 0 0 0;
#X coords 0 -1 1 1 85 40 1 100 100;
-#X restore -33 177 pd gemwin;
+#X restore 37 177 pd gemwin;
+#X obj 704 11 declare -lib Gem;
#X connect 0 0 51 0;
#X connect 1 0 54 0;
#X connect 2 0 47 2;
diff --git a/Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd b/Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd
index 6738415..1e4a7e5 100644
--- a/Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd
+++ b/Gem/examples/07.texture/11.multiples_gemhead_in_a_framebuffer.pd
@@ -1,4 +1,5 @@
#N canvas 39 70 764 536 10;
+#X declare -lib Gem;
#X obj 108 279 cnv 15 300 80 empty empty empty 20 12 0 14 -233017 -66577
0;
#X obj 112 112 cnv 15 300 60 empty empty empty 20 12 0 14 -233017 -66577
@@ -46,7 +47,7 @@ single framebuffer;
#X restore 625 90 pd Gem.init;
#N canvas 340 107 682 322 gemwin 0;
#X obj 102 122 tgl 15 0 \$0-gemstart \$0-gemstart empty 17 7 0 10 -262144
--1 -1 1 1;
+-1 -1 0 1;
#X obj 102 161 r \$0-gemstart;
#X obj 102 182 select 1 0;
#X msg 102 214 create \, 1;
@@ -87,6 +88,7 @@ single framebuffer;
#X msg 595 63 color \$1 \$1 \$1;
#X obj 595 44 tgl 15 0 empty empty empty 17 7 0 10 -262144 -1 -1 0
0.5;
+#X obj 654 501 declare -lib Gem;
#X connect 2 0 12 0;
#X connect 3 0 13 0;
#X connect 4 0 16 0;