From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- .../latex/contrib/movie15/doc/files/3dsystem.fig | 273 ++++++++ .../latex/contrib/movie15/doc/files/3dsystem.pdf | Bin 0 -> 4394 bytes .../latex/contrib/movie15/doc/files/3dsystem.tex | 29 + macros/latex/contrib/movie15/doc/files/dice.u3d | Bin 0 -> 160672 bytes macros/latex/contrib/movie15/doc/files/dice.vws | 23 + macros/latex/contrib/movie15/doc/files/dice.wrl | 119 ++++ macros/latex/contrib/movie15/doc/files/mailto.png | Bin 0 -> 962 bytes macros/latex/contrib/movie15/doc/files/random.mpg | Bin 0 -> 39869 bytes .../contrib/movie15/doc/javascript/animation.js | 100 +++ .../latex/contrib/movie15/doc/javascript/lights.js | 51 ++ .../contrib/movie15/doc/javascript/turntable.js | 63 ++ macros/latex/contrib/movie15/doc/movie15.pdf | Bin 0 -> 420002 bytes macros/latex/contrib/movie15/doc/movie15.tex | 751 +++++++++++++++++++++ .../latex/contrib/movie15/doc/overlay-example.pdf | Bin 0 -> 56294 bytes .../latex/contrib/movie15/doc/overlay-example.tex | 47 ++ 15 files changed, 1456 insertions(+) create mode 100644 macros/latex/contrib/movie15/doc/files/3dsystem.fig create mode 100644 macros/latex/contrib/movie15/doc/files/3dsystem.pdf create mode 100644 macros/latex/contrib/movie15/doc/files/3dsystem.tex create mode 100644 macros/latex/contrib/movie15/doc/files/dice.u3d create mode 100644 macros/latex/contrib/movie15/doc/files/dice.vws create mode 100644 macros/latex/contrib/movie15/doc/files/dice.wrl create mode 100644 macros/latex/contrib/movie15/doc/files/mailto.png create mode 100644 macros/latex/contrib/movie15/doc/files/random.mpg create mode 100644 macros/latex/contrib/movie15/doc/javascript/animation.js create mode 100644 macros/latex/contrib/movie15/doc/javascript/lights.js create mode 100644 macros/latex/contrib/movie15/doc/javascript/turntable.js create mode 100644 macros/latex/contrib/movie15/doc/movie15.pdf create mode 100644 macros/latex/contrib/movie15/doc/movie15.tex create mode 100644 macros/latex/contrib/movie15/doc/overlay-example.pdf create mode 100644 macros/latex/contrib/movie15/doc/overlay-example.tex (limited to 'macros/latex/contrib/movie15/doc') diff --git a/macros/latex/contrib/movie15/doc/files/3dsystem.fig b/macros/latex/contrib/movie15/doc/files/3dsystem.fig new file mode 100644 index 0000000000..e2273139db --- /dev/null +++ b/macros/latex/contrib/movie15/doc/files/3dsystem.fig @@ -0,0 +1,273 @@ +#FIG 3.2 +Landscape +Center +Metric +A4 +100.00 +Single +-2 +1200 2 +0 32 #9c0000 +0 33 #8c8c8c +0 34 #8c8c8c +0 35 #424242 +0 36 #8c8c8c +0 37 #424242 +0 38 #8c8c8c +0 39 #424242 +0 40 #8c8c8c +0 41 #424242 +0 42 #8c8c8c +0 43 #424242 +0 44 #e2e2ee +0 45 #94949a +0 46 #dbdbdb +0 47 #a1a1b7 +0 48 #ededed +0 49 #e0e0e0 +0 50 #86acff +0 51 #7070ff +0 52 #c6b797 +0 53 #eff8ff +0 54 #dccba6 +0 55 #404040 +0 56 #808080 +0 57 #c0c0c0 +0 58 #8e8f8e +0 59 #aaaaaa +0 60 #555555 +0 61 #8e8e8e +0 62 #d7d7d7 +0 63 #aeaeae +0 64 #bebebe +0 65 #515151 +0 66 #e7e3e7 +0 67 #000049 +0 68 #797979 +0 69 #303430 +0 70 #414141 +0 71 #c7b696 +0 72 #414541 +0 73 #e7e7e7 +0 74 #717571 +0 75 #dd9d93 +0 76 #f1ece0 +0 77 #c3c3c3 +0 78 #e2c8a8 +0 79 #e1e1e1 +0 80 #d2d2d2 +0 81 #da7a1a +0 82 #f1e41a +0 83 #887dc2 +0 84 #d6d6d6 +0 85 #8c8ca5 +0 86 #4a4a4a +0 87 #8c6b6b +0 88 #5a5a5a +0 89 #636363 +0 90 #b79b73 +0 91 #4193ff +0 92 #bf703b +0 93 #db7700 +0 94 #dab800 +0 95 #006400 +0 96 #5a6b3b +0 97 #d3d3d3 +0 98 #8e8ea4 +0 99 #f3b95d +0 100 #89996b +0 101 #646464 +0 102 #b7e6ff +0 103 #86c0ec +0 104 #bdbdbd +0 105 #d39552 +0 106 #98d2fe +0 107 #8c9c6b +0 108 #f76b00 +0 109 #5a6b39 +0 110 #8c9c6b +0 111 #8c9c7b +0 112 #184a18 +0 113 #adadad +0 114 #f7bd5a +0 115 #636b9c +0 116 #f7f7f7 +0 117 #de0000 +0 118 #adadad +0 119 #f7bd5a +0 120 #adadad +0 121 #f7bd5a +0 122 #636b9c +0 123 #526b29 +0 124 #949494 +0 125 #006300 +0 126 #00634a +0 127 #7b844a +0 128 #e7bd7b +0 129 #a5b5c6 +0 130 #6b6b94 +0 131 #846b6b +0 132 #529c4a +0 133 #d6e7e7 +0 134 #526363 +0 135 #186b4a +0 136 #9ca5b5 +0 137 #ff9400 +0 138 #ff9400 +0 139 #00634a +0 140 #7b844a +0 141 #63737b +0 142 #e7bd7b +0 143 #184a18 +0 144 #f7bd5a +0 145 #dedede +0 146 #f3eed3 +0 147 #f5ae5d +0 148 #95ce99 +0 149 #b5157d +0 150 #eeeeee +0 151 #848484 +0 152 #7b7b7b +0 153 #005a00 +0 154 #e77373 +0 155 #ffcb31 +0 156 #29794a +0 157 #de2821 +0 158 #2159c6 +0 159 #f8f8f8 +0 160 #e6e6e6 +0 161 #21845a +0 162 #cccccc +0 163 #999999 +0 164 #b2b2b2 +0 165 #c9c9c9 +0 166 #dfd8df +0 167 #f7f3f7 +0 168 #cdcdcd +0 169 #6c6c6c +5 1 0 1 0 7 45 -1 -1 0.000 0 0 1 1 1543.224 2237.643 2833 2393 2598 2996 2143 3390 + 2 0 1.00 60.00 120.00 + 2 0 1.00 60.00 120.00 +5 1 2 1 0 7 52 -1 -1 4.000 1 0 1 1 11576.552 9623.869 442 3442 1349 2035 2462 729 + 0 0 1.00 60.00 120.00 + 0 0 1.00 60.00 120.00 +5 1 2 1 0 7 52 -1 -1 4.000 1 1 1 1 7430.119 -1873.223 802 1109 1315 2055 2088 3055 + 0 0 1.00 60.00 120.00 + 0 0 1.00 60.00 120.00 +6 4753 4744 6037 5510 +5 1 0 1 0 7 100 -1 -1 0.000 0 0 0 0 5712.721 5265.408 5756 4952 5978 5093 6024 5322 +5 1 2 1 0 7 100 -1 -1 2.000 1 0 0 0 5442.537 5285.331 4944 5096 5258 4785 5692 4814 +5 1 2 1 0 7 100 -1 -1 2.000 1 1 0 0 5841.704 5281.825 5968 5335 5808 5149 5709 5316 +5 1 2 1 0 7 100 -1 -1 2.000 1 0 0 0 5122.611 5132.487 4986 5129 5207 5025 5230 5217 +5 1 0 1 0 7 98 -1 -1 0.000 1 0 0 0 5468.833 4766.333 5072 5236 5056 5222 5039 5206 +5 1 0 1 0 7 98 -1 -1 0.000 1 1 0 0 5071.511 5140.272 5011 5132 5012 5154 5026 5181 +5 1 0 1 0 7 98 -1 -1 0.000 1 0 0 0 5945.000 5164.000 5794 5382 5778 5370 5760 5354 +5 1 0 1 0 7 50 -1 -1 0.000 1 1 0 0 5659.846 5403.315 5786 5455 5627 5271 5528 5438 +5 1 0 1 0 7 50 -1 -1 0.000 0 0 0 0 5260.632 5406.447 4760 5215 5074 4904 5510 4932 +5 1 0 1 0 7 50 -1 -1 0.000 0 0 0 0 5529.852 5383.891 5574 5071 5795 5212 5841 5439 +5 1 0 1 0 7 50 -1 -1 0.000 1 0 0 0 4941.237 5252.972 4804 5250 5026 5145 5049 5338 +5 1 0 1 0 7 98 -1 -1 0.000 1 0 0 0 5442.380 5294.428 5068 4904 5255 4787 5689 4813 +5 1 0 1 0 7 98 -1 -1 0.000 1 1 0 0 5789.373 5293.415 5732 5285 5733 5307 5747 5333 +5 1 0 1 0 7 98 -1 -1 0.000 1 1 0 0 5825.000 5279.500 5704 5271 5704 5288 5706 5303 +1 3 2 1 0 7 100 -1 -1 2.000 1 6.0772 5123 5130 111 111 5123 5130 5234 5130 +1 3 2 1 0 7 100 -1 -1 2.000 1 6.0772 5844 5281 111 111 5844 5281 5955 5281 +1 3 0 1 0 7 50 -1 -1 0.000 1 6.0772 4940 5254 111 111 4940 5254 5050 5274 +1 3 0 1 0 7 50 -1 -1 0.000 1 6.0772 5662 5402 111 111 5662 5402 5703 5507 +2 1 0 1 0 7 100 -1 -1 0.000 0 0 -1 0 0 2 + 5692 4814 5756 4952 +2 1 2 1 0 7 100 -1 -1 2.000 0 1 -1 0 0 2 + 6024 5320 5968 5335 +2 1 2 1 0 7 100 -1 -1 2.000 0 1 -1 0 0 2 + 4941 5094 4986 5129 +2 1 2 1 0 7 100 -1 -1 2.000 0 1 -1 0 0 2 + 4761 5215 4944 5096 +2 1 2 1 0 7 98 -1 -1 2.000 0 1 -1 0 0 2 + 5049 5338 5228 5220 +2 1 2 1 0 7 98 -1 -1 2.000 0 1 -1 0 0 2 + 5528 5438 5709 5319 +2 1 2 1 0 7 98 -1 -1 2.000 0 1 -1 0 0 2 + 4806 5250 4989 5131 +2 1 2 1 0 7 98 -1 -1 2.000 0 1 -1 0 0 2 + 5786 5454 5968 5336 +2 1 0 1 0 7 98 -1 -1 0.000 0 1 -1 0 0 2 + 4953 5157 4992 5131 +2 1 0 1 0 7 80 -1 -1 0.000 0 0 -1 0 0 2 + 4971 4954 5153 4835 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 4804 5251 4842 5227 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 4760 5215 4804 5250 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 5049 5338 5528 5438 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 5841 5439 5786 5455 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 5510 4932 5574 5071 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 5528 5438 5565 5413 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 5841 5439 6023 5322 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 5755 4952 5574 5071 +2 1 0 1 0 7 50 -1 -1 0.000 0 1 -1 0 0 2 + 5690 4814 5510 4932 +2 1 2 1 0 7 100 -1 -1 2.000 0 1 -1 0 0 2 + 5228 5217 5708 5316 +-6 +6 1009 1590 1714 2595 +6 1399 1782 1714 2435 +5 1 0 0 0 7 55 -1 2 0.000 0 0 0 0 1438.929 2167.804 1604 1949 1708 2220 1500 2435 +2 3 0 0 7 7 55 -1 2 0.000 1 0 -1 0 0 6 + 1399 1782 1604 1948 1501 2435 1462 2428 1460 1899 1399 1782 +-6 +2 3 0 2 0 7 50 -1 14 0.000 1 0 -1 0 0 5 + 1300 1607 1613 2067 1322 2533 1024 2058 1300 1607 +2 3 0 2 0 7 54 -1 14 0.000 1 0 -1 0 0 6 + 1322 2534 1406 2580 1692 2125 1610 2073 1323 2535 1322 2534 +2 3 0 2 0 7 54 -1 10 0.000 1 0 -1 0 0 5 + 1300 1605 1384 1668 1693 2117 1618 2072 1300 1605 +-6 +1 1 1 1 0 7 50 -1 -1 4.000 1 5.7596 3060 3330 405 900 3060 3330 3465 3337 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 1 3 + 1 1 2.00 120.00 240.00 + 1 1 2.00 120.00 240.00 + 2205 1305 2205 6165 7245 7155 +2 1 0 1 0 7 50 -1 -1 0.000 0 0 -1 1 0 2 + 1 1 2.00 120.00 240.00 + 2205 6165 5985 4095 +2 1 1 1 4 7 50 -1 -1 4.000 0 1 -1 1 0 2 + 2 0 1.00 60.00 120.00 + 5440 5973 5440 5112 +2 1 1 1 4 7 50 -1 -1 4.000 0 1 -1 1 0 2 + 2 0 1.00 60.00 120.00 + 4331 6582 5440 5973 +2 1 0 2 4 7 50 -1 -1 0.000 0 0 -1 1 0 2 + 2 0 2.00 120.00 240.00 + 2205 6165 5440 5112 +2 1 1 1 1 7 50 -1 -1 4.000 0 1 -1 1 0 2 + 2 0 1.00 60.00 120.00 + 4621 4954 4014 5283 +2 1 1 1 1 7 50 -1 -1 4.000 0 1 -1 1 0 2 + 2 0 1.00 60.00 120.00 + 4014 5283 4014 4048 +2 1 0 2 1 7 60 -1 -1 0.000 0 0 -1 1 0 2 + 2 0 2.00 120.00 240.00 + 5441 5112 4014 4048 +2 1 1 1 1 7 60 -1 -1 4.000 0 1 -1 1 0 2 + 2 0 1.00 66.00 130.50 + 5441 5112 4622 4953 +2 1 1 1 4 7 49 -1 -1 4.000 0 1 -1 1 0 2 + 2 0 1.00 60.00 120.00 + 2205 6165 4331 6582 +2 1 3 2 1 7 70 -1 -1 7.500 0 1 -1 0 0 2 + 5443 5112 1683 2312 +2 1 1 1 0 7 100 -1 -1 4.000 0 0 -1 0 0 3 + 3465 2532 1335 2060 2532 4025 +4 0 1 50 -1 0 12 0.0000 3 195 1845 4470 4308 $\\overrightarrow{C2C}$\001 +4 0 0 50 -1 0 12 0.0000 3 165 315 6013 4272 $Y$\001 +4 0 0 50 -1 0 12 0.0000 3 165 315 7140 7372 $X$\001 +4 0 0 50 -1 0 12 0.0000 3 165 300 2266 1297 $Z$\001 +4 0 4 50 -1 0 12 0.0000 3 195 1905 4090 5815 $\\overrightarrow{COO}$\001 +4 2 0 50 -1 0 12 0.0000 3 195 690 2160 6210 $(0,0,0)$\001 +4 1 0 50 -1 0 12 0.0000 3 195 1755 2835 2310 $\\sphericalangle AAC$\001 +4 0 1 50 -1 0 12 0.0000 3 165 570 3635 3680 $ROO$\001 diff --git a/macros/latex/contrib/movie15/doc/files/3dsystem.pdf b/macros/latex/contrib/movie15/doc/files/3dsystem.pdf new file mode 100644 index 0000000000..998f4b622d Binary files /dev/null and b/macros/latex/contrib/movie15/doc/files/3dsystem.pdf differ diff --git a/macros/latex/contrib/movie15/doc/files/3dsystem.tex b/macros/latex/contrib/movie15/doc/files/3dsystem.tex new file mode 100644 index 0000000000..d2e23ceac7 --- /dev/null +++ b/macros/latex/contrib/movie15/doc/files/3dsystem.tex @@ -0,0 +1,29 @@ +\begin{picture}(0,0)% +\includegraphics[clip, scale=1, viewport=0 3 433 424]{3dsystem}% +\end{picture}% +\setlength{\unitlength}{4144sp}% +% +\begingroup\makeatletter\ifx\SetFigFont\undefined% +\gdef\SetFigFont#1#2#3#4#5{% + \reset@font\fontsize{#1}{#2pt}% + \fontfamily{#3}\fontseries{#4}\fontshape{#5}% + \selectfont}% +\fi\endgroup% +\begin{picture}(6873.43196911197,6682.94424710425)(435,-6534.37806949807)% +\put(4471,-3469){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,1}$\overrightarrow{C2C}$}% +}}}}% +\put(6014,-3433){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$Y$}% +}}}}% +\put(7141,-6533){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$X$}% +}}}}% +\put(2267,-458){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$Z$}% +}}}}% +\put(4091,-4976){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{1,0,0}$\overrightarrow{COO}$}% +}}}}% +\put(2161,-5371){\makebox(0,0)[rb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$(0,0,0)$}% +}}}}% +\put(2836,-1471){\makebox(0,0)[b]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,0}$\sphericalangle AAC$}% +}}}}% +\put(3636,-2841){\makebox(0,0)[lb]{\smash{{\SetFigFont{12}{14.4}{\familydefault}{\mddefault}{\updefault}{\color[rgb]{0,0,1}$ROO$}% +}}}}% +\end{picture}% diff --git a/macros/latex/contrib/movie15/doc/files/dice.u3d b/macros/latex/contrib/movie15/doc/files/dice.u3d new file mode 100644 index 0000000000..ae14b756a1 Binary files /dev/null and b/macros/latex/contrib/movie15/doc/files/dice.u3d differ diff --git a/macros/latex/contrib/movie15/doc/files/dice.vws b/macros/latex/contrib/movie15/doc/files/dice.vws new file mode 100644 index 0000000000..3b1bd9a7a4 --- /dev/null +++ b/macros/latex/contrib/movie15/doc/files/dice.vws @@ -0,0 +1,23 @@ +VIEW={Front} + %using defaults for COO, C2C, ROLL and AAC + ROO=27 +END +VIEW={Back} + ROO=27 + C2C=0 1 0 +END +VIEW={Left} + ROO=27 + C2C=-1 0 0 +END +VIEW={Right} + ROO=27 + C2C=1 0 0 +END +VIEW={Top} + ROO=27 + C2C=0 0 1 +END +VIEW={Fish Eye at Centre} + AAC=130 +END diff --git a/macros/latex/contrib/movie15/doc/files/dice.wrl b/macros/latex/contrib/movie15/doc/files/dice.wrl new file mode 100644 index 0000000000..23b1ef92a2 --- /dev/null +++ b/macros/latex/contrib/movie15/doc/files/dice.wrl @@ -0,0 +1,119 @@ +#VRML V1.0 ascii + +# dice.wrl +# based on the work of +# Peter Whitehouse +# http://www.wonko.info/vrml/dice.txt + +Separator { + DEF _dice Shape { + geometry Box { + size 8 8 8 + } + } + DEF _sphere0 Separator { + Material { diffuseColor [ 0.2 0.8 0.2 ] } + Translation { translation -2 2 -4 } + Sphere { radius 1.00000 } + } + DEF _sphere0_0 Separator { + Material { diffuseColor [ 0.2 0.8 0.2 ] } + Translation { translation 2 -2 -4 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1 Separator { + Material { diffuseColor [ 1 0.5 0.8 ] } + Translation { translation -2 2 4 } + Sphere { radius 1.00000 } + } + DEF _sphere0_0_1 Separator { + Material { diffuseColor [ 1 0.5 0.8 ] } + Translation { translation 2 -2 4 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2 Separator { + Material { diffuseColor [ 1 0.5 0.8 ] } + Translation { translation 0 0 4 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_3 Separator { + Material { diffuseColor [ 0.3 0.3 1 ] } + Translation { translation -4 2 1.5 } + Sphere { radius 1.00000 } + } + DEF _sphere0_0_1_3 Separator { + Material { diffuseColor [ 0.3 0.3 1 ] } + Translation { translation -4 2 -1.5 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_3_4 Separator { + Material { diffuseColor [ 0.3 0.3 1 ] } + Translation { translation -4 0 1.5 } + Sphere { radius 1.00000 } + } + DEF _sphere0_0_1_3_4 Separator { + Material { diffuseColor [ 0.3 0.3 1 ] } + Translation { translation -4 -2 -1.5 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_4 Separator { + Material { diffuseColor [ 0.3 0.3 1 ] } + Translation { translation -4 -2 1.5 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_6 Separator { + Material { diffuseColor [ 1 1 0 ] } + Translation { translation 0 4 0 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_7 Separator { + Material { diffuseColor [ 1 1 0 ] } + Translation { translation 2 4 -2 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_6_7 Separator { + Material { diffuseColor [ 1 1 0 ] } + Translation { translation 2 4 2 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_7_8 Separator { + Material { diffuseColor [ 1 0 0 ] } + Translation { translation -2 -4 -2 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_6_7_8 Separator { + Material { diffuseColor [ 1 0 0 ] } + Translation { translation -2 -4 2 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_7_9 Separator { + Material { diffuseColor [ 1 0 0 ] } + Translation { translation 2 -4 -2 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_6_7_9 Separator { + Material { diffuseColor [ 1 0 0 ] } + Translation { translation 2 -4 2 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_7_8_9 Separator { + Material { diffuseColor [ 1 1 0 ] } + Translation { translation -2 4 -2 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_2_3_5_6_7_8_9 Separator { + Material { diffuseColor [ 1 1 0 ] } + Translation { translation -2 4 2 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_3_10 Separator { + Material { diffuseColor [ 0 1 1 ] } + Translation { translation 4 0 0 } + Sphere { radius 1.00000 } + } + DEF _sphere0_1_3_4_12 Separator { + Material { diffuseColor [ 0.3 0.3 1 ] } + Translation { translation -4 0 -1.5 } + Sphere { radius 1.00000 } + } +} diff --git a/macros/latex/contrib/movie15/doc/files/mailto.png b/macros/latex/contrib/movie15/doc/files/mailto.png new file mode 100644 index 0000000000..12831c2410 Binary files /dev/null and b/macros/latex/contrib/movie15/doc/files/mailto.png differ diff --git a/macros/latex/contrib/movie15/doc/files/random.mpg b/macros/latex/contrib/movie15/doc/files/random.mpg new file mode 100644 index 0000000000..368cd368b6 Binary files /dev/null and b/macros/latex/contrib/movie15/doc/files/random.mpg differ diff --git a/macros/latex/contrib/movie15/doc/javascript/animation.js b/macros/latex/contrib/movie15/doc/javascript/animation.js new file mode 100644 index 0000000000..f0789891f4 --- /dev/null +++ b/macros/latex/contrib/movie15/doc/javascript/animation.js @@ -0,0 +1,100 @@ +///////////////////////////////////////////////////////////////// +// +// animation.js +// +// JavaScript for use with `3Djscript' option of \includemovie +// +// * Activates keyframe animation embedded in the u3d file. +// * Arrow keys `Down', `Up' can be used for speeding up and +// slowing down a running animation, key `Home' for reverting +// to the default speed. +// +// * Adjustable parameters: +var rate = 1; // 1 --> use original speed as default +var palindrome = true; // true --> play forth and back +// +///////////////////////////////////////////////////////////////// + +//get the first animation in the scene +var myAnim = scene.animations.getByIndex(0); +myAnim.wallTime = 0; +myAnim.speed = 1; +myAnim.myLength = myAnim.endTime - myAnim.startTime; +scene.activateAnimation(myAnim); + +//method to set animation speed +myAnim.setSpeed = function (speed) { + speed = Math.abs(speed); + this.wallTime /= speed/this.speed; //correct the walltime + this.speed = speed; +}; + +//method to change animation speed by a factor +myAnim.changeSpeed = function (mult) { + this.wallTime /= mult; //correct the walltime + this.speed *= mult; +}; + +//set default speed +myAnim.setSpeed(rate); + +//menu items +runtime.addCustomMenuItem("faster", "Faster (Key Up)", "default", 0); +runtime.addCustomMenuItem("slower", "Slower (Key Down)", "default", 0); +runtime.addCustomMenuItem("default", "Default Speed (Key Home)", "default", 0); + +//menu handler to control speed +menuEventHandler = new MenuEventHandler(); +menuEventHandler.onEvent = function(e) { + if (e.menuItemName == "faster") { + myAnim.changeSpeed(1.25); + } + else if (e.menuItemName == "slower") { + myAnim.changeSpeed(1/1.25); + } + else if (e.menuItemName == "default") { + myAnim.setSpeed(rate); + } +}; +runtime.addEventHandler(menuEventHandler); + +//key handler to control speed +keyEventHandler = new KeyEventHandler(); +keyEventHandler.onKeyDown = true; +keyEventHandler.onEvent = function(e) { + switch(e.characterCode) { + case 30: //key up + myAnim.changeSpeed(1.05); + break; + + case 31: //key down + myAnim.changeSpeed(1/1.05); + break; + + case 4: //key home + myAnim.setSpeed(rate); + break; + + case 1: //key end + myAnim.setSpeed(rate); + break; + } +}; +runtime.addEventHandler(keyEventHandler); + +//run the animation using a TimeEventHandler +myTimer = new TimeEventHandler(); +myTimer.onTimeChange = true; +myTimer.onEvent = function(e) { + myAnim.wallTime += e.deltaTime; + if (palindrome == true) { + myAnim.currentTime = + myAnim.startTime + + myAnim.myLength/2 + * (1 - Math.cos(Math.PI * myAnim.speed/myAnim.myLength * myAnim.wallTime)); + } else { + myAnim.currentTime = myAnim.startTime + + (myAnim.speed * myAnim.wallTime % myAnim.myLength); + } +}; +runtime.addEventHandler(myTimer); diff --git a/macros/latex/contrib/movie15/doc/javascript/lights.js b/macros/latex/contrib/movie15/doc/javascript/lights.js new file mode 100644 index 0000000000..ba367dfbb6 --- /dev/null +++ b/macros/latex/contrib/movie15/doc/javascript/lights.js @@ -0,0 +1,51 @@ +//////////////////////////////////////////////////////////////////////// +// +// lights.js +// +// example JavaScript for use with `3Djscript' option of \includemovie +// +// * Adds light sources around the object for better illumination. +// +//////////////////////////////////////////////////////////////////////// +console.println(scene.lightScheme); +////first remove any scene lights +//for (var i = scene.lights.count - 1; i >= 0; i--) { +// scene.lights.removeByIndex(i); +//} +// +////new lights +////from left +//l1 = scene.createLight(); +//l1.color.set(1,1,1); +//l1.brightness = .4; +//l1.direction.set(1,0,0); +// +////from right +//l2 = scene.createLight(); +//l2.color.set(1,1,1); +//l2.brightness = .4; +//l2.direction.set(-1,0,0); +// +////from bottom +//l3 = scene.createLight(); +//l3.color.set(1,1,1); +//l3.brightness = .4; +//l3.direction.set(0,0,1); +// +////from top +//l4 = scene.createLight(); +//l4.color.set(1,1,1); +//l4.brightness = .4; +//l4.direction.set(0,0,-1); +// +////from front +//l5 = scene.createLight(); +//l5.color.set(1,1,1); +//l5.brightness = .4; +//l5.direction.set(0,1,0); +// +////from back +//l6 = scene.createLight(); +//l6.color.set(1,1,1); +//l6.brightness = .4; +//l6.direction.set(0,-1,0); diff --git a/macros/latex/contrib/movie15/doc/javascript/turntable.js b/macros/latex/contrib/movie15/doc/javascript/turntable.js new file mode 100644 index 0000000000..f839c5c332 --- /dev/null +++ b/macros/latex/contrib/movie15/doc/javascript/turntable.js @@ -0,0 +1,63 @@ +///////////////////////////////////////////////////////////////////// +// +// turntable.js +// +// JavaScript for use with `3Djscript' option of \includemovie +// +// * Greatly improves the rotational behaviour of the 3D object, +// prevents it from tilting to the side while dragging the mouse. +// This is achieved by suppressing the rolling of the camera about +// its optical axis. +// +///////////////////////////////////////////////////////////////////// + +// maximum pitch (degrees from horizontal) of the camera +var max_alpha = 88; +var min_beta = 90 - max_alpha; // the complement +var cos_min_beta = Math.cos(min_beta * Math.PI/180); +var tan_min_beta = Math.tan(min_beta * Math.PI/180); + +var camera = scene.cameras.getByIndex(0); +camera.axis_up = camera.up.subtract(camera.position); +camera.axis_up.normalize(); + +//updates the vertical axis of rotation whenever a predefined view +//is selected from the drop down list in the 3D toolbar +var cameraEventHandler = new CameraEventHandler(); +cameraEventHandler.onEvent = function (e) { + camera.axis_up = camera.up.subtract(camera.position); + camera.axis_up.normalize(); +} +runtime.addEventHandler(cameraEventHandler); + +//suppresses camera rolling and limits camera pitch +var mouseEventHandler = new MouseEventHandler(); +mouseEventHandler.onMouseMove = true; +mouseEventHandler.onEvent = function (e) { + runtime.setCurrentTool(runtime.TOOL_NAME_ROTATE); + var c2c = camera.position.subtract(camera.targetPosition); + var roo = c2c.length; + c2c.normalize(); + cos_beta = c2c.dot(camera.axis_up); //cos of enclosed angle + + //correct the camera position if it is too high or too low + if(Math.abs(cos_beta) > cos_min_beta) { + //auxiliary vectors a & b + var a = camera.axis_up.scale(cos_beta); + var b = c2c.subtract(a); + b.normalize(); + b.scaleInPlace(tan_min_beta * a.length); + + c2c.set(a.add(b)); + c2c.normalize(); + + camera.position.set(camera.targetPosition.add(c2c.scale(roo))); + cos_beta = c2c.dot(camera.axis_up); + } + + //suppress rolling + camera.up.set( + camera.position.add(camera.axis_up).add(c2c.scale(-cos_beta)) + ); +}; +runtime.addEventHandler(mouseEventHandler); diff --git a/macros/latex/contrib/movie15/doc/movie15.pdf b/macros/latex/contrib/movie15/doc/movie15.pdf new file mode 100644 index 0000000000..04cba2380f Binary files /dev/null and b/macros/latex/contrib/movie15/doc/movie15.pdf differ diff --git a/macros/latex/contrib/movie15/doc/movie15.tex b/macros/latex/contrib/movie15/doc/movie15.tex new file mode 100644 index 0000000000..1f3ac063a6 --- /dev/null +++ b/macros/latex/contrib/movie15/doc/movie15.tex @@ -0,0 +1,751 @@ +% Copyright 2004 Alexander Grahn +% +% This material is subject to the LaTeX Project Public License. See +% http://www.ctan.org/tex-archive/help/Catalogue/licenses.lppl.html +% for the details of that license. +% +\documentclass[a4paper]{article} +\pdfpagewidth595bp +\pdfpageheight842bp +\frenchspacing +\usepackage[3D]{movie15} +\usepackage{ragged2e} +\usepackage{amssymb} +\usepackage[UKenglish]{babel} +\usepackage{color} +\usepackage{graphicx} +\usepackage{hyperref} +\usepackage{textcomp} +\usepackage{lmodern} +\usepackage[T1]{fontenc} +\usepackage{float} +\usepackage{ifpdf} +\usepackage{parskip} +\usepackage{animate} + +\ifpdf\else + \makeatletter + \@latex@error{Please use pdfLaTeX to compile this documentation} + \makeatother +\fi + +\hypersetup{ + bookmarksnumbered,linktocpage,breaklinks, + pdftitle={The movie15 Package}, + pdfsubject={Documentation}, + pdfauthor={Alexander Grahn}, + pdfkeywords={embed, movie, LaTeX, pdfLaTeX, PDF, 3D, JavaScript, include, sound, video, multimedia, animation}, + citebordercolor={0 0 1}, + filebordercolor={0 0 1}, + linkbordercolor={0 0 1}, + menubordercolor={0 0 1}, + pagebordercolor={0 0 1}, + urlbordercolor={0 0 1} +} + +\begin{document} +\title{The {\sffamily movie15} Package} +\author{Alexander Grahn\\[1ex]\includegraphics[height=2.7ex]{mailto}} +\maketitle + +\begin{abstract}\noindent +A \LaTeX{} package for inclusion of movies, sounds and 3D objects into PDF documents with PDF-1.5/1.6 compatibility.\\[0.2\baselineskip] +\emph{Keywords}: embed, movie, LaTeX, pdfLaTeX, PDF, 3D, JavaScript, \mbox{include}, sound, video, multimedia, animation +\end{abstract} + +\begin{animateinline}[autoplay,loop]{1.5}\strut{\bf\color{red} Note:}\newframe\newframe[5]\end{animateinline} This package is obsolete now. Consider using package `media9'. +\tableofcontents + +%\newpage +\section{Introduction} + +The way multimedia content, i.\,e. movies and sounds, is included into PDF has changed with Adobe's PDF specification, version 1.5. PDF-1.5 supports a larger variety of movie and sound formats, limited only by the number of plug-ins available for Adobe Reader\textsuperscript{\scriptsize\textregistered}. With PDF-1.6, support for 3D objects, stored in the U3D file format, has been added. See Table \ref{table:mime} for a list of viable media formats. The specification allows media file contents to be completely embedded into the PDF output, thus producing self-contained PDF documents. + +This package provides an interface to embed movies, sounds and 3D objects into PDF documents for use with \LaTeX{} as well as pdf\LaTeX. Media file contents is incorporated into PDF output by default. This is done either directly during source processing using pdf\LaTeX{} or during conversion from Postscript to PDF using Ghostscript's \verb+ps2pdf+. + +The final PDF output can be viewed with Windows\textsuperscript{\scriptsize\textregistered} and Mac OS\textsuperscript{\scriptsize\textregistered} versions of Adobe Reader. However, embedded media file data can also be extracted and saved to disk from within Readers which support file attachments. This makes PDF documents a little more portable to Readers which do not ship with a multimedia plug-in. + +`movie15' works well together with the presentation making package `Beamer'. In particular it supports its overlay concept. See this \href{./overlay-example.pdf}{example}. +%which uses the `Beamer' class. +Also read the comments in the example's source file, `\verb+overlay-example.tex+', on how to use `movie15' with `Beamer'. + +\section{Installation} +The file `movie15.sty' should be stored in a place where \LaTeX{} can find it. + +\section{Requirements} +pdf\TeX{}, version $\ge1.20$, is needed for direct PDF output. + +If the package option `\verb+3D+' is set, `movie15' loads Michael Mehlich's `fp' package for fixed point arithmetic. Since it does not belong to the core packages of most \TeX{} distributions it must be installed prior to selecting the `\verb+3D+' option. + +Adobe Reader, version 6, is required for playing movies and sounds, version 7 for rendering embedded 3D content. + +%\newpage +\section{Using the package} +Invoke the package by putting the line +\begin{verbatim} + \usepackage[]{movie15} +\end{verbatim} +to the preamble of your document, i.\,e. somewhere between \verb+\documentclass+ and \verb+\begin{document}+. + +`movie15' honours the following package options: +\begin{verbatim} +3D +\end{verbatim} +Enables the 3D feature from the PDF-1.6 specification. Inclusion of 3D files into PDF is discussed separately in section~\ref{sec:3D}. + +\begin{verbatim} +draft +\end{verbatim} +Media files are not included. Just the file name is printed in a box of size \verb++$\times$(\verb+++\verb++). +\begin{verbatim} +final +\end{verbatim} +The opposite of draft. Useful to override a global draft option specified +in the \verb+\documentclass+ command. + +If PDF is generated via DVI and Postscript by the usual \verb+latex+ $\rightarrow$ \verb+dvips+ $\rightarrow$ \verb+ps2pdf+ sequence of commands, the `graphicx' package is required. + +Note that several runs may be necessary to resolve internally created cross-references. Appropriate warnings will be issued in such cases. + +\section{The user interface} +\subsection{Media inclusion}\label{usrif} +Movies, sounds and 3D objects are embedded into the document using the command +\begin{verbatim} + \includemovie[]{}{}{} +\end{verbatim} +Unless left empty, the \verb++ and \verb++ arguments must be given in valid \TeX{} dimensions. Horizontal and vertical dimensions of the media clip are scaled independently to fit \verb++ and \verb++ or, if the two latter are empty, to fit the size of the text box, given as argument to the `\verb+text+' option; see \hyperlink{lnk:textoption}{below}. \verb++ specifies the file name of the media clip. If the media file is embedded as part of the final PDF output, which is the default, it may reside wherever \TeX{} or Ghostscript search for input files, depending on the PDF producing method. + +Below, common options to \verb+\includemovie+ are listed. Options specific to embedding of 3D content are discussed separately in section~\ref{sec:3D}. The impatient reader may advance directly to the \hyperlink{sec:3Dtut}{3D quick-start guide}, which summarizes the basic steps for embedding 3D objects. +\begin{verbatim} +attach[=false] +\end{verbatim} +By default, the embedded data stream is re-used as embedded file attachment. This makes `movie15' a little more portable to PDF Readers which do not have a multimedia plug-in because it gives the user the opportunity to extract the media file and to save it to disk for later playback with an external player. However, support of file attachments is required. Re-use as file attachment can be suppressed with option `\verb+attach=false+'. Note that `\verb+attach=false+' is a poor method to prevent the user from obtaining a copy of the media file. There are several (free) tools for decompressing and extracting stream objects from PDF files. +\begin{verbatim} +autoclose +\end{verbatim} +Close the media player when the page is closed. Use of this option may be necessary for streamed media, such as Real Video. +\begin{verbatim} +autopause +\end{verbatim} +Pause playing when the page is closed. +\begin{verbatim} +autoplay +\end{verbatim} +Start playback of the media clip after the page has opened. This is especially useful if there are multiple movie clips on the current page to be played at the same time. Also resumes playback of previously paused media. In the case of embedded sound being started this way, \verb++ and \verb++ can safely be set to `0pt' since no further user interaction is necessary to start playing. +\begin{verbatim} +autostop +\end{verbatim} +Stops playing but keeps the media loaded when the page is closed. The media is rewound to its beginning or its `\verb+startat+' position. This option is set by default if neither of the options `\verb+autopause+', `\verb+autoclose+' or `\verb+continue+' is set. +\begin{verbatim} +autoresume +\end{verbatim} +Resume previously paused playback when the page is opened again. +\begin{verbatim} +continue +\end{verbatim} +Continue playback in background on premature page change. However, paused media remain paused. So do media that have reached the end or that still show the poster. +\begin{verbatim} +controls +toolbar +\end{verbatim} +Player specific controls or toolbars are displayed during playback of the media clip, if available. The default is `\verb+false+'; controls are not shown. +\begin{verbatim} +depth= +\end{verbatim} +Specifies how far the media display area should extend below the bottom line of the running text. Any valid \TeX{} dimension is accepted. +\begin{verbatim} +draft +\end{verbatim} +Locally switches to draft mode. +\begin{verbatim} +externalviewer +\end{verbatim} +Opens and plays the media in an external application. +\begin{verbatim} +final +\end{verbatim} +Locally disables draft mode. +\begin{verbatim} +inline[=false] +\end{verbatim} +Media file \emph{data} are embedded into PDF output by default. +This can be suppressed with option `\verb+inline=false+'. +\begin{verbatim} +label=