Setting up 3D environment