added kinect depth to 3d function