I'm creating a 3D pdf with latex and movie15 and I added some views for my u3d object…
Then I added turntable.js
to manually change a view of the object…
till now everything is fine
It is possible to add a jscript to automatically cycle all the views i.e. changing the view each second?
The best would be to associate the start stop to the standard animation toolbar button
here is the code
\documentclass{article}
\usepackage[3D]{movie15}
\usepackage{hyperref}
\begin{document}
\includemovie[
poster,
toolbar,
label=dice,
text=(dice.u3d),
3Droo=27,
3Dlights=Cube,
3Djscript=turntable.js,
3Dviews2=dice.vws
]{.5\linewidth}{.5\linewidth}{dice.u3d}\\
\movieref[3Dviewindex=N]{dice}{Click here} ...\\
\movieref[3Dcalculate=60]{dice}{This link} ...
\end{document}
Best Answer
The
media9
package should be used instead of the obsoletemovie15
, as in the example below.Here is a JavaScript that cycles through the predefined views. The view changes every 5 seconds. As requested, the toolbar Play/Pause button can be used to pause/resume the animation. For further info about 3D JavaScript, see here.
The complete example (except dice.u3d)