This is the dirty code of my app ViewR (stripped down) released under IDFCL. It was coded to learn unity3d and experiment with the possibilities of augmented reality and HMDs. If you can use it for something, please let me know :)
You can use this code for every reason, because IDFC.