4corners_demo-help.pd 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139
  1. #N canvas 747 291 1056 650 10;
  2. #X obj 413 45 cnv 15 380 400 empty empty empty 20 12 0 14 -204786 -66577
  3. 0;
  4. #X obj 562 59 gemhead;
  5. #X obj 562 111 pix_image;
  6. #X obj 562 133 pix_texture;
  7. #X obj 614 59 loadbang;
  8. #X obj 432 59 gemhead;
  9. #X obj 8 8 cnv 15 785 32 empty empty EXTENDED_VIEW_2x2_easy_projection_module
  10. 20 12 0 14 -233017 -66577 0;
  11. #X obj 8 452 cnv 15 400 180 empty empty description 5 8 0 12 -233017
  12. -66577 0;
  13. #X msg 614 81 open ../media/cam2.jpg;
  14. #X obj 422 325 ev_gemwin;
  15. #X obj 413 520 cnv 15 380 60 empty empty inlets/outlets 5 8 0 12 -233017
  16. -66577 0;
  17. #X text 417 556 Inlet 2: texture ID;
  18. #X text 417 540 Inlet 1: gemlist;
  19. #X obj 413 452 cnv 15 380 60 empty empty creation_arguments: 3 8 0
  20. 12 -191407 -1 0;
  21. #X text 418 471 1st: module ID \, needs to be unique \; 2nd: storage
  22. domain \, see [ev_storage-help] for details;
  23. #X text 587 540 Outlet 1: gemlist;
  24. #X text 419 302 [ev_gemwin] is needed for cursor interaction support.
  25. ;
  26. #X text 430 240 [ev_declare] loads all the needed pathes.;
  27. #X obj 413 587 cnv 15 380 60 empty empty parameter_list 5 8 0 12 -233017
  28. -66577 0;
  29. #N canvas 0 50 378 556 parameter_list 0;
  30. #X obj -42 3 cnv 15 360 540 empty empty PARAMETER_LIST 20 8 0 14 -233017
  31. -66577 0;
  32. #X text -35 29 /ev/pro/<id>/vertex/top/left/x ---- top left x \; /ev/pro/<id>/vertex/top/left/y
  33. --- top left y \; /ev/pro/<id>/vertex/top/right/x --- top right x \;
  34. /ev/pro/<id>/vertex/top/right/y --- top right y \; /ev/pro/<id>/vertex/bottom/left/x
  35. --- bottom left x \; /ev/pro/<id>/vertex/bottom/left/y --- bottom left
  36. y \; /ev/pro/<id>/vertex/bottom/right/x --- bottom right x \; /ev/pro/<id>/vertex/bottom/right/y
  37. --- bottom right y \; /ev/pro/<id>/texture/top/left/x --- top left
  38. x \; /ev/pro/<id>/texture/top/left/y --- top left y \; /ev/pro/<id>/texture/top/right/x
  39. --- top right x \; /ev/pro/<id>/texture/top/right/y --- top right y
  40. \; /ev/pro/<id>/texture/bottom/left/x --- bottom left x \; /ev/pro/<id>/texture/bottom/left/y
  41. --- bottom left y \; /ev/pro/<id>/texture/bottom/right/x --- bottom
  42. right x \; /ev/pro/<id>/texture/bottom/right/y --- bottom right y \;
  43. /ev/pro/<id>/state --- turn module on (1) / off (0) \; /ev/pro/<id>/texture/weight/x
  44. --- distance weight x \; /ev/pro/<id>/texture/weight/y --- distance
  45. weight y \; /ev/pro/<id>/set_alpha --- set alpha to value "1" \; /ev/pro/<id>/grid/state
  46. --- turn on(1)/off(0) grid \; /ev/pro/<id>/grid/res/x --- grid horizontal
  47. resolution \; /ev/pro/<id>/grid/res/y --- vertical grid resolution
  48. \; /ev/pro/<id>/grid/width --- grid line width \; /ev/pro/<id>/grid/color/h
  49. --- grid color hue \; /ev/pro/<id>/grid/color/s --- grid color saturation
  50. \; /ev/pro/<id>/grid/color/v --- grid color value \; /ev/pro/<id>/grid/color/a
  51. --- grid color alpha (opacity) \; /ev/pro/<id>/grid/tex/state --- grid
  52. texture state \; /ev/pro/<id>/grid/tex/open --- grid texture open dialog
  53. \; /ev/pro/<id>/grid/tex/load --- reload grid texture \; /ev/pro/<id>/grid/tex/flip/horizontal
  54. --- flip grid tex \; /ev/pro/<id>/grid/tex/flip/vertical --- flip grid
  55. tex \; /ev/pro/<id>/cursor/mode --- mouse interaction mode \; \;;
  56. #X restore 478 617 pd parameter_list;
  57. #X text 606 413 click "create" to start;
  58. #X obj 432 263 ../ev-main/ev_declare;
  59. #X text 12 469 This abstraction is an alternative to the ev_pro_22
  60. abstraction \, especially for use on older graphic chips. It has the
  61. same functionality to distort a vertex in 4 cornerpins. Input is textured
  62. on a [curve3d] object \, where all 4 cornerpins can be translated independently.
  63. \; IMPORTANT: the vertex parameters have the same \, ID-related \,
  64. send&receive-parameters. In the case you mix easymap and pro_22 or
  65. pro_33 abstraction in one patch \, make sure they all have different
  66. IDs. \; This is useful \, if you realize problems with the shaders
  67. \, so that you can quickly replace the projection modules with the
  68. easymap-modules and can still load the same presets.;
  69. #X text 557 9 (c)2011 Peter Venus & Marian Weger \; /part of EXTENDED
  70. VIEW toolkit/ gpl v3;
  71. #X obj 8 45 cnv 15 400 400 empty empty gui_controls 5 8 0 12 -204800
  72. -66577 0;
  73. #X text 11 65 on/off: toggles projection plane state;
  74. #X text 11 77 settings: opens settings window;
  75. #X text 12 127 vertex position parameters: control the x/y position
  76. of the;
  77. #X text 11 163 grid_texture:;
  78. #X text 11 166 _____________;
  79. #X text 11 183 state: turn on grid to replace the texture \; open_new_file:
  80. load your own grid image \; reload: reload the given image file \;
  81. flip: flip grid horizontal(<->) or vertical(^v).;
  82. #X text 11 243 cursor_interaction:;
  83. #X text 10 246 ___________________;
  84. #X text 11 264 cursor_mode:;
  85. #X text 42 281 vertex_mouseover: show vertex control points if hovered
  86. \; vertex_permanent: show vertex control points permanently \; texture_mouseover:
  87. show texture control points if hovered \; texture_permanent: show texture
  88. control points permanently \;;
  89. #X text 11 343 rendered_grid:;
  90. #X text 10 346 ______________;
  91. #X text 11 364 state: turn grid on/off;
  92. #X text 11 377 Resolution:;
  93. #X text 84 377 set vertical (y) and horizontal (x) grid resolution.
  94. ;
  95. #X text 11 391 line_width: set thickness of the grid lines;
  96. #X text 11 404 COLOR: set the color of the grid;
  97. #X text 53 417 (H = hue \, S = saturation \, V = Value \, A = alpha)
  98. ;
  99. #X text 180 138 projection primitives 4 corners;
  100. #X text 11 103 settings window;
  101. #X text 10 112 ===============;
  102. #X obj 413 654 cnv 15 380 140 empty empty additional_information 5
  103. 8 0 12 -233017 -66577 0;
  104. #X text 427 672 Can be controlled via OSC \, which uses the same syntax
  105. as the EV internal send/recieve message system see paramter-list below
  106. for additional information about the specific parameter-names.;
  107. #X text 425 737 This Object is connected to the Data Storage System.
  108. All the vertex and texture coordinates and the softedge settings can
  109. be morphed between scenes individually.;
  110. #X obj 797 65 gemhead;
  111. #X obj 796 199 pix_texture;
  112. #X obj 796 118 pix_film;
  113. #X obj 877 77 openpanel;
  114. #X msg 877 99 open \$1;
  115. #X obj 878 58 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  116. -1;
  117. #X obj 694 132 openpanel;
  118. #X obj 695 113 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  119. -1 -1;
  120. #X msg 694 154 open \$1 \, auto 1;
  121. #X msg 848 137 0;
  122. #X obj 432 157 ev_pro_22 \$0;
  123. #X connect 1 0 2 0;
  124. #X connect 2 0 3 0;
  125. #X connect 4 0 8 0;
  126. #X connect 5 0 59 0;
  127. #X connect 8 0 2 0;
  128. #X connect 49 0 51 0;
  129. #X connect 50 1 59 1;
  130. #X connect 51 0 50 0;
  131. #X connect 51 2 58 0;
  132. #X connect 52 0 53 0;
  133. #X connect 54 0 52 0;
  134. #X connect 55 0 57 0;
  135. #X connect 56 0 55 0;
  136. #X connect 57 0 51 0;
  137. #X connect 58 0 51 1;
  138. #X coords 0 650 1 649 85 60 0;