Rigid foam insulation has excellent moisture resistance, which makes it a good choice for walls and ceilings. Spray foam is usually injected into wall cavities and dries rapidly. Fibreglass insulation has traditionally been often used on rooftops and in garages for acoustical and thermal purposes.