Stories about you (Version 2)

Stories about you (Version 2)

This is the reworking of the orignal stories about you from 2005. It uses the openscenegraph framework and boost rather than swig to create the wrapping between the code. I also added shadows to the text and a more sophisticated lighting model. The shadows were a bit of a saga. At time in this project I have been quite naieve about the real time 3D technology, and how far from simulating reality it really is. Shadows in realtime 3D are done two ways, geometrically as shadow volumes, or as raster based shadow maps projected onto the model from each light. I had to use shadow mapping because my text is a texture not an object, but the aliasing of the shadows was horrible, as was another nasty phenomenon called zfighting where the surface of objects seems to shimmer and break up, due to limitations in accuracy of the depth buffer used. I have objects casting shadows from close up to the light and camera onto a surface some distance away - the worst case scenario for shadow mapping. To resolve this I implemented a gaussian blue as a gpu program and used a very large shadow map (4096 x 4096 pixels), which puts a signifigant strain on the graphics card. Searching the internet it seems that developing better shadow mapping techniques is a favorite topic for computer science PhD projects, but rather than devote weeks/months to finding and implementing one, I’m happy to go with the brute force approach.

There are still a few issues with this version:

  • The image of the face is not as recognisable as the white against the black background.
  • Its still a bit slow to form the image.
  • Not all of the image points of the face are being traced (some bug that crept in the development process).

Open video (H.265)