Skip to content

Comperas Midterm: Image Time Comparator

March 5, 2012


While working on The Image Time Comparator for my Where-When Picture Project, I felt like it was on a good trajectory for a nice-sized midterm project. In the previous iteration, the user can compare a current webcam image with an image from 24 hours ago by moving the mouse up and down on the screen. Here are the enhancements I made from most significant to least:

  • Viewer can select how far back in time they want to go, from 5 minutes to 6 days
  • Viewer can view embedded time-lapse videos for the past 24 hours and all hourly images since the project started
  • A floating welcome screen introduces the viewer to the project
  • The server now pulls the images from an IP camera instead of a firewire webcam. The firewire webcam was entirely unreliable and the quality of the new camera is better (a little).
  • Mouse movement left to right now moves time forward (instead of up to down)
  • Image was resized so as to fit into browser window without cropping

Coding the interface to select a time frame was incredibly time consuming. I wanted to ensure that the link bar on the bottom indicated which view was selected and that took quite a bit of PHP coding. I also spent many hours tweaking a bash scripts to generate both time-lapses. Here’s what one of them looks like:

#!/bin/bash
# creates timelapse video from all the jpgs saved in the 24 hour folder
# copy files starting from 24h ago to a work directory, named sequentially:
b=0
for (( i=1439; i > 0; i-- )) do
  infile="/Users/matt/Sites/images/`date -v-${i}M +%H%M`.jpg"
  newfile=$(printf "/Users/matt/Sites/vid/work/%04d.jpg" ${b}) #04 pad to length of 4
  cp ${infile} ${newfile}
  let b=b+1
