generate_space_view function

Generate the background sphere or torus