This Windows program captures viewport of another window and displays it on top, right, bottom and left on a cross (+ like) pattern. This way, it allows to display that window on a pepper ghost hologram pyramid. It uses OpenGL.
Once you download or compile the .exe, run it from terminal with 5 parameters:
- Target window title - title, process name or ID of the program you want to capture viewport of.
- View width - rendering width in pixels of the captured other program's viewport.
- View height
- View offset - Distance in pixels of the views from program's window center.
- Window size - Size of the side of displayed window (it will always be a square).
Example command:
.\HoloRenderer.exe 'My program' 200 200 200 600
For now this program is capable of capturing windows rendered in a classic manner (classic Windows programs, Windows Forms programs, TKinter windows, PyOpenGL output (tested with RenderBirdCore)). It might be unable to capture, usually dynamic; content that renders in other manner, for example Windows UWP apps, modern media players and videogames. I might upgrade it to make it possible tho. The program may also not be able to capture viewports of processes of higher priority than itself.
The code is provided as a Code::Blocks IDE project. Dependencies are saved in HoloRenderer.depend.txt . If you want to open it with Code::Blocks, change paths in HoloRenderer.depend.txt to match your username and where the program is located, rename the file to HoloRenderer.depend and then open the .cbp project file.
All of the source code is in main.c so you can always just edit it and compile it in any manner you want too, if you don't want to use Code::Blocks.