done
# make video from those files: (flags: -r: frame rate, -b: bit rate, -y: force overwrite, -i: input
/usr/local/bin/ffmpeg -r 30 -b 3800 -y -i /Users/matt/Sites/vid/work/%04d.jpg /Users/matt/Sites/vid/work/full24hvid.mp4 &> /Users/matt/Sites/vid/vid.log
# making the videos takes time, we don't want public files
# to be written while they're being accessed by the web user
# so move the ffmpeg output file to replace the public filename:
mv /Users/matt/Sites/vid/work/full24hvid.mp4 /Users/matt/Sites/vid/full24hvid.mp4 
# clean up work files:
rm /Users/matt/Sites/vid/work/*

I am especially proud of this because I haven’t done much bash scripting at all, and this is actually rather complex. It goes through each archived image (which uses a timestamp as a filename), copies it to a working directory with new names (representing the appropriate frame number), 0 through 1439 for each minute in 24 hours. Then it calls ffmpeg to assemble the jpegs into an MP4 and finally, it deletes the work files. This operation is run once an hour, as set up in the crontab.

Electrical Discharge Machining Resources

February 16, 2012

Materials: Any material that conducts electricity

Local EDM Shop: MasterGrind
National/Online Shop: Xact Wire EDM Corporation
National Shop (includes wire and sinker EDM): Reliable EDM

Sinker EDM:

Wire EDM:

Notes about EDM:

  • Doesn’t stress the work piece as with grinding or milling
  • Keeps it cooler, limiting expansion of workpiece (which would harm accuracy)
  • EDM drills for holes too small for a drill bit
  • EDM drills for holes on angles
  • EDM drills for holes within recess
  • EDM drills for deep, small holes
  • Wire EDM for cutting squares
  • Wire EDM for cutting through thick material

Drive By: Project Promotion

February 15, 2012

This Thursday night, February 16th, Sean McIntyre and I will be holding a Drive By on how to promote yourself and your projects to blogs, newspapers, magazines, and television shows:

You’ve made an awesome project and now you want to get a little bit of attention for it, right? Getting press coverage for your work is critical if you want to the maximum amount of opportunities to flow your way. Sean and Matt will share their tips for how to pitch your projects to blogs, newspapers, magazines, and television shows. Sean will talk about integrating PR into your project lifecycle and Matt will give his perspective on pitching and being pitched.

Sound Experiments

February 15, 2012

Our challenge this week was to create a video to go along with a soundtrack that was given to us.

Looking out the Window

February 13, 2012

I’ve been playing around with using face tracking to help make images/renderings of spaces on a computer screen seem more realistic because of the way that they’re responsive to the position of our eyes. I think this would be an interesting thing to play with for websites. I have a bit more work to make it seem more realistic but I’m getting there. It may help to separate the background into additional layers. The code is below:
Here’s the code

Deconstructing Spitzer Hall of Human Origins at AMNH

February 9, 2012

In contrast to the Islamic Lands galleries at the Metropolitan Museum of Art, the design in the Spitzer Hall of Human Origins is much more prevalent. Which follows reason. On one hand, the Met is displaying its collection as a way of showing the effect of the spread of Islam on art and artifacts. On the other hand, The Hall of Human Origins starts from a topic: how humans came to be as a species, what makes us similar and different from other species, and what’s so special about our species. The exhibition elements serve the sole purpose to tell this story.

When you enter the exhibit, before you even get to the three topics above, you’re in an area that answers the question “how do we know all this?” To the left is a section on DNA and to the right is a section on fossils. With so much space, media, artifacts, and panels dedicated to these two types of evidence, I couldn’t help but think that it’s a reaction to creationists (a video later in the exhibit is explicitly so). One thing is for sure, the first impression of this area is this exhibit is going to be loaded with information. It feels so rich with information, there’s no way I was going to be able to move through it at a good pace an pick up more than half of it. It feels a bit daunting. The presentation of the information is enticing however. There’s plenty to see, touch, and hear.

The purpose of the second gallery is to allow us to “walk through time” from the first humans about 6-7 million years ago until the first homo sapien, about 15,000 years ago. The signs indicate that there’s a particular way that you’re supposed to walk through the gallery in order to view the story of our evolution in chronological order. The sign says, “just has human evolution did not follow a straight line, neither should you.” This left me a little confused. What exactly does it mean that it didn’t follow a straight line? And then that also initially made me feel that I wasn’t supposed to follow their map. After all, the path on the map may not be straight, but it is linear. So as a visitor, I’m thinking: “Evolution wasn’t a straight line, but it was linear,” not quite sure what that means.

What I liked so much about this gallery was the traditional dioramas in it, those that you would typically find at a museum of natural history. While the exhibit may be entirely modern in style, it’s a bit of a relief that the designers didn’t do away with all traditional forms of exhibition for a museum like this. It was almost comforting to see this familiar exhibit display. The other thing that caught my eye was the use of a very consistent visual style to call out how long ago each element was from. That’s the central idea of this gallery, as we “walk through millions of years of history.” We’re given a clear idea of how time is moving. I found myself looking for this graphical cue in each display in order to keep my “temporal bearings” as I viewed the exhibit.

The next area we walk into is called the Symbolic World. It looks at creative expression in early humans to give us a sense of how they made sense of their world. Using the “viewport” of such artifacts to draw these conclusions is extremely effective in getting this idea across and making me feel that I’m “getting my money’s worth” from the exhibit. It’s also a nice break from looking at bones, fossils and DNA models.

The last gallery ends with the concept of what makes humans so special, focusing on biology (like the brain), language, music, art and a few other elements. This area felt a little too “loose” for me. In other words, I had to work a little harder to understand why I was looking at what I was looking at. The display at the front of the gallery, the ones that tells us why we’re looking at these elements is very text-heavy and this idea is buried in it. If you breeze by that panel, you don’t have a sense of why there are all these displays. I’m not sure how I would approach this differently, and perhaps since the subject matter here is a a lot more disparate, it’s a problem that isn’t easily solved within the realm of exhibition design.

Overall, the exhibit scores fairly high for me. If I would change anything, I would take some stuff away, it almost feels too rich in content. So much so, that it feels daunting. Other than that, the style, flow, lighting, artifacts, and media are all very well presented and were definitely engaging.

Lomography Fisheye 2 Camera in Vectorworks

February 8, 2012

(PDF Version) This was my first foray into Vectorworks. While I made this, I picked up a lot of tricks, but was also left with a lot of questions about the best way to do things:

  • I’m not totally clear on how to combine and difference shapes, it’s still a bit of trial and error.
  • When I send something behind something else, how do I select the object in the back?
  • When I want the convex side of an arc to be the interior of a shape, how do I do that?
  • I only needed to see part of the gear for the film winder. How do I slice the gear? To workaround, I covered it with other polygons.
  • How do you measure the arc on an object?

Here’s the object:

Commit / Repent

February 8, 2012

Given the challenge of telling a very short story in three shots with a fixed camera, I made the video above, entitled “Commit / Repent.” The story came about organically over the process of shooting it. I originally wanted to make a story where the first two shots didn’t make sense until the third shot, that of a book cover. So I headed up towards Strand Bookstore to to find a book cover that might tell a story about the person who owns it. On my way to Strand, Grace Church caught my eye. I have never set foot inside this beautiful building in the ten years that I’ve been walking by it so I went in to check it out. Inside, I saw that it was such a beautiful location and I started taking video with my phone. I sat down at one of the pews and managed to stick my phone up towards the beautiful ceiling.

There, a foggy idea for the story above started to materialize. Getting the angle I wanted for the “repent” shot took a lot of trial and error since I could not see how the framing looked. When I had a shot I was satisfied with, I continued up Broadway to Strand Bookstore, where I shot the first shot in their basement. To do that, I used the friction between the books on a shelf to hold my phone in placed while I walked the aisle. Since I was already acting suspicious and figured their security already had their eyes on me through their CCTV, I decided to do the “commit” shot at home.

When I got home, I looked over my books to find one that was appropriate. I thought The Selfish Gene by Richard Dawkins was appropriate not only because of the title, but also because Dawkins is well-known for being an avowed atheist. After cutting the shots together, I felt a little dissatisfied. I thought I was trying too hard and that I could be more clever by somehow telling more story with less time. But I really liked how the church ceiling and windows in the last shot tell a huge part of the story. I really wanted to keep that. I hoped for inspiration to strike me, but it didn’t happen before the assignment was due.

Hand Tracking vs. Skeleton Tracking

February 6, 2012

I decided to improve on my hand tracking assignment so that it (roughly) tracks the angle of my hand and rotates the superimposed foam hand appropriately. I’ve included before and after footage above. Code below:
Read more…

Deconstructing Arab Lands Galleries at The Met

February 2, 2012

Especially at museums like The Metropolitan Museum of Art, I’m a bit of a “streaker” in terms of how I take in the museum. I rarely read text, and I just like to look around at what’s on display. If something catches my eye and I want to know more, I might read its description. I never walk out of these sorts of galleries feeling like the people who designed it had some sort of “thesis” or idea that they wanted to impart to me about the subject matter. That being said, I spent a little more time experiencing The New Galleries for the Art of the Arab Lands at the Metropolitan Museum of Art. Here are my impressions:

  • The main idea of the exhibit is to show how the spread of Islam had a widespread effect on the art and culture of Middle East countries (and even beyond) from the 7th to 19th Centuries.
  • The exhibit conveys this through large blocks of text mounted on the wall. The text is very easy to understand and some of the captions next to the pieces point out how the particular piece relates to Islam and about the techniques used at the time.
  • The content of the gallery is organized geographically and by period, with areas of overlap. It roughly starts with the earliest Muslim influences on art in Iran and Central Asia and ends with the most recent Islamic art in South Asia, Spain and North Africa, giving you a sense of the spread of Islam and its influence on art.
  • The designers have interpreted a heavy influence from Islam through calligraphy, illuminated manuscripts, and treasured objects like urns, jewelry, and tapestries.
  • I felt the design of the galleries was mostly effective. There’s a definite logical flow to the content, but the gallery itself does not force that on you if you just want to browse. I presume an audio tour or guided tour gives you better cues as to how to move through the galleries. For me, I had to study the map to determine what direction I should move in.
  • A few very special rooms differed greatly from most of the other galleries and made the experience special. Specifically, the Carpets, Textiles and the Greater Ottoman World and The Damascus Room. The former gallery is immediately breathtaking because of its high, vaulted and adorned ceiling and a long carpet running the length of the gallery under (amazingly even) lighting. The Damascus Room sets the tone with the sound of a fountain, which according to the interactive display, was used for both practical and aesthetic reasons.
  • Lighting was critical to this exhibit and was carefully planned. This was especially true in the tapestry room and the area with the manuscripts. The lights were very well disguised and lit everything well. Another effective design element was the use of stools in front of the illuminated manuscripts. After a long day of walking through the museum, seeing those stools in front of the cases was incredibly inviting. You could sit down and have something interesting to lean over and look at.
  • The only thing I would change about the exhibit is to make the map of the region a recurring element. There’s a very large map outside the entrance to the gallery, but I think it could be incorporated into each room so that the visitor gets a better sense of how the effect of Islam on art and culture spreads geographically.
  • Design in The Metropolitan Museum of Art takes a supporting role to the art on display. I think everyone would agree that this is a sound decision.
Follow

Get every new post delivered to your Inbox.