Skip to content

catherinetaylor2/Shadow_Puppet_Real-time

Repository files navigation

Shadow Puppet Real-time

Using OpenGL and summed area tables to produce virtual shadow puppets in real-time as part of my EngD dissertation.

gitimages

Input:

  • quad for puppet position
  • bitmap for puppet texture
  • bitmap for screen texture

Method:

This software uses:

  • rectangular light source
  • diffuse lighting
  • soft shadows
  • integral images

Output:

This software can produce:

  • still images (HD frame rate ~ 260fps)
  • animations (HD frame rate ~ 52fps)

Dependencies:

To run successfully, this code must be linked to the following 4 libraries.

  • OpenGl
  • GLEW
  • GLFW3
  • GLM

How to compile:

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" 

To run in terminal:

main xres yres

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published