Archive for the ‘3D’ Category
Creating an Anaglyph from a Stereograph
Friday, November 20th, 2009Back in 2005, I wrote a little blog post about creating stereo images with the GIMP along with a screencast. Little did I know that a couple of years later, I’d end up learning far more about stereo imaging when I became the stereo rendering lead for Toy Story and Toy Story 2. This post has circulated back to the sidebar in my “years ago on this date” section, so I thought I’d resurrect this video (the links were broken) and even though it is dated, it’s still pretty good information, so check I thought I’d upload it to blip.tv (I would have done Youtube, but it’s 11 minutes long, and Youtube rejected it) and make it available again. Enjoy!
More Fuji Real 3D W1 experiments (and an anaglyph)
Thursday, November 5th, 2009Well, I’ve tinkered around a bit more, and discovered a few things: the camera doesn’t actually do very much to align images. In fact, there is a fairly significant vertical misalignment between the two camera (I’m guessing around the order of a dozen pixels) which doesn’t really hurt things too bad, but which annoy me as the perfectionist stereo practitioner I’m being paid to be.
In yesterday’s article, I used exiftool to extract left and right images, which works just fine. I just composited the two images directly together, which resulted in a substantial amount of parallax over most of the image (the image was entirely behind the screen, and there was significant disparity). We can shift the images’ relative position by hand to reduce this overall disparity, and move the objects closer to the real screen, which makes the images easier to view and fuse. I decided to give this a try using GIMP, and basically constructed the anaglyph below using the following steps.
- Extract left images and right images from the MPO file as yesterday.
- run “gimp l.jpg r.jpg”
- I like the traditional anaglyphs, so I converted each image to BW, then back to color to produce gray scales of both images.
- I then added a new layer atop each image. For the left image, I filled that layer with a solid red. For the right image, I filled it with a cyan layer.
- Select the “Screen” layer mode for both of the new layers. This should let you see both a red colored and cyan colored image.
- Use “Merge down” to convert each layer into a single layer.
- I then copied the red layer, and used “Paste into” to put it on top of the blue layer.
- Change the new layer mode to “Multiply”. Voila! You have an anaglyph. You can use the shift tool (while wearing anaglyph glasses if you like) to adjust and align the layers as you see fit.
- Crop and export!
In the photo below, Luigi’s eyes should be roughly at screen depth, so his front bumper will appear modestly in front of screen. I probably could still be a bit better on the vertical alignment, but it’s not bad.
Fujifilm Real 3D W1 Camera
Wednesday, November 4th, 2009Today we got an interesting new toy in the lab, a Fujifilm Finepix Real 3D W1. It’s a very cute little camera which you can think of as being the modern day equivalent of the old Nimslo 3D cameras. It has two lenses, and can acquire both 3D and regular 2D images, which it displays on a built in 3D lenticular display on the back of the camera.
But that’s not that much fun, you’d have to pass the camera around, and let’s face it, the display is pretty small. Fuji is supposed to have a digital picture frame which can display these images in 3D, and is also supposedly going to have a service bureau so you can get lenticular prints made, but again, that’s not much fun, at least not today. So, instead, I decided to see what I could learn about the image formats that it uses.
For still imagery, it writes both a .JPG and a .MPO. The JPGs are just standard JPG images, and can be read by pretty much anything. The MPO files are Multi Picture Objects, which are a format that I hadn’t seen before. Digging around a bit, I found out that (with some complications) they are mostly just two concatenated JPG images. Most JPEG readers seem to open and read the first image (which I believe to be the right lens image) without any difficulty, so if you weren’t interested in the stereo image, you could pretty much just treat them like JPGS (although iPhoto doesn’t even try to notice them, and refuses to try to open them).
A little more digging revealed that there is a tool called exiftool which can be used to extract the images. After you install exiftool, you can run:
exiftool -trailer:all= input.mpo -o R.jpg exiftool input.mpo -mpimage2 -b > L.jpg
to extract the left and right image. If you have ImageMagick installed, you can create a red/blue anaglyph with a command like:
composite -stereo L.jpg R.jpg stereo.jpg
Here’s an example that is just an image that I shot as a test:
I also did a bit of experimentation with video. It appears that it records an AVI file with two different video streams and one audio stream. I did some quick tests using mplayer to dump frames of each video stream into separate directories, combining them with composite, and then making a video back out of the resulting frames. It worked, but the example footage was terrible, and I could work on improving the results, so I’ll hold off on that example for now.
Overall, it’s a pretty neat little gadget, but I must admit you can buy a much better camera for the $600 price tag that it costs. It’s neat not just for what it can do, but because it demonstrates some of the capabilities that I think cameras of the future will have.
More about it after I play with it a bit more.
Real-Time Rendering · SIGGRAPH 2009 Course Pages
Monday, October 5th, 2009I didn’t make it to this year’s SIGGRAPH, but I still try to keep up on my reading. There are several nice courses that occurred, and the guys over at the Real-Time Rendering blog were nice enough to link ‘em for us. Enjoy:
‘Toy’ Stories in 3-D – Buzz Lightyear Finds a Dimension
Friday, October 2nd, 2009Well, today’s the day. For about the last year, I’ve been working away deep within the halls of Pixar Animation as part of a fantastic crew, and today (and for the next two weeks) you all can see the result of our efforts: the conversion of the original Toy Story and Toy Story 2 into 3D. For many, this is an opportunity to see a pair of classic films on the big screen, and in a new way that we all hope you will enjoy. Check it out, and let me know what you think!
‘Toy’ Stories in 3-D – Buzz Lightyear Finds a Dimension – NYTimes.com.
YouTube Blog: Now in 3D
Wednesday, July 29th, 2009Youtube has apparently now got support for 3D Video. Neat! Read about it below, and expect to see a test video of mine over the next few days.
YouTube Blog: Now in 3D: Join the Experiment With Us!
Addendum: I tried embedding this 3D video two different ways, but without good results. Witness. Annoying.




