Set up 3d environment and add control