diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-04-24 12:32:01 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2006-04-24 12:32:01 +0000 |
commit | f5a58859de4ef996442b9af97f26ceb6eb81b9f3 (patch) | |
tree | f03146f0eadd4d1e594bd7aa61b0ea321a2b79c2 /doc/tutorials | |
parent | 4cc9ce609d9479670bd0c545ab553a90ce0150e4 (diff) |
added mousing to gemwin_control using Cyrille's ch_gemwin; cleaned up formatting and added bits here and there
svn path=/trunk/; revision=4993
Diffstat (limited to 'doc/tutorials')
-rw-r--r-- | doc/tutorials/visual/01.gemwin.pd | 2 | ||||
-rw-r--r-- | doc/tutorials/visual/02.gemwin_as_reference.pd | 2 | ||||
-rw-r--r-- | doc/tutorials/visual/03.render_chains.pd | 19 | ||||
-rw-r--r-- | doc/tutorials/visual/04.basic_2d_objects.pd | 43 | ||||
-rw-r--r-- | doc/tutorials/visual/05.lighting.pd | 2 | ||||
-rw-r--r-- | doc/tutorials/visual/06.basic_3d_objects.pd | 10 | ||||
-rw-r--r-- | doc/tutorials/visual/ch_gemwin.pd | 170 | ||||
-rw-r--r-- | doc/tutorials/visual/gemwin_control.pd | 10 |
8 files changed, 225 insertions, 33 deletions
diff --git a/doc/tutorials/visual/01.gemwin.pd b/doc/tutorials/visual/01.gemwin.pd index 0fb5f79a..b74d7bac 100644 --- a/doc/tutorials/visual/01.gemwin.pd +++ b/doc/tutorials/visual/01.gemwin.pd @@ -1,4 +1,4 @@ -#N canvas 548 149 480 369 10; +#N canvas 10 40 620 460 10; #X obj 196 258 gemwin; #X obj 8 10 cnv 15 400 40 empty empty gemwin 20 12 0 24 -228992 -66577 0; diff --git a/doc/tutorials/visual/02.gemwin_as_reference.pd b/doc/tutorials/visual/02.gemwin_as_reference.pd index e269c883..a9fe8f85 100644 --- a/doc/tutorials/visual/02.gemwin_as_reference.pd +++ b/doc/tutorials/visual/02.gemwin_as_reference.pd @@ -1,4 +1,4 @@ -#N canvas 548 149 480 369 10; +#N canvas 10 40 620 460 10; #X obj 64 322 gemwin; #X obj 8 10 cnv 15 400 40 empty empty gemwin_as_pointer 20 12 0 24 -228992 -66577 0; diff --git a/doc/tutorials/visual/03.render_chains.pd b/doc/tutorials/visual/03.render_chains.pd index 74cb8728..e92d1b4f 100644 --- a/doc/tutorials/visual/03.render_chains.pd +++ b/doc/tutorials/visual/03.render_chains.pd @@ -1,20 +1,17 @@ -#N canvas 548 149 488 377 10; +#N canvas 10 40 624 464 10; #X obj 8 10 cnv 15 400 40 empty empty render_chains 20 12 0 24 -228992 -66577 0; -#X obj 298 244 gemhead; -#X obj 297 216 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1 +#X obj 208 217 gemhead; +#X obj 209 172 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; -#X obj 48 274 gemwin; -#X msg 47 217 create \, 1; -#X msg 61 244 destroy; -#X obj 297 300 square; +#X obj 207 266 square; #X text 31 74 Gem operates on "render chains". Render chains define the flow and ordering of the rendering of graphics to the Gem world that you see in the [gemwin].; -#X text 29 133 Every render chain must start with a [gemhead] \, or +#X text 29 353 Every render chain must start with a [gemhead] \, or it will not be generated. Render chains generally end with an shape object (sometimes called a "geo").; -#X connect 1 0 6 0; +#X obj 465 16 gemwin_control; +#X obj 466 60 import Gem; +#X connect 1 0 3 0; #X connect 2 0 1 0; -#X connect 4 0 3 0; -#X connect 5 0 3 0; diff --git a/doc/tutorials/visual/04.basic_2d_objects.pd b/doc/tutorials/visual/04.basic_2d_objects.pd index 1f05f70c..dc6d6da9 100644 --- a/doc/tutorials/visual/04.basic_2d_objects.pd +++ b/doc/tutorials/visual/04.basic_2d_objects.pd @@ -1,12 +1,9 @@ -#N canvas 548 149 496 385 10; +#N canvas 20 42 632 472 10; #X obj 8 10 cnv 15 400 40 empty empty basic_2d_objects 20 12 0 24 -228992 -66577 0; #X obj 168 196 gemhead; #X obj 167 168 tgl 15 1 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 ; -#X obj 29 120 gemwin; -#X msg 28 63 create \, 1; -#X msg 42 90 destroy; #X obj 168 224 square; #X obj 28 196 gemhead; #X obj 27 168 tgl 15 1 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 @@ -21,13 +18,33 @@ #X obj 229 168 tgl 15 1 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 ; #X obj 230 224 rectangle; -#X connect 1 0 6 0; +#X obj 465 16 gemwin_control; +#X obj 466 60 import Gem; +#X obj 306 196 gemhead; +#X obj 305 168 tgl 15 1 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 +; +#X obj 306 224 colorSquare; +#X obj 396 196 gemhead; +#X obj 395 168 tgl 15 1 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 +; +#X obj 396 224 curve 5; +#X obj 466 196 gemhead; +#X obj 465 168 tgl 15 1 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 +; +#X obj 466 224 text2d; +#X text 17 430 If you click and drag in the gemwin \, you can change +your view perspective \, and see that these objects are only 2D.; +#X connect 1 0 3 0; #X connect 2 0 1 0; -#X connect 4 0 3 0; -#X connect 5 0 3 0; -#X connect 7 0 11 0; -#X connect 8 0 7 0; -#X connect 9 0 12 0; -#X connect 10 0 9 0; -#X connect 14 0 16 0; -#X connect 15 0 14 0; +#X connect 4 0 8 0; +#X connect 5 0 4 0; +#X connect 6 0 9 0; +#X connect 7 0 6 0; +#X connect 11 0 13 0; +#X connect 12 0 11 0; +#X connect 16 0 18 0; +#X connect 17 0 16 0; +#X connect 19 0 21 0; +#X connect 20 0 19 0; +#X connect 22 0 24 0; +#X connect 23 0 22 0; diff --git a/doc/tutorials/visual/05.lighting.pd b/doc/tutorials/visual/05.lighting.pd index 73ac26ba..8d704aef 100644 --- a/doc/tutorials/visual/05.lighting.pd +++ b/doc/tutorials/visual/05.lighting.pd @@ -1,4 +1,4 @@ -#N canvas 362 246 632 452 10; +#N canvas 10 40 620 460 10; #X obj 8 10 cnv 15 400 40 empty empty lighting 20 12 0 24 -228992 -66577 0; #X obj 465 16 gemwin_control; diff --git a/doc/tutorials/visual/06.basic_3d_objects.pd b/doc/tutorials/visual/06.basic_3d_objects.pd index 9a1ba109..3ce2e586 100644 --- a/doc/tutorials/visual/06.basic_3d_objects.pd +++ b/doc/tutorials/visual/06.basic_3d_objects.pd @@ -1,4 +1,4 @@ -#N canvas 726 204 492 381 10; +#N canvas 283 71 624 464 10; #X obj 8 10 cnv 15 400 40 empty empty basic_3D_objects 20 12 0 24 -228992 -66577 0; #X obj 29 120 gemwin; @@ -28,6 +28,12 @@ #X obj 340 163 tgl 15 1 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 ; #X obj 341 219 torus; +#X obj 465 16 gemwin_control; +#X obj 466 60 import Gem; +#X obj 401 191 gemhead; +#X obj 400 163 tgl 15 1 empty empty empty 0 -6 0 8 -24198 -1 -1 0 1 +; +#X obj 401 219 cuboid; #X connect 2 0 1 0; #X connect 3 0 1 0; #X connect 4 0 6 0; @@ -42,3 +48,5 @@ #X connect 16 0 15 0; #X connect 19 0 21 0; #X connect 20 0 19 0; +#X connect 24 0 26 0; +#X connect 25 0 24 0; diff --git a/doc/tutorials/visual/ch_gemwin.pd b/doc/tutorials/visual/ch_gemwin.pd new file mode 100644 index 00000000..1ebbb426 --- /dev/null +++ b/doc/tutorials/visual/ch_gemwin.pd @@ -0,0 +1,170 @@ +#N canvas 0 0 796 617 10;
+#X obj 285 171 f;
+#X obj 206 152 spigot;
+#X obj 267 143 sel 0 1;
+#X obj 237 124 t f f;
+#X obj 206 200 -;
+#X obj 206 249 +;
+#X obj 267 213 f;
+#X obj 159 168 f;
+#X obj 80 149 spigot;
+#X obj 141 140 sel 0 1;
+#X obj 111 121 t f f;
+#X obj 80 200 -;
+#X obj 80 249 +;
+#X obj 141 210 f;
+#X obj 406 162 f;
+#X obj 327 146 spigot;
+#X obj 388 137 sel 0 1;
+#X obj 358 118 t f f;
+#X obj 327 197 -;
+#X obj 388 207 f;
+#X obj 80 465 * 4;
+#X obj 135 467 * 4;
+#X obj 156 308 t b f;
+#X obj 94 372 cos;
+#X obj 106 430 * 1;
+#X obj 80 430 * 1;
+#X obj 132 373 sin;
+#X obj 107 466 * 4;
+#X obj 94 394 t b f;
+#X obj 94 348 / 200;
+#X obj 80 491 pack f f f;
+#X obj 458 49 gemmouse;
+#X obj 515 135 t b f;
+#X obj 515 164 |;
+#X obj 487 240 gemhead;
+#X obj 491 193 loadbang;
+#X msg 487 215 0;
+#X obj 487 315 curve 2;
+#X obj 487 266 color 1 0 0;
+#X obj 571 240 gemhead;
+#X obj 571 315 curve 2;
+#X obj 651 242 gemhead;
+#X obj 651 317 curve 2;
+#X msg 524 289 3 0 0;
+#X msg 608 289 0 3 0;
+#X msg 688 291 0 0 3;
+#X msg 80 516 view \$1 \$2 \$3 0 0 0 0 1 0;
+#X obj 571 266 color 0 1 0;
+#X obj 651 268 color 0 0 1;
+#X obj 80 308 sin;
+#X obj 106 309 cos;
+#X obj 327 246 + 200;
+#X obj 157 282 / 50;
+#X obj 80 283 / -200;
+#X obj 18 12 inlet;
+#X obj 20 579 outlet;
+#X obj 21 551 gemwin \$1;
+#X obj 60 14 inlet;
+#X obj 215 19 inlet;
+#X obj 132 15 inlet;
+#X obj 213 44 * 5;
+#X obj 59 82 / 127;
+#X obj 60 61 * 400;
+#X obj 131 82 / 127;
+#X obj 131 58 * 200;
+#X obj 131 36 * -3.14;
+#X obj 60 37 * 3.14;
+#X connect 0 0 4 1;
+#X connect 1 0 4 0;
+#X connect 2 0 6 0;
+#X connect 2 1 0 0;
+#X connect 3 0 1 1;
+#X connect 3 1 2 0;
+#X connect 4 0 5 0;
+#X connect 5 0 6 1;
+#X connect 5 0 29 0;
+#X connect 6 0 5 1;
+#X connect 7 0 11 1;
+#X connect 8 0 11 0;
+#X connect 9 0 13 0;
+#X connect 9 1 7 0;
+#X connect 10 0 8 1;
+#X connect 10 1 9 0;
+#X connect 11 0 12 0;
+#X connect 12 0 13 1;
+#X connect 12 0 53 0;
+#X connect 13 0 12 1;
+#X connect 14 0 18 1;
+#X connect 15 0 18 0;
+#X connect 16 0 19 0;
+#X connect 16 1 14 0;
+#X connect 17 0 15 1;
+#X connect 17 1 16 0;
+#X connect 18 0 51 0;
+#X connect 19 0 51 1;
+#X connect 20 0 30 0;
+#X connect 21 0 30 2;
+#X connect 22 0 21 0;
+#X connect 22 0 20 0;
+#X connect 22 0 27 0;
+#X connect 22 1 21 1;
+#X connect 22 1 20 1;
+#X connect 22 1 27 1;
+#X connect 23 0 28 0;
+#X connect 24 0 21 0;
+#X connect 25 0 20 0;
+#X connect 26 0 27 0;
+#X connect 27 0 30 1;
+#X connect 28 0 24 0;
+#X connect 28 0 25 0;
+#X connect 28 1 24 1;
+#X connect 28 1 25 1;
+#X connect 29 0 23 0;
+#X connect 29 0 26 0;
+#X connect 30 0 46 0;
+#X connect 31 0 8 0;
+#X connect 31 0 7 1;
+#X connect 31 1 1 0;
+#X connect 31 1 0 1;
+#X connect 31 1 14 1;
+#X connect 31 1 15 0;
+#X connect 31 2 3 0;
+#X connect 31 2 10 0;
+#X connect 31 2 33 0;
+#X connect 31 3 17 0;
+#X connect 31 3 32 0;
+#X connect 32 0 33 0;
+#X connect 32 1 33 1;
+#X connect 33 0 34 0;
+#X connect 33 0 39 0;
+#X connect 33 0 41 0;
+#X connect 34 0 38 0;
+#X connect 35 0 36 0;
+#X connect 35 0 43 0;
+#X connect 35 0 44 0;
+#X connect 35 0 45 0;
+#X connect 35 0 53 0;
+#X connect 35 0 51 0;
+#X connect 36 0 34 0;
+#X connect 36 0 39 0;
+#X connect 36 0 41 0;
+#X connect 38 0 37 0;
+#X connect 39 0 47 0;
+#X connect 41 0 48 0;
+#X connect 43 0 37 2;
+#X connect 44 0 40 2;
+#X connect 45 0 42 2;
+#X connect 46 0 56 0;
+#X connect 47 0 40 0;
+#X connect 48 0 42 0;
+#X connect 49 0 25 0;
+#X connect 50 0 24 0;
+#X connect 51 0 19 1;
+#X connect 51 0 52 0;
+#X connect 52 0 22 0;
+#X connect 53 0 49 0;
+#X connect 53 0 50 0;
+#X connect 54 0 56 0;
+#X connect 56 0 55 0;
+#X connect 57 0 66 0;
+#X connect 58 0 60 0;
+#X connect 59 0 65 0;
+#X connect 60 0 52 0;
+#X connect 61 0 53 0;
+#X connect 62 0 61 0;
+#X connect 63 0 29 0;
+#X connect 64 0 63 0;
+#X connect 65 0 64 0;
+#X connect 66 0 62 0;
diff --git a/doc/tutorials/visual/gemwin_control.pd b/doc/tutorials/visual/gemwin_control.pd index 54274236..46e591d7 100644 --- a/doc/tutorials/visual/gemwin_control.pd +++ b/doc/tutorials/visual/gemwin_control.pd @@ -1,9 +1,9 @@ -#N canvas 224 95 713 582 10; +#N canvas 224 95 721 590 10; #X obj 18 17 inlet; #X text 66 16 options pass-thru; #X obj 16 528 outlet; #X text 72 528 pass-thru; -#X obj 17 503 gemwin \$1; +#X obj 17 503 ch_gemwin \$1; #X obj 386 467 send GLOBAL_GEMWIN_CONTROL; #X obj 101 103 cnv 15 128 22 empty GLOBAL_GEMWIN_CONTROL_CANVAS gemwin 3 5 0 14 -233017 -33289 0; @@ -12,7 +12,7 @@ render -6 21 1 9 -233017 -33289 -33289 0 1; #X obj 159 102 tgl 17 0 \$0-window_toggle THIS_IS_TO_MAKE_THE_INLET_DISAPPEAR window -6 21 1 9 -233017 -33289 -33289 0 1; #X obj 155 49 receive GLOBAL_GEMWIN_CONTROL; -#N canvas 77 396 762 359 window 0; +#N canvas 77 396 766 363 window 0; #X obj 56 126 select 0; #X obj 107 146 bang; #X msg 107 166 reset \, create; @@ -60,7 +60,7 @@ window -6 21 1 9 -233017 -33289 -33289 0 1; #X connect 22 0 18 0; #X restore 76 369 pd window logic; #X obj 41 153 receive \$0-window_toggle; -#N canvas 472 123 674 370 render 0; +#N canvas 472 123 678 374 render 0; #X obj 253 118 select 0 1; #X msg 286 149 76; #X msg 253 149 10; @@ -81,7 +81,7 @@ window -6 21 1 9 -233017 -33289 -33289 0 1; #X obj 161 58 trigger float bang; #X msg 223 307 \; GLOBAL_GEMWIN_CONTROL_CANVAS color \$1 12 12; #X obj 469 128 change; -#X obj 381 128 iemabs/once; +#X obj 381 128 iemlib/once; #X connect 0 0 2 0; #X connect 0 1 1 0; #X connect 1 0 4 0; |