ev_pro_22-help.pd 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217
  1. #N canvas 41 187 1185 756 10;
  2. #X obj 416 609 cnv 15 380 60 empty empty inlets/outlets 5 8 0 12 -233017
  3. -66577 0;
  4. #X obj 9 10 cnv 15 785 32 empty empty EXTENDED_VIEW_2x2_projection_module
  5. 20 8 0 14 -233017 -66577 0;
  6. #X text 421 643 Inlet 2: texture ID;
  7. #X text 421 627 Inlet 1: gemlist;
  8. #X obj 416 538 cnv 15 380 60 empty empty creation_arguments: 3 8 0
  9. 12 -191407 -1 0;
  10. #X text 421 557 1st: module ID \, needs to be unique \; 2nd: storage
  11. domain \, see [ev_storage-help] for details;
  12. #X obj 414 48 cnv 15 380 475 empty empty empty 20 12 0 14 -204786 -66577
  13. 0;
  14. #X obj 425 61 gemhead;
  15. #X obj 424 407 ev_gemwin;
  16. #X text 429 385 [ev_gemwin] module is needed for mouse interaction
  17. support;
  18. #X text 429 318 [ev_declare] loads all the needed pathes.;
  19. #X obj 416 679 cnv 15 380 60 empty empty parameter_list 5 8 0 12 -233017
  20. -66577 0;
  21. #N canvas 0 50 378 556 parameter_list 0;
  22. #X obj -42 3 cnv 15 360 540 empty empty PARAMETER_LIST 20 8 0 14 -233017
  23. -66577 0;
  24. #X text -35 29 /ev/pro/<id>/vertex/top/left/x ---- top left x \; /ev/pro/<id>/vertex/top/left/y
  25. --- top left y \; /ev/pro/<id>/vertex/top/right/x --- top right x \;
  26. /ev/pro/<id>/vertex/top/right/y --- top right y \; /ev/pro/<id>/vertex/bottom/left/x
  27. --- bottom left x \; /ev/pro/<id>/vertex/bottom/left/y --- bottom left
  28. y \; /ev/pro/<id>/vertex/bottom/right/x --- bottom right x \; /ev/pro/<id>/vertex/bottom/right/y
  29. --- bottom right y \; /ev/pro/<id>/texture/top/left/x --- top left
  30. x \; /ev/pro/<id>/texture/top/left/y --- top left y \; /ev/pro/<id>/texture/top/right/x
  31. --- top right x \; /ev/pro/<id>/texture/top/right/y --- top right y
  32. \; /ev/pro/<id>/texture/bottom/left/x --- bottom left x \; /ev/pro/<id>/texture/bottom/left/y
  33. --- bottom left y \; /ev/pro/<id>/texture/bottom/right/x --- bottom
  34. right x \; /ev/pro/<id>/texture/bottom/right/y --- bottom right y \;
  35. /ev/pro/<id>/shade/top --- top softedge amount \; /ev/pro/<id>/shade/right
  36. --- right softedge amount \; /ev/pro/<id>/shade/bottom --- bottom softedge
  37. amount \; /ev/pro/<id>/shade/left --- left softedge amount \; /ev/pro/<id>/state
  38. --- turn module on (1) / off (0) \; /ev/pro/<id>/texture/weight/x ---
  39. distance weight x \; /ev/pro/<id>/texture/weight/y --- distance weight
  40. y \; /ev/pro/<id>/set_alpha --- set alpha to value "1" \; /ev/pro/<id>/grid/state
  41. --- turn on(1)/off(0) grid \; /ev/pro/<id>/grid/res/x --- grid horizontal
  42. resolution \; /ev/pro/<id>/grid/res/y --- vertical grid resolution
  43. \; /ev/pro/<id>/grid/width --- grid line width \; /ev/pro/<id>/grid/color/h
  44. --- grid color hue \; /ev/pro/<id>/grid/color/s --- grid color saturation
  45. \; /ev/pro/<id>/grid/color/v --- grid color value \; /ev/pro/<id>/grid/color/a
  46. --- grid color alpha (opacity) \; /ev/pro/<id>/grid/tex/state --- grid
  47. texture state \; /ev/pro/<id>/grid/tex/open --- grid texture open dialog
  48. \; /ev/pro/<id>/grid/tex/load --- reload grid texture \; /ev/pro/<id>/grid/tex/flip/horizontal
  49. --- flip grid tex \; /ev/pro/<id>/grid/tex/flip/vertical --- flip grid
  50. tex \; /ev/pro/<id>/cursor/mode --- mouse interaction mode \; \;;
  51. #X restore 481 709 pd parameter_list;
  52. #X text 632 498 click "create" to start;
  53. #X obj 446 347 ../ev-main/ev_declare;
  54. #X obj 9 48 cnv 15 400 480 empty empty gui_controls 5 8 0 12 -204800
  55. -66577 0;
  56. #X text 12 68 on/off: toggles projection plane state;
  57. #X text 12 80 settings: opens settings window;
  58. #X text 12 106 settings window;
  59. #X text 13 130 vertex position parameters: control the x/y position
  60. of the;
  61. #X text 13 152 texture position parameters: control the x/y position
  62. of the;
  63. #X text 183 163 texture corners \, can be outside the;
  64. #X text 184 174 visible area;
  65. #X text 12 186 shade size: set the size of the softedge on the edges
  66. of the visible area(vertex);
  67. #X text 12 256 grid_texture:;
  68. #X text 12 259 _____________;
  69. #X text 12 276 state: turn on grid to replace the texture \; open_new_file:
  70. load your own grid image \; reload: reload the given image file \;
  71. flip: flip grid horizontal(<->) or vertical(^v).;
  72. #X text 12 336 cursor_interaction:;
  73. #X text 11 339 ___________________;
  74. #X text 12 357 cursor_mode:;
  75. #X text 43 374 vertex_mouseover: show vertex control points if hovered
  76. \; vertex_permanent: show vertex control points permanently \; texture_mouseover:
  77. show texture control points if hovered \; texture_permanent: show texture
  78. control points permanently \;;
  79. #X text 12 222 set_alpha_to_'1': If selected \, alpha channel is set
  80. to 1 If not selected \, alpha channel remains as it gets in.;
  81. #X text 12 436 rendered_grid:;
  82. #X text 11 439 ______________;
  83. #X text 12 457 state: turn grid on/off;
  84. #X text 12 470 Resolution:;
  85. #X text 85 470 set vertical (y) and horizontal (x) grid resolution.
  86. ;
  87. #X text 12 484 line_width: set thickness of the grid lines;
  88. #X text 12 497 COLOR: set the color of the grid;
  89. #X text 54 510 (H = hue \, S = saturation \, V = Value \, A = alpha)
  90. ;
  91. #X obj 9 534 cnv 15 400 450 empty empty description 5 8 0 12 -233017
  92. -66577 0;
  93. #X obj 21 843 cnv 15 150 120 empty empty texture 10 10 0 10 -261234
  94. -66577 0;
  95. #X text 44 897 /;
  96. #X text 26 928 /;
  97. #X text 156 919 |;
  98. #X text 38 907 /;
  99. #X text 156 909 |;
  100. #X text 42 886 x/y---------------x/y;
  101. #X text 32 918 /;
  102. #X text 156 897 |;
  103. #X text 156 929 |;
  104. #X text 21 941 x/y------------------x/y;
  105. #X text 188 905 ==>;
  106. #X text 49 911 Texture positions;
  107. #X obj 231 843 cnv 15 150 120 empty empty gem_window 10 10 0 10 -191407
  108. -66577 0;
  109. #X text 346 884 /;
  110. #X text 322 926 /;
  111. #X text 241 926 |;
  112. #X text 340 894 /;
  113. #X text 241 918 |;
  114. #X text 242 896 |;
  115. #X text 241 906 | Vertex;
  116. #X text 181 141 projection primitives 4 corners;
  117. #X text 20 555 This abstraction aims on video mapping onto flat surfaces.
  118. It can map a specified part of a texture onto a square plane \, which
  119. can then be distorted by a matrix of 3x3=9 control points \; The source
  120. is specified by a texture id \, and can be a framebuffer or any other
  121. texture. By 4 independently settable corner points \, a polygonal part
  122. of this texture is specified \, which is then mapped completely onto
  123. a square. This square can then be positioned and distorted by four
  124. corner points \; It is also possible to blend the four sides with a
  125. soft edge \, what makes it possible to overlay multiple modules to
  126. form a bigger \, but still adjustable projection plane. This would
  127. be useful in multiple projector environment \, where the gem window
  128. spans over all projectors but aligning them hard-edged is not possible
  129. or a challenge \; By the settable texture positions \, it is possible
  130. to display just a portion of the complete content of a framebuffer.
  131. This is useful if you build a big projection area out of multiple [ev_pro_xx]
  132. abstractions \, which cut their individual part out of the same texture.
  133. ;
  134. #X text 334 906 /;
  135. #X text 329 915 /;
  136. #X text 242 874 x/y---------------x/y;
  137. #X text 241 936 x/y---------x/y;
  138. #X text 240 887 |;
  139. #X obj 416 751 cnv 15 380 140 empty empty additional_information 5
  140. 8 0 12 -233017 -66577 0;
  141. #X text 430 769 Can be controlled via OSC \, which uses the same syntax
  142. as the EV internal send/recieve message system see paramter-list below
  143. for additional information about the specific parameter-names.;
  144. #X text 428 834 This Object is connected to the Data Storage System.
  145. All the vertex and texture coordinates and the softedge settings can
  146. be morphed between scenes individually.;
  147. #X text 437 11 (c)2011 Cyrille Henry \, Peter Venus & Marian Weger
  148. \; /part of EXTENDED VIEW toolkit/ gpl v3;
  149. #X text 11 115 ===============;
  150. #X obj 806 66 gemhead;
  151. #X obj 806 168 pix_flip;
  152. #X obj 806 126 pix_film;
  153. #X obj 866 45 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  154. -1;
  155. #X obj 866 65 openpanel;
  156. #X msg 870 126 0;
  157. #X msg 865 90 open \$1 \, auto 1;
  158. #X obj 555 62 gemhead;
  159. #X obj 555 122 pix_image;
  160. #X obj 555 206 pix_texture;
  161. #X obj 611 62 loadbang;
  162. #X msg 640 92 open ../media/cam2.jpg;
  163. #X msg 640 122 none;
  164. #X msg 640 164 rectangle 1;
  165. #X obj 482 95 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  166. -1;
  167. #X obj 482 115 openpanel;
  168. #X msg 481 140 open \$1 \, auto 1;
  169. #X obj 555 164 pix_flip;
  170. #X obj 876 154 unpack 0 0 0;
  171. #X floatatom 866 177 5 0 0 3 length - -, f 5;
  172. #X floatatom 915 177 5 0 0 3 width - -, f 5;
  173. #X floatatom 965 177 5 0 0 3 height - -, f 5;
  174. #X obj 425 232 ev_pro_22 proj;
  175. #X msg 871 403 \; /ev/pro/proj/texture/top/right/x \$1 \; /ev/pro/proj/texture/bottom/right/x
  176. \$1;
  177. #X floatatom 1001 270 5 0 0 0 - - -, f 5;
  178. #X floatatom 955 233 5 0 0 0 - - -, f 5;
  179. #X msg 881 353 \; /ev/pro/proj/texture/top/right/y \$1 \; /ev/pro/proj/texture/top/left/y
  180. \$1;
  181. #X floatatom 908 267 5 0 0 0 - - -, f 5;
  182. #X floatatom 956 302 5 0 0 0 - - -, f 5;
  183. #X msg 841 454 \; /ev/pro/proj/texture/bottom/right/y \$1 \; /ev/pro/proj/texture/bottom/left/y
  184. \$1;
  185. #X msg 831 504 \; /ev/pro/proj/texture/top/left/x \$1 \; /ev/pro/proj/texture/bottom/left/x
  186. \$1;
  187. #X connect 7 0 96 0;
  188. #X connect 74 0 76 0;
  189. #X connect 75 0 83 0;
  190. #X connect 76 0 75 0;
  191. #X connect 76 1 92 0;
  192. #X connect 76 2 79 0;
  193. #X connect 77 0 78 0;
  194. #X connect 78 0 80 0;
  195. #X connect 79 0 76 1;
  196. #X connect 80 0 76 0;
  197. #X connect 81 0 82 0;
  198. #X connect 82 0 91 0;
  199. #X connect 83 1 96 1;
  200. #X connect 84 0 85 0;
  201. #X connect 84 0 86 0;
  202. #X connect 84 0 87 0;
  203. #X connect 85 0 82 0;
  204. #X connect 86 0 91 0;
  205. #X connect 87 0 83 0;
  206. #X connect 88 0 89 0;
  207. #X connect 89 0 90 0;
  208. #X connect 90 0 82 0;
  209. #X connect 92 0 93 0;
  210. #X connect 92 1 94 0;
  211. #X connect 92 2 95 0;
  212. #X connect 98 0 97 0;
  213. #X connect 99 0 100 0;
  214. #X connect 101 0 104 0;
  215. #X connect 102 0 103 0;
  216. #X coords 0 756 1 755 85 60 0;