Using OpenGL and summed area tables to produce virtual shadow puppets in real-time as part of my EngD dissertation.
- quad for puppet position
- bitmap for puppet texture
- bitmap for screen texture
This software uses:
- rectangular light source
- diffuse lighting
- soft shadows
- integral images
This software can produce:
- still images (HD frame rate ~ 260fps)
- animations (HD frame rate ~ 52fps)
To run successfully, this code must be linked to the following 4 libraries.
- OpenGl
- GLEW
- GLFW3
- GLM
CL:
cl /O2 /EHsc main.cpp shader.cpp BITMAP.cpp ReadObj.cpp openGLCalculations.cpp /link /NODEFAULTLIB:"LIBCMT" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\glfw3.lib" "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\lib\glew32.lib" "C:\Program Files (x86)\Windows Kits\8.1\Lib\winv6.3\um\x86\OpenGL32.Lib" "user32.lib" "gdi32.lib" "shell32.lib" "msvcrt.lib"
main xres yres