Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14763 > unrolled thread

Re: fyi, making animation into PDF file from images genenerated by Mathematica

Started by"Eduardo M. A. M. Mendes" <emammendes@gmail.com>
First post2013-06-06 11:25 +0000
Last post2013-08-17 06:04 +0000
Articles 8 — 5 participants

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: fyi, making animation into PDF file from images genenerated by Mathematica "Eduardo M. A. M. Mendes" <emammendes@gmail.com> - 2013-06-06 11:25 +0000
    Re: fyi, making animation into PDF file from images genenerated by Mathematica RBaillie <bobbaillie@frii.com> - 2013-06-07 03:14 +0000
    Re: fyi, making animation into PDF file from images genenerated by Mathematica DC <b.gatessucks@gmail.com> - 2013-06-07 03:14 +0000
    Re: fyi, making animation into PDF file from images genenerated by Mathematica debguy <johnandsara2@cox.net> - 2013-06-11 06:23 +0000
    Re: fyi, making animation into PDF file from images genenerated by Mathematica Murray Eisenberg <murray@math.umass.edu> - 2013-08-16 07:09 +0000
    Re: fyi, making animation into PDF file from images genenerated by Mathematica Murray Eisenberg <murray@math.umass.edu> - 2013-08-17 05:58 +0000
    Re: fyi, making animation into PDF file from images genenerated by Mathematica "Eduardo M. A. M. Mendes" <emammendes@gmail.com> - 2013-08-17 05:59 +0000
    Re: fyi, making animation into PDF file from images genenerated by Mathematica "Eduardo M. A. M. Mendes" <emammendes@gmail.com> - 2013-08-17 06:04 +0000

#14763 — Re: fyi, making animation into PDF file from images genenerated by Mathematica

From"Eduardo M. A. M. Mendes" <emammendes@gmail.com>
Date2013-06-06 11:25 +0000
SubjectRe: fyi, making animation into PDF file from images genenerated by Mathematica
Message-ID<koprk2$chl$1@smc.vnet.net>
Dear Nasser

Many thanks for making the guideline on how to make animations available.  

There is a lot of useful information on your web page for newbies like me.   Thanks a lot.

Cheers

Ed


On Jun 5, 2013, at 4:30 AM, Nasser M. Abbasi <nma@12000.org> wrote:

>
> I use Latex to make PDF's where graphics output of plots
> and Manipulate and other Mathematica commands are embedded
> inside PDF as animation with live controls in the
> PDF file to play/stop/step the animations in the PDF file.
>
> So I thought to document the steps in case someone might find it useful.
>
> 
http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm
>
> It is simple method to use, and uses pdflatex and the nice animate package
> that comes with Latexto create the PDF file. I use TexLive, but MikeTex
> Latex should also work.
>
> It is possible ofcourse to embed animated gif and other movies
> into a PDF directly, but the above method allows one to have
> live controls to actually play the animation and control its speed,
> step through it, etc... while in the PDF file.  The above
> link contains 2 small pdf's with Mathematica animation in them
> to try them.
>
> --Nasser
>

[toc] | [next] | [standalone]


#14769

FromRBaillie <bobbaillie@frii.com>
Date2013-06-07 03:14 +0000
Message-ID<korj6u$jcc$1@smc.vnet.net>
In reply to#14763
Nice!

You can also create a pdf file with a 3D object that you can
interactively rotate with your mouse.

Here's how. First, create the Mathematica object:

