02_ev_example_panoramic.pd 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. #N canvas 378 22 817 748 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 51 200 cnv 15 300 350 empty empty OUTPUT_MODULES 20 12 0 14
  8. -204800 -66577 0;
  9. #X obj 10 5 cnv 15 300 130 empty empty FRAMEBUFFER 20 12 0 14 -262130
  10. -66577 0;
  11. #X obj 25 573 cnv 15 750 470 empty empty INPUT_MODULES 20 12 0 14 -204786
  12. -66577 0;
  13. #X obj 31 624 t a a;
  14. #X obj 10 -88 cnv 15 780 16 empty empty example:_PANORAMIC_VIDEO_STITCHING_&_PROJECTION
  15. 20 8 0 14 -233017 -66577 0;
  16. #X obj 10 -59 cnv 15 160 50 empty empty INITIALISATIONS 20 12 0 14
  17. -261234 -66577 0;
  18. #N canvas 407 127 535 539 init 1;
  19. #X obj 56 92 loadbang;
  20. #X obj 44 -23 cnv 15 400 100 empty empty IMPORTANT 20 12 0 14 -261234
  21. -66577 0;
  22. #X text 49 -3 Such a declare object should always be in the main patch
  23. of your project \, to set the pathes to the abstractions.;
  24. #X text 159 160 load the preset file on startup:;
  25. #X obj 56 134 t b b;
  26. #X obj 83 158 del 1000;
  27. #X obj 56 221 del 3000;
  28. #X text 127 93 The DATA STORAGE SYSTEM will be explained in a later
  29. example.;
  30. #X obj 158 43 ev-main/ev_declare;
  31. #X text 177 213 (pathes relative to "./libs/kollabs");
  32. #X obj 34 94 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1
  33. -1;
  34. #X text 66 262 Recall scene '0' from the loaded preset file;
  35. #X msg 83 180 \; /ds/0/loadfile ../../data/ev_example_panoramic_preset.txt
  36. ;
  37. #X msg 56 285 \; /ds/0/scene 0;
  38. #X connect 0 0 4 0;
  39. #X connect 4 0 6 0;
  40. #X connect 4 1 5 0;
  41. #X connect 5 0 12 0;
  42. #X connect 6 0 13 0;
  43. #X connect 10 0 4 0;
  44. #X restore 106 -33 pd init;
  45. #X text 180 -64 This example uses one panorama image \, consisting
  46. of four photographs \, and projects it on an immersive screen made
  47. of three planar elements.;
  48. #X text 27 -35 look inside:;
  49. #X text 96 597 Use the [trigger anything ...] object to specify the
  50. rendering order (from right to left). Here \, the grid should be rendered
  51. on top of the image \, and therefore afterwards.;
  52. #X obj 63 228 gemhead 50;
  53. #X obj 63 251 t a a a;
  54. #X obj 31 27 gemhead 20;
  55. #X obj 31 47 ev_buf 0;
  56. #X obj 31 680 ev_grid 0;
  57. #X obj 244 670 ev_pano_group 0;
  58. #X obj 63 463 ev_pro_22 l;
  59. #X obj 82 373 ev_pro_22 c;
  60. #X obj 31 820 ev_pic 0;
  61. #X obj 31 903 ev_pano_stitch 0;
  62. #X obj 217 903 ev_pano_stitch 1;
  63. #X obj 403 903 ev_pano_stitch 2;
  64. #X obj 589 903 ev_pano_stitch 3;
  65. #X obj 371 200 cnv 15 400 350 empty empty empty 20 12 0 14 -261682
  66. -66577 0;
  67. #X obj 380 245 ev_gemwin;
  68. #X text 599 219 click "create" to start;
  69. #X text 438 -87 (c)2012 Peter Venus & Marian Weger /EXTENDED VIEW toolkit/
  70. ;
  71. #X obj 400 352 ev_storage;
  72. #X obj 102 283 ev_pro_22 r;
  73. #X obj 328 243 t a;
  74. #X obj 328 322 t a;
  75. #X obj 328 414 t a;
  76. #X text 398 499 Presets are located in the "./data" folder. This example
  77. uses scene "0" of "ev_example_panoramic_preset.txt".;
  78. #X text 468 725 Input modules can be [ev_pic] for still images \; [ev_vid]
  79. for video \, or [ev_cam] for camera input.;
  80. #X obj 371 5 cnv 15 220 170 empty empty empty 2 8 0 10 -191407 -66577
  81. 0;
  82. #X obj 378 128 pix_texture;
  83. #X obj 378 57 tgl 15 0 empty empty show_framebuffer_content 17 7 0
  84. 10 -260097 -1 -1 0 1;
  85. #X obj 378 83 gemhead 102;
  86. #X obj 378 11 loadbang;
  87. #X msg 378 33 0;
  88. #X obj 441 106 r /ev/buf/0/texture_id;
  89. #X obj 378 151 rectangle 5.3333 8;
  90. #X text 65 151 send the texture id of the framebuffer \; to the projection
  91. modules;
  92. #X obj 217 820 ev_pic 1;
  93. #X obj 403 820 ev_pic 2;
  94. #X obj 589 820 ev_pic 3;
  95. #X connect 3 0 14 0;
  96. #X connect 3 1 15 0;
  97. #X connect 10 0 11 0;
  98. #X connect 11 0 16 0;
  99. #X connect 11 1 17 0;
  100. #X connect 11 2 28 0;
  101. #X connect 12 0 13 0;
  102. #X connect 13 0 3 0;
  103. #X connect 13 1 29 0;
  104. #X connect 15 1 18 0;
  105. #X connect 15 2 43 0;
  106. #X connect 15 3 44 0;
  107. #X connect 15 4 45 0;
  108. #X connect 18 0 19 0;
  109. #X connect 29 0 28 1;
  110. #X connect 29 0 30 0;
  111. #X connect 30 0 17 1;
  112. #X connect 30 0 31 0;
  113. #X connect 31 0 16 1;
  114. #X connect 35 0 41 0;
  115. #X connect 36 0 37 0;
  116. #X connect 37 0 35 0;
  117. #X connect 38 0 39 0;
  118. #X connect 39 0 36 0;
  119. #X connect 40 0 35 1;
  120. #X connect 43 0 20 0;
  121. #X connect 44 0 21 0;
  122. #X connect 45 0 22 0;
  123. #X coords 0 748 1 747 85 60 0;