prepare 3d camera