superSphere = ContourPlot3D[x^4 + y^4 + z^4 == 1,
 {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh->False];
Export["C:\\junk\\supersphere.x3d", superSphere]

Second, import the x3d file into the free software MeshLab, then
export it as a u3d file.

Third, use the media 9 LaTeX package to import the u3d file into pdf:

\usepackage[english]{babel}
\usepackage{media9}

\includemedia[
 width=0.9\linewidth, height=0.9\linewidth,
 activate=pageopen,
 3Dmenu,
 3Daac=60.0, 3Droll=0.0, 3Dc2c=10.0 -3.0 10.0,
 3Droo=3.0, 3Dcoo=0.0 0.0 0.0,
 3Dlights=CAD, % display object without artificial colors
 %3Dlights=Primary, % colorize monochrome objects with R, G, B lights
 3Drender=SolidWireframe
]{}
{supersphere.u3d}

Note: if the object looks inside out, you will have to go back into
MeshLab and reverse the object's normals, then re-export it.

[toc] | [prev] | [next] | [standalone]


#14770

FromDC <b.gatessucks@gmail.com>
Date2013-06-07 03:14 +0000
Message-ID<korj7j$jcf$1@smc.vnet.net>
In reply to#14763
Hi Nasser, thanks indeed.
I use linux and it seems the PDF documents work only in Acroread (and not in okular, evince, ...).
Would you have any suggestions ?

[toc] | [prev] | [next] | [standalone]


#14800

Fromdebguy <johnandsara2@cox.net>
Date2013-06-11 06:23 +0000
Message-ID<kp6fo5$nd3$1@smc.vnet.net>
In reply to#14763
linux has xpdf and TeX and post-script (non-proprietary pdf per say)

btw: linux default for post script or pdf is "safe" (do not execute
embedded scripts or executables)

btw: linux 3D has problems.  this isn't due to Ubantu or linux but to
video card manufacturers refusing to release drivers and tampering
with OpenGL and etc.  i don't think they want free 3D do you?  have
you read the 3D problem reports for linux?  well.  not as bad as for
win95 (which are now hidden from public view) but still!

[toc] | [prev] | [next] | [standalone]


#15308

FromMurray Eisenberg <murray@math.umass.edu>
Date2013-08-16 07:09 +0000
Message-ID<kukj79$qts$1@smc.vnet.net>
In reply to#14763
I just tried this under Mac OS X (adjusting the Export statement accordingly, of course). And after importing the xd3 into MeshLab then exporting it as a u3d, when i run the LaTeX file in pdflatex, I get a totally blank page.

On Jun 6, 2013, at 11:18 PM, RBaillie <bobbaillie@frii.com> wrote:

> Nice!
>
> You can also create a pdf file with a 3D object that you can
> interactively rotate with your mouse.
>
> Here's how. First, create the Mathematica object:
>
> superSphere = ContourPlot3D[x^4 + y^4 + z^4 == 1,
> {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh->False];
> Export["C:\\junk\\supersphere.x3d", superSphere]
>
> Second, import the x3d file into the free software MeshLab, then
> export it as a u3d file.
>
> Third, use the media 9 LaTeX package to import the u3d file into pdf:
>
> \usepackage[english]{babel}
> \usepackage{media9}
>
> \includemedia[
> width=0.9\linewidth, height=0.9\linewidth,
> activate=pageopen,
> 3Dmenu,
> 3Daac=60.0, 3Droll=0.0, 3Dc2c=10.0 -3.0 10.0,
> 3Droo=3.0, 3Dcoo=0.0 0.0 0.0,
> 3Dlights=CAD, % display object without artificial colors
> %3Dlights=Primary, % colorize monochrome objects with R, G, B lights
> 3Drender=SolidWireframe
> ]{}
> {supersphere.u3d}
>
> Note: if the object looks inside out, you will have to go back into
> MeshLab and reverse the object's normals, then re-export it.

---
Murray Eisenberg                                    
murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower           
University of Massachusetts 
710 North Pleasant Street  
Amherst, MA 01003-9305





[toc] | [prev] | [next] | [standalone]


#15317

FromMurray Eisenberg <murray@math.umass.edu>
Date2013-08-17 05:58 +0000
Message-ID<kun3f2$3mm$1@smc.vnet.net>
In reply to#14763
Oh, yes, I used the default MacTeX viewer for the pdf, namely, the OS X Preview. Which is what, I imagine, most Mac users would use when viewing any pdf, whether one generated from TeX or not.

It does work as expected when I view the pdf in Acrobat Reader.

Any way to get this to work with Preview, too?

On Aug 16, 2013, at 9:02 AM, Eduardo M. A. M. Mendes <emammendes@gmail.com> wrote:

> Hi there
>
> It worked on my mac pro.
>
> I guess you have used preview instead of Acrobat Reader.   Am I right?
>
> Cheers
>
> Ed
>
>
> On Aug 16, 2013, at 8:07 AM, Murray Eisenberg <murray@math.umass.edu> wrote:
>
>> I just tried this under Mac OS X (adjusting the Export statement accordingly, of course). And after importing the xd3 into MeshLab then exporting it as a u3d, when i run the LaTeX file in pdflatex, I get a totally blank page.
>>
>> On Jun 6, 2013, at 11:18 PM, RBaillie <bobbaillie@frii.com> wrote:
>>
>>> Nice!
>>>
>>> You can also create a pdf file with a 3D object that you can
>>> interactively rotate with your mouse.
>>>
>>> Here's how. First, create the Mathematica object:
>>>
>>> superSphere = ContourPlot3D[x^4 + y^4 + z^4 == 1,
>>> {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh->False];
>>> Export["C:\\junk\\supersphere.x3d", superSphere]
>>>
>>> Second, import the x3d file into the free software MeshLab, then
>>> export it as a u3d file.
>>>
>>> Third, use the media 9 LaTeX package to import the u3d file into pdf:
>>>
>>> \usepackage[english]{babel}
>>> \usepackage{media9}
>>>
>>> \includemedia[
>>> width=0.9\linewidth, height=0.9\linewidth,
>>> activate=pageopen,
>>> 3Dmenu,
>>> 3Daac=60.0, 3Droll=0.0, 3Dc2c=10.0 -3.0 10.0,
>>> 3Droo=3.0, 3Dcoo=0.0 0.0 0.0,
>>> 3Dlights=CAD, % display object without artificial colors
>>> %3Dlights=Primary, % colorize monochrome objects with R, G, B lights
>>> 3Drender=SolidWireframe
>>> ]{}
>>> {supersphere.u3d}
>>>
>>> Note: if the object looks inside out, you will have to go back into
>>> MeshLab and reverse the object's normals, then re-export it.
>>
>> ---
>> Murray Eisenberg                                   
>> murray@math.umass.edu
>> Mathematics & Statistics Dept.     
>> Lederle Graduate Research Tower          
>> University of Massachusetts
>> 710 North Pleasant Street 
>> Amherst, MA 01003-9305
>>
>>
>>
>>
>>
>>

---
Murray Eisenberg                                    =
murray@math.umass.edu
Mathematics & Statistics Dept.      
Lederle Graduate Research Tower           
University of Massachusetts 
710 North Pleasant Street  
Amherst, MA 01003-9305





[toc] | [prev] | [next] | [standalone]


#15320

From"Eduardo M. A. M. Mendes" <emammendes@gmail.com>
Date2013-08-17 05:59 +0000
Message-ID<kun3gv$3n5$1@smc.vnet.net>
In reply to#14763
I am afraid that I do not know any way to get this to work with Preview. 

Every time I need some animation on a pdf slide I use Acrobat for opening the resulting file.

Please let me know if you come across a solution.

Cheers

Ed

On Aug 16, 2013, at 11:32 AM, Murray Eisenberg <murray@math.umass.edu> wrote:

> Oh, yes, I used the default MacTeX viewer for the pdf, namely, the OS X Preview. Which is what, I imagine, most Mac users would use when viewing any pdf, whether one generated from TeX or not.
>
> It does work as expected when I view the pdf in Acrobat Reader.
>
> Any way to get this to work with Preview, too?
>
> On Aug 16, 2013, at 9:02 AM, Eduardo M. A. M. Mendes <emammendes@gmail.com> wrote:
>
>> Hi there
>>
>> It worked on my mac pro.
>>
>> I guess you have used preview instead of Acrobat Reader.   Am I right?
>>
>> Cheers
>>
>> Ed
>>
>>
>> On Aug 16, 2013, at 8:07 AM, Murray Eisenberg <murray@math.umass.edu> wrote:
>>
>>> I just tried this under Mac OS X (adjusting the Export statement accordingly, of course). And after importing the xd3 into MeshLab then exporting it as a u3d, when i run the LaTeX file in pdflatex, I get a totally blank page.
>>>
>>> On Jun 6, 2013, at 11:18 PM, RBaillie <bobbaillie@frii.com> wrote:
>>>
>>>> Nice!
>>>>
>>>> You can also create a pdf file with a 3D object that you can
>>>> interactively rotate with your mouse.
>>>>
>>>> Here's how. First, create the Mathematica object:
>>>>
>>>> superSphere = ContourPlot3D[x^4 + y^4 + z^4 == 1,
>>>> {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh->False];
>>>> Export["C:\\junk\\supersphere.x3d", superSphere]
>>>>
>>>> Second, import the x3d file into the free software MeshLab, then
>>>> export it as a u3d file.
>>>>
>>>> Third, use the media 9 LaTeX package to import the u3d file into pdf:
>>>>
>>>> \usepackage[english]{babel}
>>>> \usepackage{media9}
>>>>
>>>> \includemedia[
>>>> width=0.9\linewidth, height=0.9\linewidth,
>>>> activate=pageopen,
>>>> 3Dmenu,
>>>> 3Daac=60.0, 3Droll=0.0, 3Dc2c=10.0 -3.0 10.0,
>>>> 3Droo=3.0, 3Dcoo=0.0 0.0 0.0,
>>>> 3Dlights=CAD, % display object without artificial colors
>>>> %3Dlights=Primary, % colorize monochrome objects with R, G, B lights
>>>> 3Drender=SolidWireframe
>>>> ]{}
>>>> {supersphere.u3d}
>>>>
>>>> Note: if the object looks inside out, you will have to go back into
>>>> MeshLab and reverse the object's normals, then re-export it.
>>>
>>> ---
>>> Murray Eisenberg                                   
>>> murray@math.umass.edu
>>> Mathematics & Statistics Dept.     
>>> Lederle Graduate Research Tower          
>>> University of Massachusetts
>>> 710 North Pleasant Street 
>>> Amherst, MA 01003-9305
>>>
>>>
>>>
>>>
>>>
>>>
>
> ---
> Murray Eisenberg                                    
murray@math.umass.edu
> Mathematics & Statistics Dept.      
> Lederle Graduate Research Tower           
> University of Massachusetts 
> 710 North Pleasant Street  
> Amherst, MA 01003-9305
>
>
>
>
>

[toc] | [prev] | [next] | [standalone]


#15326

From"Eduardo M. A. M. Mendes" <emammendes@gmail.com>
Date2013-08-17 06:04 +0000
Message-ID<kun3pc$3ob$1@smc.vnet.net>
In reply to#14763
Hi there

It worked on my mac pro.

I guess you have used preview instead of Acrobat Reader.   Am I right?

Cheers

Ed


On Aug 16, 2013, at 8:07 AM, Murray Eisenberg <murray@math.umass.edu> wrote:

> I just tried this under Mac OS X (adjusting the Export statement accordingly, of course). And after importing the xd3 into MeshLab then exporting it as a u3d, when i run the LaTeX file in pdflatex, I get a totally blank page.
>
> On Jun 6, 2013, at 11:18 PM, RBaillie <bobbaillie@frii.com> wrote:
>
>> Nice!
>>
>> You can also create a pdf file with a 3D object that you can
>> interactively rotate with your mouse.
>>
>> Here's how. First, create the Mathematica object:
>>
>> superSphere = ContourPlot3D[x^4 + y^4 + z^4 == 1,
>> {x, -1, 1}, {y, -1, 1}, {z, -1, 1}, Mesh->False];
>> Export["C:\\junk\\supersphere.x3d", superSphere]
>>
>> Second, import the x3d file into the free software MeshLab, then
>> export it as a u3d file.
>>
>> Third, use the media 9 LaTeX package to import the u3d file into pdf:
>>
>> \usepackage[english]{babel}
>> \usepackage{media9}
>>
>> \includemedia[
>> width=0.9\linewidth, height=0.9\linewidth,
>> activate=pageopen,
>> menu,
>> aac=60.0, roll=0.0, c2c=10.0 -3.0 10.0,
>> roo=3.0, coo=0.0 0.0 0.0,
>> lights=CAD, % display object without artificial colors
>> %lights=Primary, % colorize monochrome objects with R, G, B lights
>> render=SolidWireframe
>> ]{}
>> {supersphere.u3d}
>>
>> Note: if the object looks inside out, you will have to go back into
>> MeshLab and reverse the object's normals, then re-export it.
>
> ---
> Murray Eisenberg                                   
> murray@math.umass.edu
> Mathematics & Statistics Dept.     
> Lederle Graduate Research Tower          
> University of Massachusetts
> 710 North Pleasant Street 
> Amherst, MA 01003-9305
>
>
>
>
>
>

[toc] | [prev] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web