Graphics, Figures & TablesProblems with 3D image and Movie using media9

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
swiper
Posts: 4
Joined: Thu Apr 22, 2010 11:48 pm

Problems with 3D image and Movie using media9

Post by swiper »

Hi All,

I want to include a movie and a 3D image in my Latex document using media9.
The movie works as expected when compiled alone.
The 3D image works as expected when compiled alone.
When the movie is before the 3D image in the latex document then both work perfectly.
However, if the movie is after the 3D image in the latex document then the movie does not play any more. Only a white box appears where the movie should be.

I have the same results if using the VPlayer.swf or the StrobeMediaPlayback.swf for the movie.

I have read forums and the media9 documentation without any luck in finding a solution.

Does anyone know how to have a functioning movie that follows a functioning 3D image?

I have a MWE of the 3D image followed by the movie. The attached zip file contains the movie and 3d file and images of the two.

Code: Select all

\documentclass[12pt,a4paper]{article}
\usepackage{graphicx}
\usepackage{media9}
\begin{document}

% 3d Image
\begin{figure}
\begin{center}
    \includemedia[
    3Dcoo=-0.0027 0.046 0.0028,
    3Dc2c=0.008 0.30 0.95,
    3Droo=0.25,
    3Droll=177.9,
    3Dlights=White,
    width=0.45\linewidth,
    height=0.45\linewidth,
    activate=pagevisible,
    ]{\includegraphics[scale=1]{tank_master.png}}{tank_master.u3d}
\end{center}
\caption{3d image}
\end{figure}

% Movie
\begin{figure}
    \includemedia[
      label=movie_file,
      width=0.45\linewidth,
      height=150 pt,
      activate=pageopen,
      addresource=hcbase_speciestransport_carreau.mp4,
      flashvars={%
        source=hcbase_speciestransport_carreau.mp4
%        src=hcbase_speciestransport_carreau.mp4 %use src when using StrobeMediaPlayback.swf
}
    ]{\includegraphics{hcbase_speciestransport_carreau.png}}{VPlayer.swf}%{StrobeMediaPlayback.swf}
\end{figure}

\end{document}

Attachments
mwe.zip
movie and 3d file
(388.57 KiB) Downloaded 500 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

alex
Posts: 32
Joined: Mon May 19, 2008 10:53 am

Re: Problems with 3D image and Movie using media9

Post by alex »

It's a bug in media9. Will be fixed in the next version (0.21) in a few days. Thank you very much for reporting!
Post Reply