Thursday, June 18, 2009

Mobile gaming: Augmented reality with the Nvidia Tegra

tegra_3d_largeThese days, consumers increasingly want to take their experiences with them—be it gaming, movies, music, or the Internet. Devices like the Sony PSP, the iPod, multimedia cellphones, and video-capable portable media players do just this—they provide entertainment no matter where you are. But when it comes to portable devices, there are several invisible yet real barriers to a good experience—battery life and processing power. Manufacturers are grappling with these very issues while developing the next funky cell phone or portable gaming device. The Holy Grail lies in the ability to integrate console-class graphics capabilities with day-long battery life. And it looks like Nvidia (a leader in the development of processors for gaming and visualization) is very close to that elusive goal. With the launch of their Tegra processor, they can now offer phone and handheld game device manufacturers the ability to play high-definition movies and desktop class games on portable devices. If you’re a gamer, think Doom 3 class graphics on a handheld device. If you’re movie buff think watching 1080p-class high-definition video on a ultra-crisp portable OLED screen.

It gets better—when you marry the inherent portability of devices like cell phones and Mobile Internet Devices with the fact that they have fairly high-resolution cameras, something amazing happens. Check out the video below of a portable device powered by the Tegra processor, and how developers have been able to ‘augment’ the game on screen with the real word as seen through the mobile camera. Very, very cool.

Augmented reality enabled by the Nvidia Tegra processor






 
Imagine owning a phone in the near future having this kind of capability, and running around a table-top map with friends in a multiplayer game, or even taking the game outside the house and augmenting the undead into your quiet neighborhood—sounds trippy! Only problem I see is gamers of the future having to grapple with the inability to detach themselves from their virtual world, and get back into the here and now. But hey, it’d be a fun ride before that.

Marketing folks have already jumped onto the augmented reality bandwagon—check out this cool marketing campaign by Ford UK, to promote the launch of the Ford Ka.

Wednesday, May 13, 2009

All-time great sci-fi movies of the videotape era

When it came to figuring out what to do with my life, there never really was any doubt about what I’d become—an engineer. I remember the numerous times I stoically opened those steel wind-up alarm clocks, to see what made them tick, or took apart music systems (even my VCR, when I was all of 10 years old, to find out how to un-jam that tape!). Needless to say, not all of these exploits were successful—in fact, most were outright disasters. Over the years, I left behind a sizeable wake of cannibalized motors from toys, wrecked stereo systems, and bed sheets that bore scars from trysts with 240-volt electricity (yes, there was the time I nearly got a nice domestic fire going—and we didn’t have a fireplace).

Sure I had my fair share of chastising, but through it all mum and dad did all they could to ensure that I had a steady supply of science and technology influences throughout my formative years—from the junior microscope sets, to telescopes, to electronic do-it-yourself kits. I was, indeed, blessed.

But when it came to igniting a spark of interest in the budding scientist in me, the biggest influencers had to have been movies—I believe the 80s produced some of the most spectacular science fiction movies ever created. Looking back, the fact that the special effects were nowhere as advanced as today’s productions did in no way detract the sheer innovation and soul that characterized many of those movies. Being the era of VHS (where copying was cumbersome and downloading was out of the question), every movie was treasured, and the act of watching it was a family affair, often followed by hours and days of animatedly discussing, dissecting and reliving the storyline.

In no particular order, here’s a list of what I believe are some of the greatest sci-fi movies of the videotape era. If you ever get a chance to watch any of these, I guarantee that they’ll be pure, family entertainment. And if you have a budding techie sitting on the couch in your living room, (s)he’s bound to have great memories of them in the years ahead.

