Kern's Holler Journal Computer Science
Embedding movies and 3d images in pdf files
Author: Tater
Gumfries
ABSTRACT: Tater figured he'd better write down how to get some movin pictures and 3d into one of them pdf documents. That way, if you want, you can get a picture of Jesus whose eyes follows you around the room into a church bulletin. That would be a sight.
Tater's pretty sure you've seen you something writ in what they call a pee-dee-eff document, maybe over to the libary on one of their computers or some such. They mostly just got word, and sometimes pictures. Well, sir, that kind of document is one that's read by something called "Adobe Reader" which don't cost you a penny. You get you a new one, and its got the movies and the 3d virtual reality pictures built right in there.
So what Tater like to do the other day was figure out how to get him some movies and funny pictures into one of them pdf files. So that's just what he did. They's probably some simpler ways to get it done, but they probably gonna cost you money, tell you what. And maybe they's some simpler free ways, which Tater's gonna tell you about after a spell, but if you knew how, you wouldn't be reading what Taters telling you now. So let ol Tater tell you how its did.
Doing a movie is easiest, but it don't seem like much cause they's so many movies already on the internets, mostly of nekkid people, or so they tell ol Tater. Tater wouldn't know hisself. He's the serious sort. So we's gonna jump right in there to put a 3D picture in there. Maybe later Tater will tell you about how to do a movie.
First, you need you some free computer programs. You need something to make the pictures, something to convert them to 3D, something to convert the 3D pictures to the right kind of format (hey, this here's new stuff so doin it free ain't smooth yet), and something to write a document that can save to pdf with that 3D picture in it. OK, cause Tater don't know about your 3D graphics, he just got him a real simple java program, JavaView, that drew 3d pictures that you could slap another 2D picture on. Tater used Dobbsheads so Subgeniuses could get their bearings. Then he got him MeshLab that could save it as u3d. Now MeshLab should be able to do what JavaView does so you could skip the first step, but Tater can't figure out how yet. So you open up that vrml file in MeshLab and save it as a u3d.
Now we gotta embed it in a pdf file. Gotta download a LaTeX typsetting language program. Tater uses the MikTeX package, which you gotta download for free and install first. Then you need you a LaTeX editor. They's a real good free one called TeXnic Center. So you download that and install it. It's gonna ask you if you want to use the MikTeX that you just installed for your LaTeX application and you tell it yes. Then you run this little script Tater gonna give you here, and there you have it.
Now the LaTeX typesetting language takes a little getting used to. So for right now, Tater just gonna give you this little script you run in your LaTeX editor, and you'll have you a pdf file with a 3d picture in it.
Now, let's say you made you a 3d picture called Bob.u3d. You just run this little thing here in that TeXnic Center
\documentclass[a4paper]{article}
\usepackage[3D]{movie15}
\usepackage{hyperref}
\begin{document}
\includemovie[
poster,
toolbar,
3Daac=60.000000, 3Droll=0.000000, 3Dc2c=0.000000 2.483000 0.000000, 3Droo=2.483000, 3Dcoo=0.000000 0.000000 0.000000,
3Dlights=CAD,
]{\linewidth}{\linewidth}{Bob.u3d}
\end{document}
That's all there is to it. Tater wrote just the instructions too, just in case you don't want to read all these words.