Sometimes I have to put text on a path

Friday, June 13, 2008

u3D acrobat PRo extended

http://www.adobe.com/products/acrobat/matrix.html

for full 3D objects or contents in a pdf:  Acrobat 9 Pro Extended.

The new format u3d that can be used in pdf files for interactive explanations.

For example, anyone know how to output a file in Adobe 3D format from Matlab?
That would be a REALLY powerful way to demonstrate Matlab results
in the pdf of your papers - it could even include animations.

Now one way to do something nice is to save your graphs in .wrml and then transform them into .u3d
with Acrobat 3D or Right Hemisphere (on which Acrobat 3D is based but which has much more capabilities).

------

I found a very interesting solution for exporting 3D-Plots.
Look at this webpage and download "Saveobjmesh.m"
http://www.nada.kth.se/~asa/Ray/matlabobj.html

Try to build a 3D plot and save this plot to 'parab.obj'.
[u,v]=meshgrid(-6:0.5:6,-6:0.5:6);
x=u; y=v; z=u.^2+v.^2;
mesh(x,y,z)
saveobjmesh('parab.obj',x,y,z)

Now you are able to import this obj file to Adobe Acrobat 3D
Toolkit (30 days demo available). You can save this file as
an U3D file, name it "matlabplot.u3d".

Go to your favourite latex editor.
Create a file named "views.vws" containing only one line:

[frontview]{-0.000000193670558701 -0.000000028775016148
36}{0.7103724479675293 0.7032560706138611
-0.0283149853348732}{140.5486495578774}{42.73490890549407}{}

Now create a new latex file and copy and paste these lines:

\documentclass[a4paper]{article}
\usepackage[3D]{movie15}
\begin{document}
\section*{my first 3d plot from matlab in \LaTeX}
\includemovie[autoplay, toolbar,
label=3dplot,3Dviews=views.vws]{.5\linewidth}{.5\linewidth}{matlabplot.u3d}

\\
\movieref[3Dgetview]{3dplot}{Get View!}
\end{document}

If you want to add another view of your plot, zoom and
rotate to the view and click on the "Get view!" text. Copy
this line into the "views.vws" files. The first line ist the
starting view.

Only works with new versions of Adobe Acrobat Reader.

No comments:

Post a Comment