Flight of the Navigator (1986)
A fascinating story about a UFO that selects and befriends a boy to help it get back home. I still think that this is one of the most amazing-looking UFOs ever shown on celluloid. Period.
FlightOfTheNavigator
D.A.R.Y.L. (1985)
Another movie that centers around a young boy, who’s the subject of NASA experiments that make him hyper-intelligent. And the best part of this movie (spoiler alert ahead!)—in the end he flies a Lockheed SR-71 Blackbird—my favorite aircraft, bar none!
DARYL
TRON (1982)
Conceptually, this movie was way ahead of its time—a computer geek gets mysteriously transported into a computer, and must battle his way to get out alive—by fighting against its games, one on one! This movie had one of the most spectacular effects of its time, and the action sequences (on those bike thingies, especially), were awesome!
BTW: TRON was a function used in good ol’ programming languages like BASICA, meaning TRaceON—it was used for debugging!
TRON
Return to Oz (1985)
If you liked the Wizard of Oz, you’re bound to love this movie. This isn’t a happy, bouncy continuation of the original, but instead puts Dorothy and her band of misfits in a darker, more sinister realm. Fascinating story, great characters.
ReturnToOz
Return of the Jedi (1983)
Which geek doesn’t revere this movie? This was actually the first Start Wars episode I watched, and I instantly fell in love with every aspect of it. After this movie, there was no looking back from Han Solo, the Light Sabres, and Vader.
ReturnOfTheJedi
Short Circuit (1986)
A charming movie about a battle robot that takes on human characteristics after a close encounter with a lightening bolt. Besides looking downright cute in its own right, this robot is actually quite evocative of our modern-day Wall-E.
ShortCircuit
Back to the Future (1985)
A sports car that doubles up as a time machine, hover skateboards, and a host of other cool gadgets—ingredients for one rocker of a sci-fi movie! Because of this movie, the gull-wing DeLorean was one of my favorite sports cars at the time. Arguably one of Michael J. Fox’ most memorable roles, this is one of those must-see, must-own pieces of cinemagic!
back_to_the_future
*batteries not included (1987)
Looking back, I think this is a grossly underrated movie—it’s a story about an adorable pair of extra-terrestrial robots that ‘adopt’ a tenement-full of misfits. A brilliant story, and great visual effects.
batteries_not_included
E.T.: The Extra-Terrestrial (1982)
Spielberg’s magnum opus. ‘nuff said.
ET
Close Encounters of the Third Kind (1977)
Answering all those questions surrounding aliens and UFOs, this movie was a complete eye-opener, and a visual tour de force of its time.
Close Encounters of the Third Kind

All images sourced from www.imdb.com

Monday, April 27, 2009

Reduce noise in your digital photos

Noise is one of the most evident demons in digital photography—often manifested in those numerous, tiny, unsightly colored spots seen on the skin, skies and shadows in photos. While the best way to assuage image noise is to set your digital camera to use a lower ISO setting, this isn’t the optimal solution situations like shooting a dark scene, for example. So what do you do if you’re forced to shoot at a higher ISO, but still want to reduce the amount of noise in your images? You have several options—using one of the noise reduction filters in your image editing software, or using dedicated noise reduction tools like Neat Image or Noise Ninja. But there’s a simpler (and free) method to reduce the noise in your digital photos while maintaining overall image sharpness—it’s a technique based on the principle of averaging. Before we go into the details of this technique, a heads up on where this technique can and cannot be used:

  • You can use this technique to significantly reduce random image noise and sensor noise. This technique cannot be used against fixed noise patterns like bands, chromatic aberrations etc. The adjoining image shows what sensor (random) noise looks like.
  • This technique can only be used in still life shots or landscapes. It cannot be used to on shots of people, animals or scenes containing motion. You’ll see why later.

And now, on to the method.

