I've seen a lot of tutorials online about how to make a phone sized reflective prism for projecting 'holograms' (not technically a hologram, but creates the illusion of one). However, they were too small to be very interesting, and I couldn't find any software to render a object properly. As a result, I created a 4-sided reflective prism from 8"x10" lexan sheets, and wrote software to render an object in the proper perspectives.
- Uses multiple glViewports to render the object onto the same screen from different perspectives.
- Normalizes the size of an object to properly fit on the screen.
- Adjustable distance and rotation.
- Visual Studio (Only tested with 2015 x64)
- Git Bash
- cmake
git clone https://github.com/wastevensv/Holo
cd Holo
git submodule update --init
mkdir build
cd build
cmake .. # May need to specify generator with -G option. Currently only "Visual Studio 14 2015 Win64" is known working.
# Then open generated Holo.sln file and build in Visual Studio.
cd Debug
./holo ../objs/bb8.obj
sudo apt install cmake mesa-utils libgl1-mesa-dev libxrandr-dev libxinerama-dev libxcursor-dev libglu1-mesa-dev # For ubuntu. Adjust package names as needed.
git clone https://github.com/wastevensv/Holo
cd Holo
git submodule update --init
mkdir build
cd build
cmake ..
make
./holo objs/bb8.obj