Star cluster formation and feedback in different galactic environments