ev_glsl_buf-help.pd 3.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. #N canvas 367 54 807 706 10;
  2. #X declare -path . -path .. -path data -path ../data -path ev-in -path
  3. ../ev-in -path ev-main -path ../ev-main -path ev-pano -path ../ev-pano
  4. -path ev-pro -path ../ev-pro -path libs/gil -path ../libs/gil -path
  5. libs/kollabs -path ../libs/kollabs -path media -path ../media -path
  6. ev-glsl -path ../ev-glsl -lib Gem;
  7. #X obj 372 157 cnv 15 380 400 empty empty media_input 20 12 0 14 -262130
  8. -66577 0;
  9. #X obj 6 -4 cnv 15 800 16 empty empty EXTENDED_VIEW_GLSL-BUFFER-MODULE
  10. 2 8 0 14 -99865 -262144 0;
  11. #X obj 426 311 loadbang;
  12. #X obj 404 312 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144
  13. -1 -1;
  14. #X obj 389 193 gemhead;
  15. #X obj 373 567 cnv 15 380 400 empty empty chained_GLSL_operations 20
  16. 12 0 14 -261682 -66577 0;
  17. #X obj 6 22 cnv 15 360 100 empty empty description 5 12 0 12 -233017
  18. -66577 0;
  19. #X obj 6 134 cnv 15 360 70 empty empty creation_arguments: 5 12 0 12
  20. -162280 -1 0;
  21. #X obj 6 207 cnv 15 360 70 empty empty inlets/outlets 5 12 0 12 -233017
  22. -66577 0;
  23. #X obj 373 30 cnv 15 380 120 empty empty Create_Gem_Window 20 12 0
  24. 14 -204786 -66577 0;
  25. #X obj 394 125 gemwin 20;
  26. #X msg 430 101 0 \, destroy;
  27. #X msg 394 75 dimen 800 600 \, color 0.5 0.5 0.5 \, create \, 1;
  28. #X text 437 57 CLICK HERE TO START:;
  29. #X obj 79 465 ../ev-main/ev_declare;
  30. #X text 81 444 load required pathes;
  31. #X obj 6 293 cnv 15 360 70 empty empty GUI_controls 5 12 0 12 -204800
  32. -66577 0;
  33. #X obj 417 640 bng 15 250 50 0 empty empty reload_shaders 17 7 0 10
  34. -262144 -1 -1;
  35. #X obj 389 390 pix_texture;
  36. #X obj 389 597 gemhead 51;
  37. #X msg 464 413 \$3 \$2;
  38. #X obj 464 435 /;
  39. #X obj 464 457 * 4;
  40. #X obj 389 482 rectangle 4 3;
  41. #X text 493 438 calculate aspect ratio;
  42. #X obj 537 597 r /ev/buf/inputbuffer/texture_id;
  43. #X text 9 39 This abstraction creates a framebuffer and applies a specified
  44. shader to it.;
  45. #X obj 373 974 cnv 15 380 200 empty empty draw_result_into_gem_window
  46. 20 12 0 14 -204786 -66577 0;
  47. #X obj 589 1024 gemhead;
  48. #X obj 589 1090 pix_texture;
  49. #X obj 589 1122 rectangle 4 4;
  50. #X text 391 503 draw content in right aspect ratio \; into square framebuffer
  51. ;
  52. #X text 61 388 (c)2013 Marian Weger \; part of EXTENDEDVIEW toolkit/
  53. gpl v3;
  54. #X obj 389 215 ev_buf inputbuffer dummy;
  55. #X text 9 156 1st: id;
  56. #X text 9 169 2nd: domain;
  57. #X text 9 182 3rd: shader name;
  58. #X obj 515 768 hsl 128 15 0 5 0 0 /ev/glsl/colorbuf/contrast /ev/glsl/colorbuf/contrast
  59. contrast -2 -8 0 10 -203904 -1 -1 2540 1;
  60. #X obj 515 798 hsl 128 15 0 5 0 0 /ev/glsl/colorbuf/saturation /ev/glsl/colorbuf/saturation
  61. saturation -2 -8 0 10 -203904 -1 -1 2540 1;
  62. #X obj 515 828 hsl 128 15 0 5 0 0 /ev/glsl/colorbuf/brightness /ev/glsl/colorbuf/brightness
  63. brightness -2 -8 0 10 -203904 -1 -1 2540 1;
  64. #X msg 404 339 open ../media/cam2.jpg;
  65. #X text 409 784 play around:;
  66. #X obj 389 368 pix_image;
  67. #X obj 389 669 ev_glsl_buf colorbuf dummy contrast;
  68. #X obj 389 862 ev_glsl_buf colorbuf2 dummy invert;
  69. #X connect 2 0 40 0;
  70. #X connect 3 0 40 0;
  71. #X connect 4 0 33 0;
  72. #X connect 11 0 10 0;
  73. #X connect 12 0 10 0;
  74. #X connect 17 0 43 0;
  75. #X connect 18 0 23 0;
  76. #X connect 18 1 20 0;
  77. #X connect 19 0 43 0;
  78. #X connect 20 0 21 0;
  79. #X connect 21 0 22 0;
  80. #X connect 22 0 23 2;
  81. #X connect 25 0 43 1;
  82. #X connect 28 0 29 0;
  83. #X connect 29 0 30 0;
  84. #X connect 33 0 42 0;
  85. #X connect 40 0 42 0;
  86. #X connect 42 0 18 0;
  87. #X connect 43 0 44 0;
  88. #X connect 43 1 44 1;
  89. #X connect 44 1 29 1;
  90. #X coords 0 706 1 705 85 60 0;