Sunday, February 19, 2012

Some fun with TouchDevelop and MeTA Studio: scan molecules ;)

Ok so I had some more fun with TouchDevelop. This time a bit serious one ;)

I have been writing a script on my Nokia Lumia using TouchDevelop that allows one to scan a molecule drawing (either using a camera or pre-stored image) and then obtain approximate 2D coordinates with some basic on-device editing. The coordinates can then be emailed to yourself (or ur friends). So now, this script is kind of usable, at least for simple molecule drawings. The script (called omr, fancy optical molecule recognition :) ) can be accessed from: https://www.touchdevelop.com/wdlx. Of course you will need a WP7 device to use this script.

The coordinates obtained can be directly imported in MeTA Studio by using the widget available here: http://code.google.com/p/metastudio/source/browse/trunk/metastudio/widgets/showMoleculeCoord.bsh
Once in MeTA Studio, you know what all can be done :)

[Disclaimer: The script is purely non-commercial, and comes with no support what-so-ever ;)]

Have fun!

Saturday, February 11, 2012

Photoshoping gone wrong ;)

I am not a photoshop expert. Well, neither I have used it! But just using and knowing photoshop is not good enough to fool around. You must know what you are actually mocking. So this image on spotify website caught my attention: http://www.spotify.com/int/mobile/overview/

Clearly the creator missed the fact that the Nokia phone shown is actually a Windows phone and not running Symbian! Fun to notice that :)

Saturday, February 04, 2012

Fun with 3D anaglyphs : TouchDevelop and MeTA Studio

I just enjoy writing stuff in TouchDevelop using my Nokia Lumia. So this time I wanted to write an app that generates on-device anaglyphs using two images (left and right channel photos). To use this script (3DCAM) head straight to : https://www.touchdevelop.com/gxtp on your Windows Phone.



The resolution of final images from the above script is not that high though. So if you want to make anaglyphs from the images taken from your DSLR, you would like to try a script I hacked together for MeTA Studio (available at: http://code.google.com/p/metastudio/source/browse/trunk/metastudio/apps/3danaglyph/anaglyph.bsh?spec=svn544&r=544)
A few tips while taking 3d photos:
  • steady hands! or else use a tripod
  • images whose background doesn’t change gives more depth feeling
  • if the background is changing the images might not give the ‘real world’ feel
  • subjects of interest must also be stationary
  • the closer the object, the more displacement you will need for taking the left and right channel images
To see some of my initial trials head to: http://www.flickr.com/photos/tovganesh/sets/72157629179484577/

You will need red-cyan glasses to view these images. To make your own red-cyan glasses, the following youtube video will server as a good starting point (http://www.youtube.com/watch?v=sIEn9z0oBE8):


Have a nice week ahead!