ss3d: camera cursor ray retrieval function