Computer Vision for Virtual Reality