Shooting the images: You will first need to take several shots of the same scene. The trick is to take the exact same photo of the scene keeping all settings constant across the shots. It is imperative that the images are perfectly aligned, so its best to shoot using a sturdy tripod, or by resting your camera on a solid surface. Noise_several_Images
Averaging the images: The cool thing about a mathematical average is that it brings a range of values to a ‘mean’ level. When applied to digital noise, averaging has the effect of reducing the effect of random noise across the image. Here’s how you do it:  
Load the images you shot into your favorite image editor. I’ve used Photoshop in this example. Make sure to load each image into its own layer, and also ensure that each image exactly overlaps the other—do not displace the images during this step. If you’re using Photoshop, the best way to ensure all images are aligned is by holding down [CTRL] and [SHIFT] while dragging the images into each layer with the Move tool. Load_Stacked_Images
Change the opacity of each layer. Averaging is achieved by changing the opacity of each layer. Basically, each layer will need to contribute the same amount to the overall effect. Think of these layers as transparencies stacked atop each other—if we use four layers and we set each one’s opacity to 25%, it won’t achieve the effect we need. Why? Because the higher layers will need to be less opaque (more transparent) than the ones below, as these higher layers affect the apparent opacity of the ones below.
Case in point: If you’ve shot five source images, you will need to set the layer opacity as follows: 
Layer4: 25%
Layer3: 33%
Layer2: 50%
Layer1: 100%
This is assuming Layer1 is at the bottom of the stack and Layer4 is at the top as indicated alongside. Also ensure the layer blend mode is Normal. You’ll see the effect of the noise reduction as you change the opacity levels.
Layer_opacity_settings

If you’re mathematically inclined, the formula for calculating the opacity of each layer is:

 Averaging formula

Use this formula and you’ll figure out how we arrived at the percentages in the example above. You can use as many images as you want, but four or five images should be sufficient—the results of this technique won’t noticeable even if you use more.

When you’re done altering the layers’ opacity, merge them and save your image.
Voila, you have a cleaner image! I shot this photo at ISO 1600 on my Nikon D40—click below to see the results up close.

Noise_Before_After

Tuesday, March 31, 2009

Audit your computer’s hardware and software

WinAudit Ever wanted to know the gory details of your computer’s hardware and software configuration without having to painstakingly study each of its components? If you’re a geek, that answer would be a resounding yes. If you’re not, it doesn’t hurt to know, right?

Even though this isn’t the most exciting of ways to spend your time, knowing what your computer consists of is knowledge. And that’s power! I use WinAudit—a useful freeware application that does exactly this. Sounds simple enough, and it is. But the level of detail it brings up in the audit report is quite amazing—be it the serial number of your computer’s optical drive or the exact stepping of the processor, this application quickly and efficiently generates a host of information about the target system.

The program is a snap to use—simply launch it, click the Options button to select the categories you want to audit, then click Audit. It will run for a couple of seconds, then display its findings in neat categories. You can also save this report in a variety of formats including PDF, CSV (for Excel), Text, HTML or even XML. Better yet, you can launch this program from the command line—meaning you can write a simple batch file, and make it do its work with a single click. Check the program’s help in the ‘Command Line Usage’ section for information on the numerous tags you can use for automated command line logging.

As an example, here’s how to create a batch file that launches the program, audits the most important system categories, and write a CSV file to the same location as the program:

  • Open Notepad
  • Type the following: WinAudit.exe /r=gPtabz /o=CSV
  • Save this file in the same directory as the WinAudit program, and name it Audit.bat

Simply run this batch file—the program silently audits your system and creates a detailed system report in the same directory. You can also copy the program and the batch file to a USB drive, and use it to quickly generate a report of several computers. If you’re a system administrator, you’ll find this immensely useful for quickly generating system audit reports of several computers. If you’re not, it’s a cool tool to learn about your computer’s detailed specifications. Also use it while buying a new computer or laptop to make sure you’re getting what you paid for!

Monday, March 16, 2009

Fluid interfaces, and wearing your sixth sense

Sixth_Sense_interface I recently came across this this truly awe-inspiring implementation of technology--a device that empowers you to intuitively pull up information on virtually anything in the world around you. Sounds too fantastic to be true? Click the image to see this proof of concept in action, as demonstrated at a recent TED presentation. And if you're looking for a regular dose of truly cutting-edge thinking and ideology, I highly recommend visiting the TED Web site and watching (or downloading) their fantastic lectures.

I think I just used up my quota of superlatives for this month. But with reason.