Update of /cvsroot/pure-data/doc/tutorials/visual In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18014
Modified Files: 01.gemwin.pd 02.gemwin_as_reference.pd 03.render_chains.pd 04.basic_2d_objects.pd 05.lighting.pd 06.basic_3d_objects.pd gemwin_control.pd Added Files: ch_gemwin.pd Log Message: added mousing to gemwin_control using Cyrille's ch_gemwin; cleaned up formatting and added bits here and there
Index: 01.gemwin.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/visual/01.gemwin.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 01.gemwin.pd 7 Apr 2006 05:22:42 -0000 1.1 --- 01.gemwin.pd 24 Apr 2006 12:32:01 -0000 1.2 *************** *** 1,3 **** ! #N canvas 548 149 480 369 10; #X obj 196 258 gemwin; #X obj 8 10 cnv 15 400 40 empty empty gemwin 20 12 0 24 -228992 -66577 --- 1,3 ---- ! #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
Index: 03.render_chains.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/visual/03.render_chains.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 03.render_chains.pd 7 Apr 2006 05:22:42 -0000 1.1 --- 03.render_chains.pd 24 Apr 2006 12:32:01 -0000 1.2 *************** *** 1,20 **** ! #N canvas 548 149 488 377 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 1; ! #X obj 48 274 gemwin; ! #X msg 47 217 create , 1; ! #X msg 61 244 destroy; ! #X obj 297 300 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 it will not be generated. Render chains generally end with an shape object (sometimes called a "geo").; ! #X connect 1 0 6 0; #X connect 2 0 1 0; - #X connect 4 0 3 0; - #X connect 5 0 3 0; --- 1,17 ---- ! #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 208 217 gemhead; ! #X obj 209 172 tgl 15 1 empty empty empty 0 -6 0 8 -262144 -1 -1 1 1; ! #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 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 obj 465 16 gemwin_control; ! #X obj 466 60 import Gem; ! #X connect 1 0 3 0; #X connect 2 0 1 0;
Index: 05.lighting.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/visual/05.lighting.pd,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** 05.lighting.pd 7 Apr 2006 06:01:54 -0000 1.2 --- 05.lighting.pd 24 Apr 2006 12:32:01 -0000 1.3 *************** *** 1,3 **** ! #N canvas 362 246 632 452 10; #X obj 8 10 cnv 15 400 40 empty empty lighting 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #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;
--- NEW FILE: ch_gemwin.pd --- #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;
Index: gemwin_control.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/visual/gemwin_control.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** gemwin_control.pd 7 Apr 2006 06:01:54 -0000 1.1 --- gemwin_control.pd 24 Apr 2006 12:32:01 -0000 1.2 *************** *** 1,8 **** ! #N canvas 224 95 713 582 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 386 467 send GLOBAL_GEMWIN_CONTROL; #X obj 101 103 cnv 15 128 22 empty GLOBAL_GEMWIN_CONTROL_CANVAS gemwin --- 1,8 ---- ! #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 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 *************** *** 13,17 **** 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; #X obj 56 126 select 0; #X obj 107 146 bang; --- 13,17 ---- window -6 21 1 9 -233017 -33289 -33289 0 1; #X obj 155 49 receive GLOBAL_GEMWIN_CONTROL; ! #N canvas 77 396 766 363 window 0; #X obj 56 126 select 0; #X obj 107 146 bang; *************** *** 61,65 **** #X restore 76 369 pd window logic; #X obj 41 153 receive $0-window_toggle; ! #N canvas 472 123 674 370 render 0; #X obj 253 118 select 0 1; #X msg 286 149 76; --- 61,65 ---- #X restore 76 369 pd window logic; #X obj 41 153 receive $0-window_toggle; ! #N canvas 472 123 678 374 render 0; #X obj 253 118 select 0 1; #X msg 286 149 76; *************** *** 82,86 **** #X msg 223 307 ; GLOBAL_GEMWIN_CONTROL_CANVAS color $1 12 12; #X obj 469 128 change; ! #X obj 381 128 iemabs/once; #X connect 0 0 2 0; #X connect 0 1 1 0; --- 82,86 ---- #X msg 223 307 ; GLOBAL_GEMWIN_CONTROL_CANVAS color $1 12 12; #X obj 469 128 change; ! #X obj 381 128 iemlib/once; #X connect 0 0 2 0; #X connect 0 1 1 0;
Index: 02.gemwin_as_reference.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/visual/02.gemwin_as_reference.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 02.gemwin_as_reference.pd 7 Apr 2006 06:01:54 -0000 1.1 --- 02.gemwin_as_reference.pd 24 Apr 2006 12:32:01 -0000 1.2 *************** *** 1,3 **** ! #N canvas 548 149 480 369 10; #X obj 64 322 gemwin; #X obj 8 10 cnv 15 400 40 empty empty gemwin_as_pointer 20 12 0 24 --- 1,3 ---- ! #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
Index: 04.basic_2d_objects.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/visual/04.basic_2d_objects.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 04.basic_2d_objects.pd 7 Apr 2006 05:22:42 -0000 1.1 --- 04.basic_2d_objects.pd 24 Apr 2006 12:32:01 -0000 1.2 *************** *** 1,3 **** ! #N canvas 548 149 496 385 10; #X obj 8 10 cnv 15 400 40 empty empty basic_2d_objects 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #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; *************** *** 5,11 **** #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; --- 5,8 ---- *************** *** 22,33 **** ; #X obj 230 224 rectangle; ! #X connect 1 0 6 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; --- 19,50 ---- ; #X obj 230 224 rectangle; ! #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 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;
Index: 06.basic_3d_objects.pd =================================================================== RCS file: /cvsroot/pure-data/doc/tutorials/visual/06.basic_3d_objects.pd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** 06.basic_3d_objects.pd 7 Apr 2006 05:22:42 -0000 1.1 --- 06.basic_3d_objects.pd 24 Apr 2006 12:32:01 -0000 1.2 *************** *** 1,3 **** ! #N canvas 726 204 492 381 10; #X obj 8 10 cnv 15 400 40 empty empty basic_3D_objects 20 12 0 24 -228992 -66577 0; --- 1,3 ---- ! #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; *************** *** 29,32 **** --- 29,38 ---- ; #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; *************** *** 43,44 **** --- 49,52 ---- #X connect 19 0 21 0; #X connect 20 0 19 0; + #X connect 24 0 26 0; + #X connect 25 0 24 0;