To make the lens you will have to 3D print the housing using the .stl files in the file ORDK2_STL.zip, order the lens element from Edmund Optics, and assemble the parts as shown above.



We printed ours on an Objet Eden 260 using Vero Black material at the highest resolution setting. We haven't tested any other printer but you may have issues with hobbyist FDM printers because the thin crush ribs that hold the lens elements in place may not print properly.



If you have a CAD program you can use the OR_DK2_Lens_Assy.stp to modify the lens housings to your liking.



The .cs and .shader files are examples of how you can correct the lens distortion so that images on the Oculus display appear undistorted when viewed through the lens. These files are written for the Unity game engine. If you are using a different game engine you may have to modify them.



If you use this lens in your research please our paper on arXiv:



Sun, L., Joshi, N., Guenter, B, and Hays, J. Lens Factory: Automatic Lens Generation Using Off-the-shelf Components. ArXiv e-prints arXiv:1506.08956.