Ben's Janky Looking Glass Oven (for baking holograms from panning video).
This is a self-contained webpage that can convert from a panning video to a hologram (either captured handheld or via a motorized rig). In order for it you work you need to have the LookingGlass ThreeJS driver installed (I don't have the Windows driver link handy, but if you try the holoplay.js sample it should prompt to install).
How to use it
- Install the prerequisite driver mentioned above.
- Take a video panning on your phone from right to left along a straight line.
- Get the video on your computer and drag it onto the gray part of this page (in Chrome).
- Wait while the video is processed (should take about as long as the video takes to play in real-time).
- The baked image will download as a PNG automatically.
- Open the PNG on your looking glass and make sure it is full screen. That's it! No fancy software required.
Some notes:
- I hacked this together in a few hours right after getting my looking glass. It's a huge kludge and is not production ready code (global variables galore). It works on Mac with Chrome as of 3/26/2019. YMMV.
- Because the image is based on calibration data from your Looking Glass, the baked imaged may not work correctly on other displays
- If you're brave, rotate the camera on a linear path such that the object of focus is always in the center (this is very hard).
- You may have to try a couple orientations for the video not to decode upside-down (on my Pixel 3 the camera controls need to be on the right).
- There's basically no error handling, so if things don't work. Check the console.
- Many thanks to: the Holoplay.js source code, random WebGL tutorials, and mozilla developer documentation.
Drag one or more files to this Drop Zone ...