The basic idea is that each wand has a reflector in the tip, which coupled with strong IR illumination makes them glow on camera. This allows for easy gesture recognition using computer vision ...
As Arthur C Clarke's third law has it, any sufficiently advanced technology is indistinguishable from magic. Cars that drive themselves, speakers that play music when you talk to them, or lightbulbs ...