3D problem setup