Video with person 'writing on glass' effect
There is a much better way to do that. That example video is a pretty poor illusion.


It can be done "for real" with with real light. But it looks
different. It has to be dark. 
You can use motion tracking to create an animation path. 
You can also use manual key frames. There are lots of tutes on the intertubes about that. Here is one: