for graduate project. kinect & d3d